...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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.