Package com.day.cq.security.privileges
Interface PrivilegeManager
-
public interface PrivilegeManager
Deprecated.CQ 5.5Allows to access, test and modify the Privileges of givenAuthorizables
Accss rights of the givenSession
are enforced. The Authorizable related methods can be invoked upon the related Authorizable- See Also:
Authorizable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Privilege
getPrivilege(java.lang.String privPath, Authorizable auth, Session session)
Deprecated.Retrieve the Privilege with the given path for the given authorizable, use the Session to access the repositoryjava.util.Collection<Privilege>
getPrivileges(Authorizable authorizable, Session session)
Deprecated.Access all privilages an Authorizable are granted.java.util.Collection<java.lang.String>
getPrivileges(Session session)
Deprecated.Privilege
grantPrivilege(java.lang.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 Detail
-
getPrivilege
Privilege getPrivilege(java.lang.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(java.lang.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
java.util.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
java.util.Collection<java.lang.String> getPrivileges(Session session) throws AccessDeniedException
Deprecated.- Parameters:
session
- to use for query- Returns:
- all Priviliges identifiers that are known to this Manager
- Throws:
AccessDeniedException
- in case Session lacks acces rights
-
-