Interface FileFinder

All Superinterfaces:
BaseFinder<WfFile,Long>

public interface FileFinder extends BaseFinder<WfFile,Long>
Umożliwia wyszukiwanie plików systemowych
Author:
Paweł Rosolak 21-03-2013
  • Method Details

    • findByIndexes

      List<WfFile> findByIndexes(Map<Long,Object> indexes, Long documentClassId)
      Wyszukuje pliki posiadające podane indeksy
      Parameters:
      indexes - Mapa indeksów dokumentu. Klucz to id indeksu, typ wartości musi zgadzać się z typem indeksu)
      documentClassId - Identyfikator klasy dokumentow
      Returns:
      Zwaraca listę pasujących plików
    • findByIndexes

      List<WfFile> findByIndexes(Map<Long,Object> indexes, Long documentClassId, Integer start, Integer limit)
      Wyszukuje jedna strone plikow posiadających podane indeksy
      Parameters:
      indexes - Mapa indeksów dokumentu. Klucz to id indeksu, typ wartości musi zgadzać się z typem indeksu)
      documentClassId - Identyfikator klasy dokumentow
      start - Poczatek strony
      limit - Rozmiar strony
      Returns:
      Zwaraca jedna strone pasujących plików
    • findByIndexesCounted

      CountedResult<WfFile> findByIndexesCounted(Map<Long,Object> indexes, Long documentClassId, Integer start, Integer limit)
      Wyszukuje dokumenty o podanych indeksach
      Parameters:
      indexes - Mapa indeksów
      documentClassId - Id klasy dokumentów
      start - Przesunięcie w zbiorze wyników
      limit - Maksymalna ilość wyników
      Returns:
      Zwraca listę dokumentów ograniczoną przez start i limit, oraz ogólną ilość wyników
    • findByDocumentClassName

      CountedResult<WfFile> findByDocumentClassName(String documentClassName, Integer start, Integer limit)
      Pobiera wszystkie pliki z podanej klasy dokumentów
      Parameters:
      docClassName - Nazwa klasy dokumentów
      Returns:
      Zwaraca listę plików
    • getVersionForFile

      WfFileVersion getVersionForFile(Long fileId)
      Pobiera obiekt wersji dla pliku
      Parameters:
      fileId - Id pliku (z pm_files)
      Returns:
    • getFileVersion

      WfFileVersion getFileVersion(Long versionId)
      Pobiera obiekt wersji
      Parameters:
      id - Id wersji pliku
      Returns:
    • getDocumentsFromActivity

      List<WfFile> getDocumentsFromActivity(String processId, String activityId, String... joins)
      Pobiera dokumenty dla podanego zadania
      Parameters:
      processId - Id procesu
      activityId - Id zadania
      joins -
      Returns:
    • getDocumentsFromActivity

      List<WfFile> getDocumentsFromActivity(String processId, String activityId, FileSorter sorter, String... joins)
      Pobiera dokumenty dla podanego zadania
      Parameters:
      processId - Id procesu
      activityId - Id zadania
      sorter - Definicja pola po którym wyniki będą sortowane. Należy użyć wartości z klasy FileSorter
      joins -
      Returns:
    • getDocumentsFromProcess

      List<WfFile> getDocumentsFromProcess(String processId, String... joins)
      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
      joins -
      Returns:
    • getDocumentsFromProcess

      List<WfFile> getDocumentsFromProcess(String processId, FileSorter sorter, String... joins)
      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
      sorter - Definicja pola po którym wyniki będą sortowane. Należy użyć wartości z klasy FileSorter
      joins -
      Returns:
    • getDocumentsFromProcessAndClass

      List<WfFile> getDocumentsFromProcessAndClass(String processId, String docClassName, String... joins)
      Pobiera dokumenty z procesu z 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 procesu
      docClassName - nazwa klasy dokumentów
      joins -
      Returns:
    • getDocumentsFromOpenedActivities

      List<WfFile> getDocumentsFromOpenedActivities(String processId, String... joins)
      Pobiera dokumenty z podanego procesu podłączone do wszystkich otwartych zadań
      Parameters:
      processId - Id procesu
      joins -
      Returns:
    • getDocumentsFromOpenedActivities

      List<WfFile> getDocumentsFromOpenedActivities(String processId, FileSorter sorter, String... joins)
      Pobiera dokumenty z podanego procesu podłączone do wszystkich otwartych zadań
      Parameters:
      processId - Id procesu
      sorter - Opcja sortowania
      joins -
      Returns:
    • getAllVersionsForFile

      List<WfFileVersion> getAllVersionsForFile(Long fileId)
      Zwraca wszystkie wersje danego pliku
      Parameters:
      fileId - - identyfikator pliku
      Returns:
      Lista dokumentów
    • getAllDocumentsFromDocumentClass

      List<WfFile> getAllDocumentsFromDocumentClass(String documentClassId)
      Zwraca wszystkie dokumenty należące do podanej klasy dokumentów
      Parameters:
      documentClassId - - identyfikator klasy dokumentów
      Returns:
      Lista dokumentów
    • getDocumentsFromProcessCount

      @Beta Long getDocumentsFromProcessCount(String processId)
      Pobiera liczbę dokumentów 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:
    • getDocumentsFromActivityCount

      @Beta Long getDocumentsFromActivityCount(String processId, String activityId)
      Pobiera liczbę dokumentów dla podanego zadania
      Parameters:
      processId - Id procesu
      activityId - Id zadania
      Returns: