public interface PrivilegeManager
Authorizables
Session
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,
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,
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 session
|
void |
revokePrivilege(Privilege privilege,
Authorizable auth,
Session session)
Deprecated.
Revkes the given privilge from the authorizables
|
Privilege getPrivilege(java.lang.String privPath, Authorizable auth, Session session) throws AccessDeniedException
privPath
- identifier of the privilegeauth
- to accss the privilieg forsession
- Session to access the access the repositorynull
if none setAccessDeniedException
- in case Session misses privileges to accessPrivilege grantPrivilege(java.lang.String privPath, Authorizable auth, Session session) throws AccessDeniedException, NoSuchPrivilegeException
privPath
- identifier of the privilegeauth
- authorizable to set the privilege tosession
- session to set the privilege withAccessDeniedException
- in case session misses privileges to grant PrivilegNoSuchPrivilegeException
- in case the given privilege identifier is unknownvoid revokePrivilege(Privilege privilege, Authorizable auth, Session session) throws AccessDeniedException
privilege
- to removeauth
- the authorizable to remove the Privilege fromsession
- to perform the operationAccessDeniedException
- in case the Session lacks access right to revkoe Privilegesjava.util.Collection<Privilege> getPrivileges(Authorizable authorizable, Session session) throws AccessDeniedException
authorizable
- to querysession
- to query withAccessDeniedException
- in case the Session lacks access rightsjava.util.Collection<java.lang.String> getPrivileges(Session session) throws AccessDeniedException
session
- to use for queryAccessDeniedException
- in case Session lacks acces rights"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"