public interface DocumentProtectionService
Modifier and Type | Method and Description |
---|---|
void |
createDocumentProtection(DocumentProtection dp)
Zapisuje uprawnienia w bazie danych
|
int |
deleteByResource(String resourceId,
boolean isGroup)
Usuwa uprawniania dla podanego użytkownika lub grupy
|
void |
deleteDocumentProtection(Long id)
Usuwa uprawnienie o podanym id
|
List<DocumentProtection> |
getDocumentProtection(Long docClassId)
Pobiera listę uprawnień warunkowych do klasy dokumentów
|
List<DocumentProtection> |
getDocumentProtectionForUser(String userId,
boolean isGroup,
Long docClassId)
Pobiera listę uprawnień warunkowych do klasy dokumentów dla danego użytkownika
|
void |
updateDocumentProtection(DocumentProtection dp)
Zmiania uprawnienia w bazie danych
|
List<DocumentProtection> getDocumentProtectionForUser(String userId, boolean isGroup, Long docClassId)
userId
- Login użytkownikaisGroup
- docClassId
- 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ę grupyCopyright © 2014 Suncode. All rights reserved.