public interface PrivilegeManager
AuthorizablesSession are enforced.
The Authorizable related methods can be invoked upon the related AuthorizableAuthorizable| Modifier and Type | Method and Description |
|---|---|
Privilege |
getPrivilege(java.lang.String privPath,
Authorizable auth,
javax.jcr.Session session)
Deprecated.
Retrieve the Privilege with the given path for the given authorizable,
use the Session to access the repository
|
java.util.Collection<Privilege> |
getPrivileges(Authorizable authorizable,
javax.jcr.Session session)
Deprecated.
Access all privilages an Authorizable are granted.
|
java.util.Collection<java.lang.String> |
getPrivileges(javax.jcr.Session session)
Deprecated.
|
Privilege |
grantPrivilege(java.lang.String privPath,
Authorizable auth,
javax.jcr.Session session)
Deprecated.
Set the given Privilege to the Authorizable with the given session
|
void |
revokePrivilege(Privilege privilege,
Authorizable auth,
javax.jcr.Session session)
Deprecated.
Revkes the given privilge from the authorizables
|
Privilege getPrivilege(java.lang.String privPath, Authorizable auth, javax.jcr.Session session) throws javax.jcr.AccessDeniedException
privPath - identifier of the privilegeauth - to accss the privilieg forsession - Session to access the access the repositorynull if none setjavax.jcr.AccessDeniedException - in case Session misses privileges to accessPrivilege grantPrivilege(java.lang.String privPath, Authorizable auth, javax.jcr.Session session) throws javax.jcr.AccessDeniedException, NoSuchPrivilegeException
privPath - identifier of the privilegeauth - authorizable to set the privilege tosession - session to set the privilege withjavax.jcr.AccessDeniedException - in case session misses privileges to grant PrivilegNoSuchPrivilegeException - in case the given privilege identifier is unknownvoid revokePrivilege(Privilege privilege, Authorizable auth, javax.jcr.Session session) throws javax.jcr.AccessDeniedException
privilege - to removeauth - the authorizable to remove the Privilege fromsession - to perform the operationjavax.jcr.AccessDeniedException - in case the Session lacks access right to revkoe Privilegesjava.util.Collection<Privilege> getPrivileges(Authorizable authorizable, javax.jcr.Session session) throws javax.jcr.AccessDeniedException
authorizable - to querysession - to query withjavax.jcr.AccessDeniedException - in case the Session lacks access rightsjava.util.Collection<java.lang.String> getPrivileges(javax.jcr.Session session)
throws javax.jcr.AccessDeniedException
session - to use for queryjavax.jcr.AccessDeniedException - in case Session lacks acces rightsCopyright © 2010 - 2025 Adobe. All Rights Reserved