public interface DocumentClassService extends BaseFinder<DocumentClass,Long>
| Modifier and Type | Method and Description |
|---|---|
void |
addActionToDocumentClass(Long docClassId,
DocumentClassAction action)
Dodaje akcje do klasy dokumentów
|
void |
addIndexToDocumentClass(Long docClassId,
DocumentClassIndex index)
Dodaje indeks do klasy dokumentów
|
void |
createDocumentClass(DocumentClass dc)
Zapisuje klasa dokumentów w bazie danych.
|
void |
createDocumentClassAssociation(DocumentClassAssociation documentClassAssociation)
Zapisuje powiązanie między klasami dokumentów w bazie danych.
|
void |
deleteDocumentClass(Long documentClassId)
Usuwa klasę dokumentów
|
void |
deleteDocumentClass(String name)
Usuwa klasę dokumentów
|
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.
|
Map<Long,Object> |
executePatterns(Map<Long,Object> indexes)
Aktualizuje indeksy względem przypisanych wzorców.
|
List<WfDocument> |
getAllAssociatedDocumentsForClass(Long documentClassId,
Long documentId,
String userName)
Pobiera listę wszystkich dokumentów powiązanych dla dokumentu o Id przekazanym w parametrze
documentId |
CountedResult<WfDocument> |
getAssociatedDocumentsFromClass(Long documentClassId,
Long documentId,
Long childDocumentClassId,
Integer start,
Integer limit,
String sort,
String dir,
String userName)
Pobiera listę dokumentów powiązanych należących do klasy przekazanej w parametrze
childDocumentClassId |
DocumentClass |
getDocumentClass(String name,
String... joins)
Pobiera obiekt klasy dokumentów
|
File |
getDocumentClassDirectory(Long docClassId)
Pobiera katalog klasy dokumentów (dla dynamicznie tworzonych nazw katalogów nazwa generowana jest na podstawie aktualnej daty)
|
List<DocumentClass> |
getDocumentClassesForProcess(String processDefId)
Pobiera klasy dokumentów przypisane do procesu
|
List<DocumentClass> |
getDocumentClassesForUser(String userName)
Pobiera listę klas dokumentów do których podany użytkownik może dodawać dokumenty
|
List<DocumentClass> |
getDocumentClassesForUser(String userName,
boolean withAddingRight)
Pobiera listę klas dokumentów do których podany użytkownik ma uprawnienia do odczytu lub dodawania dokumentów (w zależności od parametru)
|
List<DocumentClass> |
getDocumentClassesForUser(String userName,
DocumentUploadSource uploadSource)
Pobiera listę klas dokumentów do których użytkownik może dodawać dokumentu na konkretnym poziomie
(archiwum lub proces)
|
List<DocumentClass> |
getDocumentClassesForUserAndProcess(String userName,
String processDefId)
Pobiera listę klas dokumentów do których użytkownik może dodawać dokument w konkretnym procesie
|
List<DocumentClass> |
getDocumentClassesForUserAndProcess(String userName,
String processDefId,
boolean withAddingRight)
Pobiera listę klas dokumentów do których podany użytkownik ma uprawnienia do odczytu lub
dodawania dokumentów (w zależności od parametru) w konkretnym procesie
|
String |
getFullPathForDocClass(Long docClassId)
Pobiera ścieżkę do katalogu klasy dokumentów (dla dynamicznie tworzonych nazw katalogów nazwa generowana jest na podstawie aktualnej daty)
|
void |
removeActionFromDocumentClass(Long docClassId,
String actionName)
Usuwa akcje z klasy dokumentów
|
void |
removeIndexFromDocumentClass(Long docClassId,
String indexName)
Usuwa indeks z klasy dokumentów
|
void |
updateDocumentClass(DocumentClass dc)
Modyfikuje klasę dokumentów
|
void |
updateDocumentClassAssociation(DocumentClassAssociation documentClassAssociation)
Modyfikuje powiązanie między klasami dokumentów w bazie danych.
|
DocumentClassIndex |
updateIndexInDocumentClass(Long docClassId,
DocumentClassIndex index)
Aktualizuje indeks klasy dokumentów
|
count, countAll, findByCriteria, findByCriteria, findByProperty, findOne, findOneByProperty, get, get, getAll, getAll, getCountedResult, getCountedResultvoid createDocumentClass(DocumentClass dc)
dc - Definicja klasy dokumentówvoid deleteDocumentClass(String name)
name - Nazwa klasy dokumentówvoid deleteDocumentClass(Long documentClassId)
documentClassId - Id klasy dokumentówvoid addIndexToDocumentClass(Long docClassId, DocumentClassIndex index)
docClassId - Id klasy dokumentówindex - Definicja indeksuDocumentClassIndex updateIndexInDocumentClass(Long docClassId, DocumentClassIndex index)
docClassId - id klasy dokumentówindex - definicja indeksuvoid removeIndexFromDocumentClass(Long docClassId, String indexName)
docClassId - Id klasy dokumentówindexName - Nazwa indeksuvoid addActionToDocumentClass(Long docClassId, DocumentClassAction action)
docClassId - Id klasy dokumentówaction - Definicja akcjivoid removeActionFromDocumentClass(Long docClassId, String actionName)
docClassId - Id klasy dokumentówactionName - Nazwa akcjiDocumentClass getDocumentClass(String name, String... joins)
name - Nazwa klasy dokumentówjoins - Określa, które elementy mamy dołączyć do obiektu klasy dokumentów.String getFullPathForDocClass(Long docClassId)
docClassId - Id klasy dokumentówFile getDocumentClassDirectory(Long docClassId)
docClassId - Id klasy dokumentówvoid updateDocumentClass(DocumentClass dc)
dc - Obiekt klasy dokumentówList<DocumentClass> getDocumentClassesForUser(String userName)
userName - Login użytkownikaList<DocumentClass> getDocumentClassesForUser(String userName, boolean withAddingRight)
userName - Login użytkownikawithAddingRight - określa, czy użytkownik musi mieć uprawnienia do dodawania dokumentów do tych klasList<DocumentClass> getDocumentClassesForUserAndProcess(String userName, String processDefId, boolean withAddingRight)
userName - login użytkownikaprocessDefId - definicja procesuwithAddingRight - określa, czy użytkownik musi mieć uprawnienia do dodawania dokumentów
do tych klasList<DocumentClass> getDocumentClassesForUser(String userName, DocumentUploadSource uploadSource)
userName - login użytkownikauploadSource - poziom dodawania dokumentuList<DocumentClass> getDocumentClassesForProcess(String processDefId)
processDefId - Definicja procesuList<DocumentClass> getDocumentClassesForUserAndProcess(String userName, String processDefId)
userName - login użytkownikaprocessDefId - definicja procesuMap<Long,Object> executePatterns(Map<Long,Object> indexes)
indexes - mapa indeksówvoid createDocumentClassAssociation(DocumentClassAssociation documentClassAssociation)
documentClassAssociation - Definicja powiązania między klasami dokumentówvoid deleteDocumentClassAssociation(DocumentClassAssociation documentClassAssociation)
documentClassAssociation - Definicja powiązania między klasami dokumentówvoid deleteDocumentClassAssociationById(Long associationId)
associationId - Identyfikator powiązania między klasami dokumentówvoid updateDocumentClassAssociation(DocumentClassAssociation documentClassAssociation)
documentClassAssociation - Definicja powiązania między klasami dokumentówCountedResult<WfDocument> getAssociatedDocumentsFromClass(Long documentClassId, Long documentId, Long childDocumentClassId, Integer start, Integer limit, String sort, String dir, String userName)
childDocumentClassIddocumentClassId - 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ązaniaList<WfDocument> getAllAssociatedDocumentsForClass(Long documentClassId, Long documentId, String userName)
documentId.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ązaniaCopyright © 2020 Suncode. All rights reserved.