Package com.composum.sling.core.service
Interface PermissionsService
-
- All Known Implementing Classes:
CorePermissionsService
public interface PermissionsServicePermission and Member check service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasAllPrivileges(javax.jcr.Session session, String path, String... privilegeKeys)StringhasOneOfPrivileges(javax.jcr.Session session, String path, String... privilegeKeys)booleanisMemberOfAll(javax.jcr.Session session, String... authorizableIds)StringisMemberOfOne(javax.jcr.Session session, String... authorizableIds)
-
-
-
Method Detail
-
isMemberOfOne
String isMemberOfOne(javax.jcr.Session session, String... authorizableIds)
- Parameters:
session- the current sessionauthorizableIds- a list of group ids to check- Returns:
- the first matching group found; NULL if no group found; probably "" if user is 'admin'
-
isMemberOfAll
boolean isMemberOfAll(javax.jcr.Session session, String... authorizableIds)- Parameters:
session- the current sessionauthorizableIds- a list of group ids to check- Returns:
- 'true' if session user is member of all groups (or of THE group if only one is checked)
-
hasOneOfPrivileges
String hasOneOfPrivileges(javax.jcr.Session session, String path, String... privilegeKeys)
- Parameters:
session- the current sessionprivilegeKeys- a list of privilege keys to check- Returns:
- the first privilege found; NULL if no privilege found
-
-