Package com.day.cq.security.privileges
Interface PrivilegeManager
public interface PrivilegeManager
Deprecated.
CQ 5.5
Allows to access, test and modify the Privileges of given
Accss rights of the given
Authorizables
Accss rights of the given
Session
are enforced.
The Authorizable related methods can be invoked upon the related Authorizable- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetPrivilege
(String privPath, Authorizable auth, Session session) Deprecated.Retrieve the Privilege with the given path for the given authorizable, use the Session to access the repositorygetPrivileges
(Authorizable authorizable, Session session) Deprecated.Access all privilages an Authorizable are granted.getPrivileges
(Session session) Deprecated.getPrivileges.grantPrivilege
(String privPath, Authorizable auth, Session session) Deprecated.Set the given Privilege to the Authorizable with the given sessionvoid
revokePrivilege
(Privilege privilege, Authorizable auth, Session session) Deprecated.Revkes the given privilge from the authorizables
-
Method Details
-
getPrivilege
Privilege getPrivilege(String privPath, Authorizable auth, Session session) throws AccessDeniedException Deprecated.Retrieve the Privilege with the given path for the given authorizable, use the Session to access the repository- Parameters:
privPath
- identifier of the privilegeauth
- to accss the privilieg forsession
- Session to access the access the repository- Returns:
- Privilege if one defined or
null
if none set - Throws:
AccessDeniedException
- in case Session misses privileges to access
-
grantPrivilege
Privilege grantPrivilege(String privPath, Authorizable auth, Session session) throws AccessDeniedException, NoSuchPrivilegeException Deprecated.Set the given Privilege to the Authorizable with the given session- Parameters:
privPath
- identifier of the privilegeauth
- authorizable to set the privilege tosession
- session to set the privilege with- Returns:
- Privilge newly set
- Throws:
AccessDeniedException
- in case session misses privileges to grant PrivilegNoSuchPrivilegeException
- in case the given privilege identifier is unknown
-
revokePrivilege
void revokePrivilege(Privilege privilege, Authorizable auth, Session session) throws AccessDeniedException Deprecated.Revkes the given privilge from the authorizables- Parameters:
privilege
- to removeauth
- the authorizable to remove the Privilege fromsession
- to perform the operation- Throws:
AccessDeniedException
- in case the Session lacks access right to revkoe Privileges
-
getPrivileges
Collection<Privilege> getPrivileges(Authorizable authorizable, Session session) throws AccessDeniedException Deprecated.Access all privilages an Authorizable are granted.- Parameters:
authorizable
- to querysession
- to query with- Returns:
- all granted Privilages of the given Authorizable
- Throws:
AccessDeniedException
- in case the Session lacks access rights
-
getPrivileges
Deprecated.getPrivileges.
- Parameters:
session
- to use for query- Returns:
- all Priviliges identifiers that are known to this Manager
- Throws:
AccessDeniedException
- in case Session lacks acces rights
-