Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleDodanie dokumentu
linenumberstrue
  		Map<Long, Object> idx = new HashMap<Long, Object>();
        idx.put( 1L, "wartość tekstowa" );
        idx.put( 2L, 555 );
        idx.put( 3L, new Date() );

        DocumentDefinition fd = new DocumentDefinition();
        fd.setDocumentClassId( dc.getId() );
        fd.setFileName( "nazwa.pdf" );
        fd.setDescription( "opis" );
        fd.setUserName( "admin" );
        fd.setIndexes( idx );
        fd.setInputStream( inputStream );
        WfDocument file = ds.addDocument( fd );


Wyszukiwanie dokumentów

Do wyszukiwania dokumentów należy używać klasy.