|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessManagerPlugin
A simplified AccessManager interface.
Field Summary | |
---|---|
static int |
ADD_NODE
|
static int |
ALL
|
static int |
NONE
|
static int |
READ
|
static int |
REMOVE_NODE
|
static int |
REMOVE_PROPERTY
|
static int |
SET_PROPERTY
|
Method Summary | |
---|---|
boolean |
canRead(java.lang.String itemPath)
Determines whether the item at the specified absolute path can be read. |
void |
close()
Close this access manager. |
WorkspaceAccessManagerPlugin |
getWorkspaceAccessManager()
Returns the WorkspaceAccessManagerPlugin to be used for checking Workspace access. |
void |
init(javax.security.auth.Subject subject,
javax.jcr.Session session)
Initialize this access manager. |
boolean |
isGranted(java.lang.String absPath,
int permissions)
Determines whether the specified permissions are granted
on the item with the specified absPath (i.e. the target
item, that may or may not yet exist). |
Field Detail |
---|
static final int READ
static final int ADD_NODE
static final int REMOVE_NODE
static final int SET_PROPERTY
static final int REMOVE_PROPERTY
static final int ALL
static final int NONE
Method Detail |
---|
void init(javax.security.auth.Subject subject, javax.jcr.Session session) throws javax.jcr.AccessDeniedException, java.lang.Exception
AccessDeniedException
will
be thrown if the subject of the given context
is not
granted access to the specified workspace.
subject
- The authenticated Subjectsession
- The current JCR session
javax.jcr.AccessDeniedException
java.lang.Exception
void close() throws java.lang.Exception
java.lang.Exception
- if an error occursboolean isGranted(java.lang.String absPath, int permissions) throws javax.jcr.RepositoryException
permissions
are granted
on the item with the specified absPath
(i.e. the target
item, that may or may not yet exist).
absPath
- the absolute path to testpermissions
- A combination of one or more of the following constants
encoded as a bitmask value:
READ
ADD_NODE
REMOVE_NODE
SET_PROPERTY
REMOVE_PROPERTY
true
if the specified permissions are granted;
otherwise false
.
javax.jcr.RepositoryException
- if an error occurs.boolean canRead(java.lang.String itemPath) throws javax.jcr.RepositoryException
itemPath
- Absolute path to the item being accessed
true
if the item can be read; otherwise false
.
javax.jcr.RepositoryException
- if an error occurs.WorkspaceAccessManagerPlugin getWorkspaceAccessManager()
WorkspaceAccessManagerPlugin
to be used for checking Workspace access.
If null
is returned, the default WorkspaceAccessManager
will be used.
WorkspaceAccessManagerPlugin
, or null
to use
the default WorkspaceAccessManager
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |