|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AccessManager
The AccessManager can be queried to determines whether permission
is granted to perform a specific action on a specific item.
| Field Summary | |
|---|---|
static java.lang.String |
ADD_NODE_ACTION
|
static java.lang.String[] |
READ
|
static java.lang.String |
READ_ACTION
predefined action constants |
static java.lang.String[] |
REMOVE
|
static java.lang.String |
REMOVE_ACTION
|
static java.lang.String |
SET_PROPERTY_ACTION
|
| Method Summary | |
|---|---|
boolean |
canAccess(java.lang.String workspaceName)
Determines whether the subject of the current context is granted access to the given workspace. |
boolean |
canRead(ItemState itemState)
Returns true if the existing item with the given ItemId can
be read. |
boolean |
canRemove(ItemState itemState)
Returns true if the existing item state can be removed. |
boolean |
isGranted(ItemState itemState,
java.lang.String[] actions)
Determines whether the specified permissions are granted
on the item with the specified path. |
boolean |
isGranted(NodeState parentState,
Path relPath,
java.lang.String[] actions)
Determines whether the specified permissions are granted
on the item with the specified path. |
| Field Detail |
|---|
static final java.lang.String READ_ACTION
static final java.lang.String REMOVE_ACTION
static final java.lang.String ADD_NODE_ACTION
static final java.lang.String SET_PROPERTY_ACTION
static final java.lang.String[] READ
static final java.lang.String[] REMOVE
| Method Detail |
|---|
boolean isGranted(NodeState parentState,
Path relPath,
java.lang.String[] actions)
throws ItemNotFoundException,
RepositoryException
permissions are granted
on the item with the specified path.
parentState - The node state of the next existing ancestor.relPath - The relative path pointing to the non-existing target item.actions - An array of actions that need to be checked.
true if the actions are granted; otherwise false
ItemNotFoundException - if the target item does not exist
RepositoryException - if another error occurs
boolean isGranted(ItemState itemState,
java.lang.String[] actions)
throws ItemNotFoundException,
RepositoryException
permissions are granted
on the item with the specified path.
itemState - actions - An array of actions that need to be checked.
true if the actions are granted; otherwise false
ItemNotFoundException - if the target item does not exist
RepositoryException - if another error occurs
boolean canRead(ItemState itemState)
throws ItemNotFoundException,
RepositoryException
ItemId can
be read.
itemState -
ItemNotFoundException
RepositoryException
boolean canRemove(ItemState itemState)
throws ItemNotFoundException,
RepositoryException
itemState -
ItemNotFoundException
RepositoryException
boolean canAccess(java.lang.String workspaceName)
throws NoSuchWorkspaceException,
RepositoryException
workspaceName - name of workspace
true if the subject of the current context is
granted access to the given workspace; otherwise false.
NoSuchWorkspaceException - if a workspace with the given name does not exist.
RepositoryException - if another error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||