|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.security.authorization.AbstractAccessControlProvider org.apache.jackrabbit.core.security.authorization.combined.CombinedProvider
public class CombinedProvider
CombinedProvider
...
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.core.security.authorization.AbstractAccessControlProvider |
---|
observationMgr, PARAM_OMIT_DEFAULT_PERMISSIONS, privAll, privRead, resolver, session |
Constructor Summary | |
---|---|
CombinedProvider()
|
Method Summary | |
---|---|
boolean |
canAccessRoot(Set principals)
Returns true if the given set of principals can access the
root node of the workspace this provider has been built for;
false otherwise. |
void |
close()
Closes this provider when it is no longer used by the respective workspace and release resources bound by this provider. |
CompiledPermissions |
compilePermissions(Set principals)
Compiles the effective policy for the specified set of Principal s. |
AccessControlEditor |
getEditor(Session editingSession)
Returns an AccessControlEditor for the given Session object
or null if the implementation does not support editing
of access control policies. |
AccessControlPolicy[] |
getEffectivePolicies(Path absPath)
Returns the effective policies for the node at the given absPath. |
void |
init(Session systemSession,
Map configuration)
Tests if the given systemSession is a SessionImpl and
retrieves the observation manager. |
boolean |
isAcItem(ItemImpl item)
Test if the specified path points to an item that defines AC information and consequently should be considered protected. |
boolean |
isAcItem(Path absPath)
Test if the specified path points to an item that defines AC information. |
Methods inherited from class org.apache.jackrabbit.core.security.authorization.AbstractAccessControlProvider |
---|
checkInitialized, getAdminPermissions, getReadOnlyPermissions, isAdminOrSystem, isReadOnly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinedProvider()
Method Detail |
---|
public boolean isAcItem(Path absPath) throws RepositoryException
AccessControlUtils
absPath
- Path to an item.
absPath
contains
access control information.
RepositoryException
- If an error occurs.AccessControlUtils.isAcItem(Path)
public boolean isAcItem(ItemImpl item) throws RepositoryException
AccessControlUtils
item
- An item.
item
defines
access control related information is should therefore be considered
protected.
RepositoryException
- If an error occurs.AccessControlUtils.isAcItem(ItemImpl)
public void close()
AccessControlProvider
close
in interface AccessControlProvider
close
in class AbstractAccessControlProvider
AccessControlProvider.close()
public void init(Session systemSession, Map configuration) throws RepositoryException
AbstractAccessControlProvider
systemSession
is a SessionImpl and
retrieves the observation manager. The it sets the internal 'initialized'
field to true.
init
in interface AccessControlProvider
init
in class AbstractAccessControlProvider
systemSession
- System session.configuration
- Configuration used to initialize this provider.
RepositoryException
- If the specified session is not a
SessionImpl
or if retrieving the observation manager fails.AccessControlProvider.init(javax.jcr.Session, java.util.Map)
public AccessControlPolicy[] getEffectivePolicies(Path absPath) throws ItemNotFoundException, RepositoryException
AccessControlProvider
absPath
- an absolute path.
absPath
or
an empty array if the implementation cannot determine the effective
policy at the given path.
ItemNotFoundException
- If no Node with the specified
absPath
exists.
RepositoryException
- If another error occurs.AccessControlProvider.getEffectivePolicies(Path)
public AccessControlEditor getEditor(Session editingSession)
AccessControlProvider
AccessControlEditor
for the given Session object
or null
if the implementation does not support editing
of access control policies.
editingSession
- The editing session.
null
.AccessControlProvider.getEditor(javax.jcr.Session)
public CompiledPermissions compilePermissions(Set principals) throws RepositoryException
AccessControlProvider
Principal
s.
principals
- Set of principals to compile the permissions for. If
the order of evaluating permissions for principals is meaningful, the
caller is adviced to pass a Set that respects the order of insertion.
RepositoryException
- If an error occurs.AccessControlProvider.compilePermissions(Set)
public boolean canAccessRoot(Set principals) throws RepositoryException
AccessControlProvider
true
if the given set of principals can access the
root node of the workspace this provider has been built for;
false
otherwise.
principals
- Set of principals to be tested for being allowed to
access the root node.
true
if the given set of principals can access the
root node of the workspace this provider has been built for;
false
otherwise.
RepositoryException
- If an error occurs.AccessControlProvider.canAccessRoot(Set)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |