Package com.suncode.pwfl.archive
Interface DocumentFinder
public interface DocumentFinder
Umożliwia wyszukiwanie dokumentów.
- Author:
- Paweł Rosolak 20 gru 2013
-
Method Summary
Modifier and TypeMethodDescriptionfindByFileId
(Long fileId, Long documentClassId) Pobiera dokument po id plikufindByIndexes
(Long documentClassId, List<DocumentClassIndex> documentClassIndices, List<IndexFilter> indexFilters, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.findByIndexes
(Long documentClassId, List<IndexFilter> indexFilters, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.findByIndexes
(Long documentClassId, Map<Long, Object> indexes, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych indeksachfindByIndexesForUser
(String username, Long documentClassId, List<DocumentClassIndex> documentClassIndices, List<IndexFilter> indexFilters, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.findByIndexesForUser
(String username, Long documentClassId, List<IndexFilter> indexFilters, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.findByIndexesForUser
(String username, Long documentClassId, Map<Long, Object> indexes, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.Wyszukuje dokumenty, których termin ważności się zakończyłfindOneByIndexes
(Long documentClassId, List<IndexFilter> indexFilters) Wyszukuje dokument o podanych parametrach.getDocument
(Long documentId, Long documentClassId) Pobiera dokument po idgetDocumentCountForActivities
(List<ProcessActivity> activities) Zwraca liczbę dokumentów podłączonych do zadań dla wskazanej listy zadańgetDocumentCountForProcesses
(List<String> processIds) Zwraca liczbę dokumentów podłączonych do procesów dla wskazanej listy procesówgetDocumentsFromActivity
(String processId, String activityId, String... joins) Pobiera dokumenty dla podanego zadaniagetDocumentsFromOpenedActivities
(String processId, String... joins) Pobiera dokumenty z podanego procesu podłączone do wszystkich otwartych zadańgetDocumentsFromProcess
(String processId, String... joins) Pobiera dokumenty z procesu.getDocumentsFromProcessAndClass
(String processId, String docClassName, String... joins) Pobiera dokumenty z procesu, należące do określonej klasy.
-
Method Details
-
getDocument
Pobiera dokument po id- Parameters:
documentId
- Id dokumentu ( z tabeli pm_idx000x )documentClassId
- Id klasy dokuemntów- Returns:
- Definicja dokumentu
-
findByFileId
Pobiera dokument po id pliku- Parameters:
fileId
- Id pliku (z tabeli pm_files)documentClassId
- Id klasy dokumentów- Returns:
- Definicja dokumentu
-
findOneByIndexes
Wyszukuje dokument o podanych parametrach.- Parameters:
documentClassId
- Id klasy dokumentówindexFilters
- Lista filtrów.- Returns:
- Znaleziony dokument
-
findByIndexes
CountedResult<WfDocument> findByIndexes(Long documentClassId, List<IndexFilter> indexFilters, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.- Parameters:
documentClassId
- Id klasy dokumentówindexFilters
- Lista filtrów.sorters
- Sortowaniestart
- Przesunięcie w zbiorze wynikówlimit
- Maksymalna ilość wyników- Returns:
- Lista znalezionych dokumentów, wraz z całkowitą ilości elementów
-
findByIndexes
List<WfDocument> findByIndexes(Long documentClassId, List<DocumentClassIndex> documentClassIndices, List<IndexFilter> indexFilters, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.- Parameters:
documentClassId
- Id klasy dokumentówdocumentClassIndices
- Indeksy klas dokumentówindexFilters
- Lista filtrów.sorters
- Sortowaniestart
- Przesunięcie w zbiorze wynikówlimit
- Maksymalna ilość wyników- Returns:
- Lista znalezionych dokumentów, wraz z całkowitą ilości elementów
-
findByIndexesForUser
CountedResult<WfDocument> findByIndexesForUser(String username, Long documentClassId, List<IndexFilter> indexFilters, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.- Parameters:
documentClassId
- Id klasy dokumentówindexFilters
- Lista filtrów.sorters
- Sortowaniestart
- Przesunięcie w zbiorze wynikówlimit
- Maksymalna ilość wynikówusername
- Login użytkownika- Returns:
- Lista znalezionych dokumentów, wraz z całkowitą ilości elementów
-
findByIndexesForUser
List<WfDocument> findByIndexesForUser(String username, Long documentClassId, List<DocumentClassIndex> documentClassIndices, List<IndexFilter> indexFilters, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.- Parameters:
documentClassId
- Id klasy dokumentówdocumentClassIndices
- Indeksy klas dokumentówindexFilters
- Lista filtrówsorters
- Sortowaniestart
- Przesunięcie w zbiorze wynikówlimit
- Maksymalna ilość wynikówusername
- Login użytkownika- Returns:
- Lista znalezionych dokumentów
-
findByIndexes
CountedResult<WfDocument> findByIndexes(Long documentClassId, Map<Long, Object> indexes, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych indeksach- Parameters:
documentClassId
- Id klasy dokumentówindexes
- Wartości indeksów - klucz to id indeksusorters
- Sortowaniestart
- Przesunięcie w zbiorze wynikówlimit
- Maksymalna ilość wyników- Returns:
- Lista znalezionych dokumentów
-
findByIndexesForUser
CountedResult<WfDocument> findByIndexesForUser(String username, Long documentClassId, Map<Long, Object> indexes, List<Sorter> sorters, Integer start, Integer limit, String... joins) Wyszukuje dokumenty o podanych parametrach.- Parameters:
documentClassId
- Id klasy dokumentówindexes
- Wartości indeksów - klucz to id indeksusorters
- Sortowaniestart
- Przesunięcie w zbiorze wynikówlimit
- Maksymalna ilość wynikówusername
- Login użytkownika- Returns:
- Lista znalezionych dokumentów, wraz z całkowitą ilości elementów
-
getDocumentsFromActivity
Pobiera dokumenty dla podanego zadania- Parameters:
activityId
- Id zadania- Returns:
-
getDocumentsFromProcess
Pobiera dokumenty z procesu. Dokumenty z procesu to dokumenty dołączone do ostatniego zadania procesu(czyli do zadania, które ostatnie zmieniło swój stan)- Parameters:
processId
- Id procesu- Returns:
-
getDocumentsFromProcessAndClass
List<WfDocument> getDocumentsFromProcessAndClass(String processId, String docClassName, String... joins) Pobiera dokumenty z procesu, należące do określonej klasy. Dokumenty z procesu to dokumenty dołączone do ostatniego zadania procesu(czyli do zadania, które ostatnie zmieniło swój stan)- Parameters:
processId
- Id procesudocClassName
- nazwa klasy dokumentów- Returns:
-
getDocumentsFromOpenedActivities
Pobiera dokumenty z podanego procesu podłączone do wszystkich otwartych zadań- Parameters:
processId
- Id procesu- Returns:
-
findExpiredDocuments
List<WfDocument> findExpiredDocuments()Wyszukuje dokumenty, których termin ważności się zakończył- Returns:
- Lista przeterminowanych dokumentów
-
getDocumentCountForProcesses
Zwraca liczbę dokumentów podłączonych do procesów dla wskazanej listy procesów- Parameters:
processIds
- Lista id procesów- Returns:
- Lista procesów z liczbą podłączonych dokumentów
-
getDocumentCountForActivities
Zwraca liczbę dokumentów podłączonych do zadań dla wskazanej listy zadań- Parameters:
activities
- Lista zadań- Returns:
- Lista zadań z liczbą podłączonych dokumentów
-