public interface DocumentProtectionService
Modifier and Type | Method and Description |
---|---|
void |
createDocumentClassProtection(DocumentClassProtection dcp)
Zapisuje dodatkowe ustawienia dla danego uprawnienia w bazie danych.
|
void |
createDocumentProtection(DocumentProtection dp)
Zapisuje uprawnienia w bazie danych
|
int |
deleteByResource(String resourceId,
boolean isGroup)
Usuwa uprawniania dla podanego użytkownika lub grupy
|
void |
deleteDocumentClassProtection(DocumentClassProtectionPk id)
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 |
deleteDocumentProtection(Long id)
Usuwa uprawnienie o podanym id
|
void |
deleteDocumentProtection(String resourceId,
boolean isGroup,
Long docClassId)
Usuwa uprawnienia dla podanego użytkownika/grupy i klasy dokumentów.
|
DocumentClassProtection |
getDocumentClassProtection(DocumentClassProtectionPk pk)
Pobiera dodatkowe ustawienia dla danego uprawnienia w bazie danych.
|
DocumentClassProtection |
getDocumentClassProtection(String resourceId,
boolean isGroup,
Long docClassId)
Pobiera dodatkowe ustawienia dla danego uprawnienia w bazie danych.
|
List<DocumentProtection> |
getDocumentProtection(Long docClassId)
Pobiera listę uprawnień warunkowych do klasy dokumentów
|
List<DocumentProtection> |
getDocumentProtectionForGroup(String groupName,
Long docClassId)
Pobiera listę uprawnień warunkowych do klasy dokumentów dla podanej grupy
|
List<DocumentProtection> |
getDocumentProtectionForResource(String resourceId,
boolean isGroup,
Long docClassId)
Pobiera listę uprawnień warunkowych do klasy dokumentów dla podanego zasobu (użytkownika lub grupy)
|
List<DocumentProtection> |
getDocumentProtectionForUser(String userId,
boolean isGroup,
Long docClassId)
Deprecated.
Nazwa metody wskazuje na pobieranie uprawnień dla użytkownika, jednak zależy to od parametru
isGroup . Z tego powodu należy używać metod: getDocumentProtectionForGroup(String, Long)
getDocumentProtectionForUser(String, Long)
getDocumentProtectionForResource(String, boolean, Long) |
List<DocumentProtection> |
getDocumentProtectionForUser(String userId,
Long docClassId)
Pobiera listę uprawnień warunkowych do klasy dokumentów dla danego użytkownika
|
Long |
getIndexIdFromCondition(DocumentProtection documentProtection)
Zwraca id indeksu zawartego w warunku danego uprawnienia
|
void |
updateDocumentClassProtection(DocumentClassProtection dcp)
Zmienia dodatkowe ustawienia dla danego uprawnienia w bazie danych.
|
void |
updateDocumentProtection(DocumentProtection dp)
Zmiania uprawnienia w bazie danych
|
List<DocumentProtection> getDocumentProtectionForUser(String userId, boolean isGroup, Long docClassId)
isGroup
. Z tego powodu należy używać metod: getDocumentProtectionForGroup(String, Long)
getDocumentProtectionForUser(String, Long)
getDocumentProtectionForResource(String, boolean, Long)
List<DocumentProtection> getDocumentProtectionForUser(String userId, Long docClassId)
userId
- Login użytkownikadocClassId
- Id klasy dokumentówList<DocumentProtection> getDocumentProtectionForGroup(String groupName, Long docClassId)
groupName
- nazwa grupydocClassId
- Id klasy dokumentówList<DocumentProtection> getDocumentProtectionForResource(String resourceId, boolean isGroup, Long docClassId)
resourceId
- identyfikator zasobu (login użytkownika lub nazwa grupy)isGroup
- wskazuje czy zasób to grupadocClassId
- Id klasy dokumentówList<DocumentProtection> getDocumentProtection(Long docClassId)
docClassId
- Id klasy dokumentówvoid deleteDocumentProtection(Long id)
id
- Id uprawnieniavoid createDocumentProtection(DocumentProtection dp)
dp
- Definicja uprawnieńvoid updateDocumentProtection(DocumentProtection dp)
dp
- Definicja uprawnieńint deleteByResource(String resourceId, boolean isGroup)
resourceId
- Login uzytkownika lub nazwa grupyisGroup
- true jeżeli jako resourceId podaliśmy nazwę grupyvoid createDocumentClassProtection(DocumentClassProtection dcp)
dcp
- Definicja dodatkowych ustawień uprawnienia klasy dokumentówvoid updateDocumentClassProtection(DocumentClassProtection dcp)
dcp
- Definicja dodatkowych ustawień uprawnienia klasy dokumentówDocumentClassProtection getDocumentClassProtection(DocumentClassProtectionPk pk)
pk
- Obiekt klucza głównego dodatkowych ustawień uprawnienia klasy dokumentówDocumentClassProtection getDocumentClassProtection(String resourceId, boolean isGroup, Long docClassId)
resourceId
- Grupa lub login użytkownikaisGroup
- Czy resourceId jest grupądocClassId
- ID klasy dokumentówvoid deleteDocumentClassProtection(DocumentClassProtectionPk id)
id
- Id uprawnienia do klasy dokumentówvoid deleteDocumentClassProtection(String resourceId, boolean isGroup, Long documentClassId)
resourceId
- Grupa lub login użytkownikaisGroup
- Czy resourceId jest grupądocumentClassId
- ID klasy dokumentówvoid deleteDocumentProtection(String resourceId, boolean isGroup, Long docClassId)
resourceId
- grupa lub login użytkownikaisGroup
- czy resourceId jest grupądocClassId
- id klasy dokumentówLong getIndexIdFromCondition(DocumentProtection documentProtection)
documentProtection
- Definicja uprawnieńCopyright © 2023 Suncode. All rights reserved.