|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.AbstractAccessControlManager
public abstract class AbstractAccessControlManager
AbstractAccessControlManager...
| Constructor Summary | |
|---|---|
AbstractAccessControlManager()
|
|
| Method Summary | |
|---|---|
protected abstract void |
checkInitialized()
Check if this manager has been properly initialized. |
protected abstract void |
checkPermission(String absPath,
int permission)
Check if the specified privileges are granted at absPath. |
protected abstract void |
checkValidNodePath(String absPath)
Tests if the given absPath is absolute and points to an existing node. |
JackrabbitAccessControlPolicy[] |
getApplicablePolicies(Principal principal)
|
AccessControlPolicyIterator |
getApplicablePolicies(String absPath)
Returns an empty iterator. |
JackrabbitAccessControlPolicy[] |
getPolicies(Principal principal)
|
AccessControlPolicy[] |
getPolicies(String absPath)
Returns null. |
protected abstract PrivilegeRegistry |
getPrivilegeRegistry()
|
Privilege[] |
getSupportedPrivileges(String absPath)
Always returns all registered Privileges. |
Privilege |
privilegeFromName(String privilegeName)
|
void |
removePolicy(String absPath,
AccessControlPolicy policy)
Always throws AccessControlException |
void |
setPolicy(String absPath,
AccessControlPolicy policy)
Always throws AccessControlException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.api.security.JackrabbitAccessControlManager |
|---|
getPrivileges, hasPrivileges |
| Methods inherited from interface javax.jcr.security.AccessControlManager |
|---|
getEffectivePolicies, getPrivileges, hasPrivileges |
| Constructor Detail |
|---|
public AbstractAccessControlManager()
| Method Detail |
|---|
public Privilege[] getSupportedPrivileges(String absPath)
throws PathNotFoundException,
RepositoryException
Privileges.
getSupportedPrivileges in interface AccessControlManagerabsPath - Path to an existing node.
Privileges.
PathNotFoundException
RepositoryExceptionAccessControlManager.getSupportedPrivileges(String)
public Privilege privilegeFromName(String privilegeName)
throws AccessControlException,
RepositoryException
privilegeFromName in interface AccessControlManagerAccessControlException
RepositoryExceptionAccessControlManager.privilegeFromName(String)
public AccessControlPolicy[] getPolicies(String absPath)
throws PathNotFoundException,
AccessDeniedException,
RepositoryException
null.
getPolicies in interface AccessControlManagerabsPath - Path to an existing node.
null.
PathNotFoundException
AccessDeniedException
RepositoryExceptionAccessControlManager.getApplicablePolicies(String)
public AccessControlPolicyIterator getApplicablePolicies(String absPath)
throws PathNotFoundException,
AccessDeniedException,
RepositoryException
getApplicablePolicies in interface AccessControlManagerabsPath - Path to an existing node.
PathNotFoundException
AccessDeniedException
RepositoryExceptionAccessControlManager.getApplicablePolicies(String)
public void setPolicy(String absPath,
AccessControlPolicy policy)
throws PathNotFoundException,
AccessControlException,
AccessDeniedException,
RepositoryException
AccessControlException
setPolicy in interface AccessControlManagerPathNotFoundException
AccessControlException
AccessDeniedException
RepositoryExceptionAccessControlManager.setPolicy(String, AccessControlPolicy)
public void removePolicy(String absPath,
AccessControlPolicy policy)
throws PathNotFoundException,
AccessControlException,
AccessDeniedException,
RepositoryException
AccessControlException
removePolicy in interface AccessControlManagerPathNotFoundException
AccessControlException
AccessDeniedException
RepositoryExceptionAccessControlManager.removePolicy(String, AccessControlPolicy)
public JackrabbitAccessControlPolicy[] getApplicablePolicies(Principal principal)
throws AccessDeniedException,
AccessControlException,
UnsupportedRepositoryOperationException,
RepositoryException
getApplicablePolicies in interface JackrabbitAccessControlManagerAccessDeniedException
AccessControlException
UnsupportedRepositoryOperationException
RepositoryExceptionJackrabbitAccessControlManager.getApplicablePolicies(java.security.Principal)
public JackrabbitAccessControlPolicy[] getPolicies(Principal principal)
throws AccessDeniedException,
AccessControlException,
UnsupportedRepositoryOperationException,
RepositoryException
getPolicies in interface JackrabbitAccessControlManagerAccessDeniedException
AccessControlException
UnsupportedRepositoryOperationException
RepositoryExceptionJackrabbitAccessControlManager.getApplicablePolicies(java.security.Principal)
protected abstract void checkInitialized()
throws IllegalStateException
IllegalStateException - If this manager has not been properly initialized.
protected abstract void checkPermission(String absPath,
int permission)
throws AccessDeniedException,
PathNotFoundException,
RepositoryException
absPath.
absPath - Path to an existing node.permission - Permissions to be checked.
AccessDeniedException - if the session does not have the
specified privileges.
PathNotFoundException - if no node exists at absPath
of if the session does not have the permission to READ it.
RepositoryException - If another error occurs.
protected abstract PrivilegeRegistry getPrivilegeRegistry()
throws RepositoryException
RepositoryException - If another error occurs.
protected abstract void checkValidNodePath(String absPath)
throws PathNotFoundException,
RepositoryException
absPath is absolute and points to an existing node.
absPath - Path to an existing node.
PathNotFoundException - if no node at absPath exists
or the session does not have privilege to retrieve the node.
RepositoryException - If the given absPath is not
absolute or if some other error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||