Package com.suncode.pwfl.archive
Interface DocumentClassAssociationService
- All Superinterfaces:
BaseFinder<DocumentClassAssociation,
Long>
Umożliwia zarządzanie powiązaniami między klasami dokumentów.
- Author:
- Michał Stróżyński 21-10-2019
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createDocumentClassAssociation
(DocumentClassAssociation documentClassAssociation) Zapisuje powiązanie między klasami dokumentów w bazie danych.void
deleteDocumentClassAssociation
(DocumentClassAssociation documentClassAssociation) Usuwa powiązanie między klasami dokumentów w bazie danych.void
deleteDocumentClassAssociationById
(Long associationId) Usuwa powiązanie między klasami dokumentów w bazie danych.getAllAssociatedDocumentsForClass
(Long documentClassId, Long documentId, String userName) Pobiera listę wszystkich dokumentów powiązanych dla dokumentu o Id przekazanym w parametrzedocumentId
.
getAssociatedDocumentsFromClass
(Long documentClassId, Long documentId, Long childDocumentClassId, Integer start, Integer limit, String sort, String dir, String userName) Deprecated.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 parametrzechildDocumentClassId
getDocClassAssociationsForChildDocClass
(Long documentClassId) Pobiera listę powiązań między klasami dokumentów dla podanej klasy dokumentów, gdzie podana klasa dokumentów jest dzieckiem relacjigetDocClassAssociationsForParentDocClass
(Long documentClassId) Pobiera listę powiązań między klasami dokumentów dla podanej klasy dokumentów, gdzie podana klasa dokumentów jest rodzicem relacjivoid
updateDocumentClassAssociation
(Long id, DocumentClassAssociation documentClassAssociation) Modyfikuje powiązanie między klasami dokumentów w bazie danych.Methods inherited from interface com.suncode.pwfl.support.BaseFinder
count, countAll, findByCriteria, findByCriteria, findByProperty, findOne, findOneByProperty, get, get, getAll, getAll, getCountedResult, getCountedResult, scrollByCriteria, scrollByCriteria
-
Method Details
-
createDocumentClassAssociation
Zapisuje powiązanie między klasami dokumentów w bazie danych.- Parameters:
documentClassAssociation
- Definicja powiązania między klasami dokumentów
-
deleteDocumentClassAssociation
Usuwa powiązanie między klasami dokumentów w bazie danych.- Parameters:
documentClassAssociation
- Definicja powiązania między klasami dokumentów
-
deleteDocumentClassAssociationById
Usuwa powiązanie między klasami dokumentów w bazie danych.- Parameters:
associationId
- Identyfikator powiązania między klasami dokumentów
-
updateDocumentClassAssociation
Modyfikuje powiązanie między klasami dokumentów w bazie danych.- Parameters:
id
- Id aktualizowanego powiązaniadocumentClassAssociation
- 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 parametrzechildDocumentClassId
- 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ówstart
- Wartość początkowa zbioru wynikowegolimit
- Wartość końcowa zbioru wynikowegosort
- Parametr po którym posortowany zostanie zbiór wynikowydir
- 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 parametrzechildDocumentClassId
- 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ówassociationId
- id powiązaniastart
- Wartość początkowa zbioru wynikowegolimit
- Wartość końcowa zbioru wynikowegosort
- Parametr po którym posortowany zostanie zbiór wynikowysortDirection
- 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 parametrzedocumentId
.
- 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
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
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:
-