Interface DocumentClassAssociationService

All Superinterfaces:
BaseFinder<DocumentClassAssociation,Long>

public interface DocumentClassAssociationService extends BaseFinder<DocumentClassAssociation,Long>
Umożliwia zarządzanie powiązaniami między klasami dokumentów.
Author:
Michał Stróżyński 21-10-2019
  • Method Details

    • createDocumentClassAssociation

      void createDocumentClassAssociation(DocumentClassAssociation documentClassAssociation)
      Zapisuje powiązanie między klasami dokumentów w bazie danych.
      Parameters:
      documentClassAssociation - Definicja powiązania między klasami dokumentów
    • deleteDocumentClassAssociation

      void deleteDocumentClassAssociation(DocumentClassAssociation documentClassAssociation)
      Usuwa powiązanie między klasami dokumentów w bazie danych.
      Parameters:
      documentClassAssociation - Definicja powiązania między klasami dokumentów
    • deleteDocumentClassAssociationById

      void deleteDocumentClassAssociationById(Long associationId)
      Usuwa powiązanie między klasami dokumentów w bazie danych.
      Parameters:
      associationId - Identyfikator powiązania między klasami dokumentów
    • updateDocumentClassAssociation

      void updateDocumentClassAssociation(Long id, DocumentClassAssociation documentClassAssociation)
      Modyfikuje powiązanie między klasami dokumentów w bazie danych.
      Parameters:
      id - Id aktualizowanego powiązania
      documentClassAssociation - Zaktualizowana definicja powiązania między klasami dokumentów
    • getAssociatedDocumentsFromClass

      @Deprecated CountedResult<WfDocument> getAssociatedDocumentsFromClass(Long documentClassId, Long documentId, Long childDocumentClassId, Integer start, Integer limit, String sort, String dir, String userName)
      Deprecated.
      Pobiera listę dokumentów powiązanych należących do klasy przekazanej w parametrze childDocumentClassId
      Parameters:
      documentClassId - Id klasy dokumentu dla którego szukamy powiązań
      documentId - Id dokumentu dla którego szukamy powiązań
      childDocumentClassId - Klasa dokumentów w której szukamy powiązanych dokumentów
      start - Wartość początkowa zbioru wynikowego
      limit - Wartość końcowa zbioru wynikowego
      sort - Parametr po którym posortowany zostanie zbiór wynikowy
      dir - Kierunek sortowania - 'ASC' lub 'DESC'
      userName - Login użytkownika wyszukującego powiązania
    • getAssociatedDocumentsFromClass

      CountedResult<WfDocument> getAssociatedDocumentsFromClass(Long documentClassId, Long documentId, Long childDocumentClassId, Long associationId, Integer start, Integer limit, String sort, String sortDirection, String userName)
      Pobiera listę dokumentów powiązanych (dla przekazanego konkretnego powiązania) należących do klasy przekazanej w parametrze childDocumentClassId
      Parameters:
      documentClassId - Id klasy dokumentu dla którego szukamy powiązań
      documentId - Id dokumentu dla którego szukamy powiązań
      childDocumentClassId - Klasa dokumentów w której szukamy powiązanych dokumentów
      associationId - id powiązania
      start - Wartość początkowa zbioru wynikowego
      limit - Wartość końcowa zbioru wynikowego
      sort - Parametr po którym posortowany zostanie zbiór wynikowy
      sortDirection - Kierunek sortowania - 'ASC' lub 'DESC'
      userName - Login użytkownika wyszukującego powiązania
    • getAllAssociatedDocumentsForClass

      List<WfDocument> getAllAssociatedDocumentsForClass(Long documentClassId, Long documentId, String userName)
      Pobiera listę wszystkich dokumentów powiązanych dla dokumentu o Id przekazanym w parametrze documentId.
      Parameters:
      documentClassId - Id klasy dokumentu dla którego szukamy powiązań
      documentId - Id dokumentu dla którego szukamy powiązań
      userName - Login użytkownika wyszukującego powiązania
    • getDocClassAssociationsForParentDocClass

      List<DocumentClassAssociation> getDocClassAssociationsForParentDocClass(Long documentClassId)
      Pobiera listę powiązań między klasami dokumentów dla podanej klasy dokumentów, gdzie podana klasa dokumentów jest rodzicem relacji
      Parameters:
      documentClassId - Id klasy dokumentów (rodzica)
      Returns:
    • getDocClassAssociationsForChildDocClass

      List<DocumentClassAssociation> getDocClassAssociationsForChildDocClass(Long documentClassId)
      Pobiera listę powiązań między klasami dokumentów dla podanej klasy dokumentów, gdzie podana klasa dokumentów jest dzieckiem relacji
      Parameters:
      documentClassId - Id klasy dokumentów (dziecka)
      Returns: