Package com.suncode.pwfl.archive
Interface DocumentClassService
- All Superinterfaces:
BaseFinder<DocumentClass,
Long>
Umożliwia zarządzanie klasami dokumentów.
- Author:
- Paweł Rosolak 19-03-2013
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionToDocumentClass
(Long docClassId, DocumentClassAction action) Dodaje akcje do klasy dokumentówaddDocumentClassIndexTranslation
(Long documentClassIndexId, DocumentClassIndexTranslation documentClassIndexTranslation) Zapisuje tłumaczenie indeksu klasy dokumentów w bazie danychaddDocumentClassTranslation
(Long docClassId, DocumentClassTranslation docClassTranslation) Zapisuje tłumaczenie klasy dokumentów w bazie danychvoid
addIndexToDocumentClass
(Long docClassId, DocumentClassIndex index) Dodaje indeks do klasy dokumentówvoid
Zapisuje klasa dokumentów w bazie danych.void
deleteDocumentClass
(Long documentClassId) Usuwa klasę dokumentówvoid
deleteDocumentClass
(String name) Usuwa klasę dokumentówvoid
Usuwa akcję klasy dokumentów o podanym idvoid
Usuwa indeks klasy dokumentów o podanym idvoid
Usuwa tłumaczenie indeksu klasy dokumentów o podanym idvoid
Usuwa wszystkie nadpisane tłumaczenia indeksów klas dokumentów w podanym językuvoid
Usuwa tłumaczenie klasy dokumentów o podanym idvoid
Usuwa wszystkie nadpisane tłumaczenia klas dokumentów w podanym językuexecutePatterns
(Map<Long, Object> indexes) Aktualizuje indeksy względem przypisanych wzorców.getAll
(Integer start, Integer limit, String sortBy, SortDirection sortDirection) Pobiera stronnicowaną listę przetłumaczonych klas dokumentówPobiera stronnicowaną listę przetłumaczonych we wskazanym języku klas dokumentówgetDocumentClass
(String name, String... joins) Pobiera obiekt klasy dokumentówgetDocumentClassDirectory
(Long docClassId) Pobiera katalog klasy dokumentów (dla dynamicznie tworzonych nazw katalogów nazwa generowana jest na podstawie aktualnej daty)getDocumentClassesForProcess
(String processDefId) Pobiera klasy dokumentów przypisane do procesugetDocumentClassesForUser
(String userName) Pobiera listę klas dokumentów do których podany użytkownik może dodawać dokumentygetDocumentClassesForUser
(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)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)getDocumentClassesForUserAndProcess
(String userName, String processDefId) Pobiera listę klas dokumentów do których użytkownik może dodawać dokument w konkretnym procesiegetDocumentClassesForUserAndProcess
(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 procesiegetDocumentClassIndexTranslation
(Long entityId, TranslatedFieldType fieldType) Zwraca tłumaczenie dla konkretnego pola indeksu klasy dokumentów o podanym idgetDocumentClassIndexTranslation
(Long entityId, TranslatedFieldType fieldType, Locale locale) Zwraca tłumaczenie dla konkretnego pola indeksu klasy dokumentów o podanym idgetDocumentClassTranslation
(Long entityId, TranslatedFieldType fieldType) Zwraca tłumaczenie dla konkretnego pola klasy dokumentów o podanym idgetDocumentClassTranslation
(Long entityId, TranslatedFieldType fieldType, Locale locale) Zwraca tłumaczenie dla konkretnego pola klasy dokumentów o podanym idgetDocumentClassTranslationsForLocale
(Locale locale, String... joins) Pobiera listę wszystkich tłumaczeń powiązanych z klasami dokumentów w podanym językugetFullPathForDocClass
(Long docClassId) Pobiera ścieżkę do katalogu klasy dokumentów (dla dynamicznie tworzonych nazw katalogów nazwa generowana jest na podstawie aktualnej daty)boolean
hasRightsToReadDocumentClass
(String username, DocumentClass documentClass) Sprawdza, czy użytkownika ma uprawnienia do odczytu klasy dokumentówvoid
moveUpDocumentClass
(Long documentClassId) Zmienia kolejność klasy dokumentów o podanym idvoid
Zmienia kolejność indeksu klasy dokumentów o podanym idvoid
removeIndexFromDocumentClass
(Long docClassId, String indexName) Usuwa indeks z klasy dokumentówvoid
Modyfikuje klasę dokumentówvoid
updateDocumentClassAction
(DocumentClassAction documentClassAction) Modyfikuje akcję klasy dokumentówvoid
updateDocumentClassIndexTranslation
(Long id, String newValue) Aktualizuje tekst tłumaczenia indeksu klasy dokumentówvoid
updateDocumentClassTranslation
(Long id, String newValue) Aktualizuje tekst tłumaczenia klasy dokumentówupdateIndexInDocumentClass
(Long docClassId, DocumentClassIndex index) Aktualizuje indeks klasy dokumentówvoid
validateDocumentClassIndexCanBeEdited
(DocumentClassIndex documentClassIndex) Sprawdza, czy indeks klasy dokumentów może być edytowanyMethods 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
-
createDocumentClass
Zapisuje klasa dokumentów w bazie danych. Tworzy tabele przechowującą indeksy dla utworzonej klasy- Parameters:
dc
- Definicja klasy dokumentów
-
deleteDocumentClass
Usuwa klasę dokumentów- Parameters:
name
- Nazwa klasy dokumentów
-
deleteDocumentClass
Usuwa klasę dokumentów- Parameters:
documentClassId
- Id klasy dokumentów
-
addIndexToDocumentClass
Dodaje indeks do klasy dokumentów- Parameters:
docClassId
- Id klasy dokumentówindex
- Definicja indeksu
-
updateIndexInDocumentClass
Aktualizuje indeks klasy dokumentów- Parameters:
docClassId
- id klasy dokumentówindex
- definicja indeksu
-
removeIndexFromDocumentClass
Usuwa indeks z klasy dokumentów- Parameters:
docClassId
- Id klasy dokumentówindexName
- Nazwa indeksu
-
addActionToDocumentClass
Dodaje akcje do klasy dokumentów- Parameters:
docClassId
- Id klasy dokumentówaction
- Definicja akcji
-
getDocumentClass
Pobiera obiekt klasy dokumentów- Parameters:
name
- Nazwa klasy dokumentówjoins
- Określa, które elementy mamy dołączyć do obiektu klasy dokumentów.- Returns:
- Zwraca klasa dokumentów o podanej nazwie
-
getFullPathForDocClass
Pobiera ścieżkę do katalogu klasy dokumentów (dla dynamicznie tworzonych nazw katalogów nazwa generowana jest na podstawie aktualnej daty)- Parameters:
docClassId
- Id klasy dokumentów- Returns:
- Zwraca pełną ścieżkę do katalogu klasy dokumentów
-
getDocumentClassDirectory
Pobiera katalog klasy dokumentów (dla dynamicznie tworzonych nazw katalogów nazwa generowana jest na podstawie aktualnej daty)- Parameters:
docClassId
- Id klasy dokumentów- Returns:
- Zwraca katalog klasy dokumentów
-
updateDocumentClass
Modyfikuje klasę dokumentów- Parameters:
dc
- Obiekt klasy dokumentów
-
getDocumentClassesForUser
Pobiera listę klas dokumentów do których podany użytkownik może dodawać dokumenty- Parameters:
userName
- Login użytkownika- Returns:
- lista klas dokumentów
-
getDocumentClassesForUser
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)- Parameters:
userName
- Login użytkownikawithAddingRight
- określa, czy użytkownik musi mieć uprawnienia do dodawania dokumentów do tych klas- Returns:
- lista klas dokumentów
-
getDocumentClassesForUserAndProcess
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- Parameters:
userName
- login użytkownikaprocessDefId
- definicja procesuwithAddingRight
- określa, czy użytkownik musi mieć uprawnienia do dodawania dokumentów do tych klas- Returns:
- lista klas dokumentów
-
getDocumentClassesForUser
Pobiera listę klas dokumentów do których użytkownik może dodawać dokumentu na konkretnym poziomie (archiwum lub proces)- Parameters:
userName
- login użytkownikauploadSource
- poziom dodawania dokumentu- Returns:
-
getDocumentClassesForProcess
Pobiera klasy dokumentów przypisane do procesu- Parameters:
processDefId
- Definicja procesu- Returns:
- Lista klas dokumentów przypisanych do definicji procesu
-
getDocumentClassesForUserAndProcess
Pobiera listę klas dokumentów do których użytkownik może dodawać dokument w konkretnym procesie- Parameters:
userName
- login użytkownikaprocessDefId
- definicja procesu- Returns:
- lista klas dokumentów
-
executePatterns
Aktualizuje indeksy względem przypisanych wzorców.- Parameters:
indexes
- mapa indeksów- Returns:
- nowa mapa indeksów
-
moveUpDocumentClass
Zmienia kolejność klasy dokumentów o podanym id- Parameters:
documentClassId
- Id klasy dokumentów
-
deleteDocumentClassIndex
Usuwa indeks klasy dokumentów o podanym id- Parameters:
id
- Id indeksu klasy dokumentów
-
moveUpDocumentClassIndex
Zmienia kolejność indeksu klasy dokumentów o podanym id- Parameters:
id
- Id indeksu klasy dokumentów
-
getDocumentClassTranslationsForLocale
List<DocumentClassTranslation> getDocumentClassTranslationsForLocale(Locale locale, String... joins) Pobiera listę wszystkich tłumaczeń powiązanych z klasami dokumentów w podanym języku- Parameters:
locale
- Językjoins
- Określa, które z powiązanych elementów chcemy dołączyć do pobieranych obiektów- Returns:
-
deleteDocumentClassTranslationsForLocale
Usuwa wszystkie nadpisane tłumaczenia klas dokumentów w podanym języku- Parameters:
locale
- Język
-
deleteDocumentClassIndexTranslationsForLocale
Usuwa wszystkie nadpisane tłumaczenia indeksów klas dokumentów w podanym języku- Parameters:
locale
- Język
-
addDocumentClassTranslation
Zapisuje tłumaczenie klasy dokumentów w bazie danych- Parameters:
docClassId
- Id tłumaczonej klasy dokumentówdocClassTranslation
- Tłumaczenie do dodania- Returns:
- Id utworzonego obiektu
-
addDocumentClassIndexTranslation
Long addDocumentClassIndexTranslation(Long documentClassIndexId, DocumentClassIndexTranslation documentClassIndexTranslation) Zapisuje tłumaczenie indeksu klasy dokumentów w bazie danych- Parameters:
documentClassIndexId
- Id tłumaczonego indeksu klasy dokumentówdocumentClassIndexTranslation
- Tłumaczenie do dodania- Returns:
- Id utworzonego obiektu
-
updateDocumentClassTranslation
Aktualizuje tekst tłumaczenia klasy dokumentów- Parameters:
id
- Id tłumaczenia klasy dokumentównewValue
- Nowy tekst tłumaczenia
-
updateDocumentClassIndexTranslation
Aktualizuje tekst tłumaczenia indeksu klasy dokumentów- Parameters:
id
- Id tłumaczenia indeksu klasy dokumentównewValue
- Nowy tekst tłumaczenia
-
deleteDocumentClassTranslation
Usuwa tłumaczenie klasy dokumentów o podanym id- Parameters:
id
- Id tłumaczenia
-
deleteDocumentClassIndexTranslation
Usuwa tłumaczenie indeksu klasy dokumentów o podanym id- Parameters:
id
- Id tłumaczenia
-
getDocumentClassTranslation
Zwraca tłumaczenie dla konkretnego pola klasy dokumentów o podanym id- Parameters:
entityId
- Id elementufieldType
- Typ pola- Returns:
- Tłumaczenie
-
getDocumentClassTranslation
Zwraca tłumaczenie dla konkretnego pola klasy dokumentów o podanym id- Parameters:
entityId
- Id elementufieldType
- Typ polalocale
- Język- Returns:
- Tłumaczenie
-
getDocumentClassIndexTranslation
Zwraca tłumaczenie dla konkretnego pola indeksu klasy dokumentów o podanym id- Parameters:
entityId
- Id elementufieldType
- Typ pola- Returns:
- Tłumaczenie
-
getDocumentClassIndexTranslation
String getDocumentClassIndexTranslation(Long entityId, TranslatedFieldType fieldType, Locale locale) Zwraca tłumaczenie dla konkretnego pola indeksu klasy dokumentów o podanym id- Parameters:
entityId
- Id elementufieldType
- Typ polalocale
- Język- Returns:
- Tłumaczenie
-
validateDocumentClassIndexCanBeEdited
Sprawdza, czy indeks klasy dokumentów może być edytowany- Parameters:
documentClassIndex
- Obiekt indeksu klasy dokumentów
-
deleteDocumentClassAction
Usuwa akcję klasy dokumentów o podanym id- Parameters:
id
- Id akcji klasy dokumentów
-
updateDocumentClassAction
Modyfikuje akcję klasy dokumentów- Parameters:
documentClassAction
- Obiekt akcji klasy dokumentów
-
getAll
CountedResult<DocumentClass> getAll(Integer start, Integer limit, String sortBy, SortDirection sortDirection) Pobiera stronnicowaną listę przetłumaczonych klas dokumentów- Parameters:
start
- Przesunięcie w zbiorze wynikówlimit
- Maksymalna liczba wynikówsortBy
- Nazwa kolumny, po której ma wystąpić sortowaniesortDirection
- Kierunek sortowania- Returns:
-
getAll
CountedResult<DocumentClass> getAll(Locale locale, Integer start, Integer limit, String sortBy, SortDirection sortDirection) Pobiera stronnicowaną listę przetłumaczonych we wskazanym języku klas dokumentów- Parameters:
locale
- Język tłumaczeniastart
- Przesunięcie w zbiorze wynikówlimit
- Maksymalna liczba wynikówsortBy
- Nazwa kolumny, po której ma wystąpić sortowaniesortDirection
- Kierunek sortowania- Returns:
-
hasRightsToReadDocumentClass
Sprawdza, czy użytkownika ma uprawnienia do odczytu klasy dokumentów- Parameters:
username
- login użytkownikadocumentClass
- klasa dokumentów
-