|
||||||||||
| 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 |
checkPrivileges(java.lang.String absPath,
int privileges)
Check if the specified privileges are granted at absPath. |
protected abstract void |
checkValidNodePath(java.lang.String absPath)
Build a qualified path from the specified absPath and test
if it is really absolute and points to an existing node. |
AccessControlPolicy[] |
getApplicablePolicies(java.security.Principal principal)
Returns the editable policies for the specified principal. |
AccessControlPolicyIterator |
getApplicablePolicies(java.lang.String absPath)
Returns an empty iterator. |
AccessControlPolicy[] |
getPolicies(java.lang.String absPath)
Returns null. |
protected abstract PrivilegeRegistry |
getPrivilegeRegistry()
|
Privilege[] |
getSupportedPrivileges(java.lang.String absPath)
Always returns all registered Privileges. |
Privilege |
privilegeFromName(java.lang.String privilegeName)
Returns the privilege with the specified privilegeName. |
void |
removePolicy(java.lang.String absPath,
AccessControlPolicy policy)
Always throws AccessControlException |
void |
setPolicy(java.lang.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.jsr283.security.AccessControlManager |
|---|
getEffectivePolicies, getPrivileges, hasPrivileges |
| Constructor Detail |
|---|
public AbstractAccessControlManager()
| Method Detail |
|---|
public Privilege[] getSupportedPrivileges(java.lang.String absPath)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
Privileges.
getSupportedPrivileges in interface AccessControlManagerabsPath -
Privileges.
javax.jcr.PathNotFoundException - if no node at absPath exists
or the session does not have privilege to
retrieve the node.
javax.jcr.RepositoryException - if another error occurs.AccessControlManager.getSupportedPrivileges(String)
public Privilege privilegeFromName(java.lang.String privilegeName)
throws AccessControlException,
javax.jcr.RepositoryException
AccessControlManagerprivilegeName.
A AccessControlException is thrown if no privilege with
the specified name exists.
A RepositoryException is thrown if another error occurs.
privilegeFromName in interface AccessControlManagerprivilegeName - the name of an existing privilege.
Privilege with the specified privilegeName.
AccessControlException - if no privilege with the specified name exists.
javax.jcr.RepositoryException - if another error occurs.AccessControlManager.privilegeFromName(String)
public AccessControlPolicy[] getPolicies(java.lang.String absPath)
throws javax.jcr.PathNotFoundException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
null.
getPolicies in interface AccessControlManagerabsPath -
null.
javax.jcr.PathNotFoundException - if no node at absPath exists
or the session does not have privilege to
retrieve the node.
javax.jcr.AccessDeniedException - if the session lacks
READ_ACCESS_CONTROL privilege
for the absPath node.
javax.jcr.RepositoryException - if another error occurs.AccessControlManager.getApplicablePolicies(String)
public AccessControlPolicyIterator getApplicablePolicies(java.lang.String absPath)
throws javax.jcr.PathNotFoundException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
getApplicablePolicies in interface AccessControlManagerabsPath -
javax.jcr.PathNotFoundException - if no node at absPath exists
or the session does not have privilege to
retrieve the node.
javax.jcr.AccessDeniedException - if the session lacks
READ_ACCESS_CONTROL privilege
for the absPath node.
javax.jcr.RepositoryException - if another error occurs.AccessControlManager.getApplicablePolicies(String)
public void setPolicy(java.lang.String absPath,
AccessControlPolicy policy)
throws javax.jcr.PathNotFoundException,
AccessControlException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
AccessControlException
setPolicy in interface AccessControlManagerabsPath - an absolute path.policy - the AccessControlPolicy to be applied.
javax.jcr.PathNotFoundException - if no node at absPath exists
or the session does not have privilege to
retrieve the node.
AccessControlException - if the policy is not applicable.
javax.jcr.AccessDeniedException - if the session lacks
MODIFY_ACCESS_CONTROL
privilege for the absPath node.
javax.jcr.lock.LockException - if a lock applies at the node at
absPath and this implementation
performs this validation immediately instead
of waiting until save.
javax.jcr.version.VersionException - if the node at absPath is
versionable and checked-in or is non-versionable
but its nearest versionable ancestor is
checked-in and this implementation performs
this validation immediately instead of
waiting until save.
javax.jcr.RepositoryException - if another error occurs.AccessControlManager.setPolicy(String, AccessControlPolicy)
public void removePolicy(java.lang.String absPath,
AccessControlPolicy policy)
throws javax.jcr.PathNotFoundException,
AccessControlException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
AccessControlException
removePolicy in interface AccessControlManagerabsPath - an absolute path.policy - the policy to be removed.
javax.jcr.PathNotFoundException - if no node at absPath exists
or the session does not have privilege to
retrieve the node.
AccessControlException - if no policy exists.
javax.jcr.AccessDeniedException - if the session lacks
MODIFY_ACCESS_CONTROL
privilege for the absPath node.
javax.jcr.lock.LockException - if a lock applies at the node at
absPath and this implementation
performs this validation immediately instead
of waiting until save.
javax.jcr.version.VersionException - if the node at absPath is
versionable and checked-in or is non-versionable
but its nearest versionable ancestor is
checked-in and this implementation performs
this validation immediately instead of
waiting until save.
javax.jcr.RepositoryException - if another error occurs.AccessControlManager.removePolicy(String, AccessControlPolicy)
public AccessControlPolicy[] getApplicablePolicies(java.security.Principal principal)
throws javax.jcr.AccessDeniedException,
AccessControlException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
principal.
getApplicablePolicies in interface JackrabbitAccessControlManagerprincipal. Note
that the policy object returned must reveal the path of the node where
they can be applied later on.
javax.jcr.AccessDeniedException - if the session lacks
MODIFY_ACCESS_CONTROL privilege.
AccessControlException - if the specified principal does not exist
or if same other access control related exception occurs.
javax.jcr.UnsupportedRepositoryOperationException - if editing the policy
is not supported.
javax.jcr.RepositoryException - if another error occurs.
protected abstract void checkInitialized()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - If this manager has not been properly initialized.
protected abstract void checkPrivileges(java.lang.String absPath,
int privileges)
throws javax.jcr.AccessDeniedException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
absPath.
absPath - privileges -
javax.jcr.AccessDeniedException - if the session does not have the
specified privileges.
javax.jcr.PathNotFoundException - if no node exists at absPath
of if the session does not have the privilege to READ it.
javax.jcr.RepositoryException
protected abstract PrivilegeRegistry getPrivilegeRegistry()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected abstract void checkValidNodePath(java.lang.String absPath)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
absPath and test
if it is really absolute and points to an existing node.
absPath -
javax.jcr.PathNotFoundException - if no node at absPath exists
or the session does not have privilege to retrieve the node.
javax.jcr.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 | |||||||||