com.day.cq.security.privileges
Interface PrivilegeStore


public interface PrivilegeStore

Storage for Privileges' optional configuration data.
Releaves PrivilegeFactories from the management and possible errors on protection etc. The Store provieds a Node for each Privilege-Authorizable combination. Which can be further used as persistence. The Store must enforce proper access-rights.


Method Summary
 Node getPrivilegeNode(Authorizable authorizable, String privilegePath)
           
 Collection<String> getPrivileges(Authorizable authorizable)
           
 boolean hasPrivilege(Authorizable authorizable, String privilegePath)
           
 void removePrivilege(Authorizable authorizable, String privilegePath)
           
 void setPrivilege(Authorizable authorizable, String privilegePath)
           
 

Method Detail

hasPrivilege

boolean hasPrivilege(Authorizable authorizable,
                     String privilegePath)
                     throws AccessDeniedException
Throws:
AccessDeniedException

getPrivilegeNode

Node getPrivilegeNode(Authorizable authorizable,
                      String privilegePath)
                      throws AccessDeniedException
Throws:
AccessDeniedException

getPrivileges

Collection<String> getPrivileges(Authorizable authorizable)
                                 throws AccessDeniedException
Throws:
AccessDeniedException

setPrivilege

void setPrivilege(Authorizable authorizable,
                  String privilegePath)
                  throws AccessDeniedException
Throws:
AccessDeniedException

removePrivilege

void removePrivilege(Authorizable authorizable,
                     String privilegePath)
                     throws AccessDeniedException
Throws:
AccessDeniedException


Copyright © 2009 Day Management AG. All Rights Reserved.