|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
public abstract class AbstractCompiledPermissions
AbstractCompiledPermissions...
| Nested Class Summary | |
|---|---|
static class |
AbstractCompiledPermissions.Result
|
| Constructor Summary | |
|---|---|
protected |
AbstractCompiledPermissions()
|
| Method Summary | |
|---|---|
protected abstract AbstractCompiledPermissions.Result |
buildResult(Path absPath)
|
boolean |
canReadAll()
Returns true if READ permission is granted everywhere. |
protected void |
clearCache()
|
void |
close()
Indicate to this CompiledPermissions object that it is
not used any more. |
int |
getPrivileges(Path absPath)
Returns the Privileges granted by the underlying policy
if the given absPath denotes an existing Node,
otherwise it returns zero. |
AbstractCompiledPermissions.Result |
getResult(Path absPath)
|
boolean |
grants(Path absPath,
int permissions)
Returns true if the specified permissions are granted
on the item identified by the given path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractCompiledPermissions()
| Method Detail |
|---|
public AbstractCompiledPermissions.Result getResult(Path absPath)
throws javax.jcr.RepositoryException
absPath -
Result for the give absPath.
javax.jcr.RepositoryException
protected abstract AbstractCompiledPermissions.Result buildResult(Path absPath)
throws javax.jcr.RepositoryException
absPath -
javax.jcr.RepositoryExceptionprotected void clearCache()
public void close()
CompiledPermissionsCompiledPermissions object that it is
not used any more.
close in interface CompiledPermissionsCompiledPermissions.close()
public boolean grants(Path absPath,
int permissions)
throws javax.jcr.RepositoryException
CompiledPermissionstrue if the specified permissions are granted
on the item identified by the given path.
grants in interface CompiledPermissionsabsPath - Absolute path pointing to an item. If the item does
not exist yet (asking for 'add-node' and 'set-property' permission),
it's direct ancestor must exist.permissions - A combination of one or more of permission constants
defined by Permission encoded as a bitmask value
true if the specified permissions are granted,
false otherwise.
javax.jcr.RepositoryException - if an error occurs.CompiledPermissions.grants(Path, int)
public int getPrivileges(Path absPath)
throws javax.jcr.RepositoryException
CompiledPermissionsPrivileges granted by the underlying policy
if the given absPath denotes an existing Node,
otherwise it returns zero.
getPrivileges in interface CompiledPermissionsabsPath or zero if
the path does not denote an existing Node.
javax.jcr.RepositoryException - if an error occursCompiledPermissions.getPrivileges(Path)
public boolean canReadAll()
throws javax.jcr.RepositoryException
CompiledPermissionstrue if READ permission is granted everywhere.
This method acts as shortcut for CompiledPermissions.grants(Path, int) where
permissions is Permission.READ and allows to shorten the
evaluation time given the fact that a check for READ permission is
considered to be the most frequent test.
canReadAll in interface CompiledPermissionstrue if the READ permission is granted everywhere.
javax.jcr.RepositoryException - if an error occursCompiledPermissions.canReadAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||