Package com.suncode.pwfl.archive
Interface DocumentProtectionService
public interface DocumentProtectionService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Zapisuje dodatkowe ustawienia dla danego uprawnienia w bazie danych.void
Zapisuje uprawnienia w bazie danychint
deleteByResource
(String resourceId, boolean isGroup) Usuwa uprawniania dla podanego użytkownika lub grupyvoid
Usuwa dodatkowe ustawienia dla danego uprawnienia w bazie danych.void
deleteDocumentClassProtection
(String resourceId, boolean isGroup, Long documentClassId) Usuwa dodatkowe ustawienia dla danego uprawnienia w bazie danych.void
Usuwa uprawnienie o podanym idvoid
deleteDocumentProtection
(String resourceId, boolean isGroup, Long docClassId) Usuwa uprawnienia dla podanego użytkownika/grupy i klasy dokumentów.Pobiera dodatkowe ustawienia dla danego uprawnienia w bazie danych.getDocumentClassProtection
(String resourceId, boolean isGroup, Long docClassId) Pobiera dodatkowe ustawienia dla danego uprawnienia w bazie danych.getDocumentProtection
(Long docClassId) Pobiera listę uprawnień warunkowych do klasy dokumentówgetDocumentProtectionForGroup
(String groupName, Long docClassId) Pobiera listę uprawnień warunkowych do klasy dokumentów dla podanej grupygetDocumentProtectionForResource
(String resourceId, boolean isGroup, Long docClassId) Pobiera listę uprawnień warunkowych do klasy dokumentów dla podanego zasobu (użytkownika lub grupy)getDocumentProtectionForUser
(String userId, boolean isGroup, Long docClassId) Deprecated.getDocumentProtectionForUser
(String userId, Long docClassId) Pobiera listę uprawnień warunkowych do klasy dokumentów dla danego użytkownikagetIndexIdFromCondition
(DocumentProtection documentProtection) Zwraca id indeksu zawartego w warunku danego uprawnieniavoid
Zmienia dodatkowe ustawienia dla danego uprawnienia w bazie danych.void
Zmiania uprawnienia w bazie danych
-
Method Details
-
getDocumentProtectionForUser
List<DocumentProtection> getDocumentProtectionForUser(String userId, boolean isGroup, Long docClassId) Deprecated.Nazwa metody wskazuje na pobieranie uprawnień dla użytkownika, jednak zależy to od parametruisGroup
. Z tego powodu należy używać metod:getDocumentProtectionForGroup(String, Long)
getDocumentProtectionForUser(String, Long)
getDocumentProtectionForResource(String, boolean, Long)
-
getDocumentProtectionForUser
Pobiera listę uprawnień warunkowych do klasy dokumentów dla danego użytkownika- Parameters:
userId
- Login użytkownikadocClassId
- Id klasy dokumentów- Returns:
-
getDocumentProtectionForGroup
Pobiera listę uprawnień warunkowych do klasy dokumentów dla podanej grupy- Parameters:
groupName
- nazwa grupydocClassId
- Id klasy dokumentów- Returns:
-
getDocumentProtectionForResource
List<DocumentProtection> getDocumentProtectionForResource(String resourceId, boolean isGroup, Long docClassId) Pobiera listę uprawnień warunkowych do klasy dokumentów dla podanego zasobu (użytkownika lub grupy)- Parameters:
resourceId
- identyfikator zasobu (login użytkownika lub nazwa grupy)isGroup
- wskazuje czy zasób to grupadocClassId
- Id klasy dokumentów- Returns:
-
getDocumentProtection
Pobiera listę uprawnień warunkowych do klasy dokumentów- Parameters:
docClassId
- Id klasy dokumentów- Returns:
-
deleteDocumentProtection
Usuwa uprawnienie o podanym id- Parameters:
id
- Id uprawnienia
-
createDocumentProtection
Zapisuje uprawnienia w bazie danych- Parameters:
dp
- Definicja uprawnień
-
updateDocumentProtection
Zmiania uprawnienia w bazie danych- Parameters:
dp
- Definicja uprawnień
-
deleteByResource
Usuwa uprawniania dla podanego użytkownika lub grupy- Parameters:
resourceId
- Login uzytkownika lub nazwa grupyisGroup
- true jeżeli jako resourceId podaliśmy nazwę grupy- Returns:
- Ilość usuniętych rekordów
-
createDocumentClassProtection
Zapisuje dodatkowe ustawienia dla danego uprawnienia w bazie danych.- Parameters:
dcp
- Definicja dodatkowych ustawień uprawnienia klasy dokumentów
-
updateDocumentClassProtection
Zmienia dodatkowe ustawienia dla danego uprawnienia w bazie danych.- Parameters:
dcp
- Definicja dodatkowych ustawień uprawnienia klasy dokumentów
-
getDocumentClassProtection
Pobiera dodatkowe ustawienia dla danego uprawnienia w bazie danych.- Parameters:
pk
- Obiekt klucza głównego dodatkowych ustawień uprawnienia klasy dokumentów
-
getDocumentClassProtection
DocumentClassProtection getDocumentClassProtection(String resourceId, boolean isGroup, Long docClassId) Pobiera dodatkowe ustawienia dla danego uprawnienia w bazie danych.- Parameters:
resourceId
- Grupa lub login użytkownikaisGroup
- Czy resourceId jest grupądocClassId
- ID klasy dokumentów
-
deleteDocumentClassProtection
Usuwa dodatkowe ustawienia dla danego uprawnienia w bazie danych.- Parameters:
id
- Id uprawnienia do klasy dokumentów
-
deleteDocumentClassProtection
Usuwa dodatkowe ustawienia dla danego uprawnienia w bazie danych.- Parameters:
resourceId
- Grupa lub login użytkownikaisGroup
- Czy resourceId jest grupądocumentClassId
- ID klasy dokumentów
-
deleteDocumentProtection
Usuwa uprawnienia dla podanego użytkownika/grupy i klasy dokumentów.- Parameters:
resourceId
- grupa lub login użytkownikaisGroup
- czy resourceId jest grupądocClassId
- id klasy dokumentów
-
getIndexIdFromCondition
Zwraca id indeksu zawartego w warunku danego uprawnienia- Parameters:
documentProtection
- Definicja uprawnień- Returns:
-
isGroup
.