public interface JackrabbitSession
javax.jcr.Session interface.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_ADD_PROPERTY
A constant representing the
add_property action string, used to
determine if this Session has permission to add a new property. |
static java.lang.String |
ACTION_LOCKING
A constant representing the
locking action string,
used to determine if this Session has permission to lock or
unlock a node. |
static java.lang.String |
ACTION_MODIFY_ACCESS_CONTROL
A constant representing the
modify_access_control action string,
used to determine if this Session has permission to modify
access control content at the given path. |
static java.lang.String |
ACTION_MODIFY_PROPERTY
A constant representing the
modify_property action string, used to
determine if this Session has permission to modify a property. |
static java.lang.String |
ACTION_NODE_TYPE_MANAGEMENT
A constant representing the
node_type_management action string,
used to determine if this Session has permission to write
node type information of a node. |
static java.lang.String |
ACTION_READ_ACCESS_CONTROL
A constant representing the
read_access_control action string,
used to determine if this Session has permission to read
access control content at the given path. |
static java.lang.String |
ACTION_REMOVE_NODE
A constant representing the
remove_node action string, used to
determine if this Session has permission to remove a node. |
static java.lang.String |
ACTION_REMOVE_PROPERTY
A constant representing the
remove_property action string, used to
determine if this Session has permission to remove a property. |
static java.lang.String |
ACTION_USER_MANAGEMENT
A constant representing the
user_management action string,
used to determine if this Session has permission to perform
user management operations at the given path. |
static java.lang.String |
ACTION_VERSIONING
A constant representing the
versioning action string,
used to determine if this Session has permission to perform
version operations on a node. |
| Modifier and Type | Method and Description |
|---|---|
Item |
getItemOrNull(java.lang.String absPath)
Returns the node at the specified absolute path in the workspace.
|
Node |
getNodeOrNull(java.lang.String absPath)
Returns the node at the specified absolute path in the workspace or
null if no such node exists. |
PrincipalManager |
getPrincipalManager()
Returns the
PrincipalManager for the current Session. |
Property |
getPropertyOrNull(java.lang.String absPath)
Returns the property at the specified absolute path in the workspace or
null if no such node exists. |
UserManager |
getUserManager()
Returns the
UserManager for the current Session. |
boolean |
hasPermission(java.lang.String absPath,
java.lang.String... actions)
Returns
true if this Session has permission to
perform the specified actions at the specified absPath and
false otherwise. |
static final java.lang.String ACTION_ADD_PROPERTY
add_property action string, used to
determine if this Session has permission to add a new property.static final java.lang.String ACTION_MODIFY_PROPERTY
modify_property action string, used to
determine if this Session has permission to modify a property.static final java.lang.String ACTION_REMOVE_PROPERTY
remove_property action string, used to
determine if this Session has permission to remove a property.static final java.lang.String ACTION_REMOVE_NODE
remove_node action string, used to
determine if this Session has permission to remove a node.static final java.lang.String ACTION_NODE_TYPE_MANAGEMENT
node_type_management action string,
used to determine if this Session has permission to write
node type information of a node.static final java.lang.String ACTION_VERSIONING
versioning action string,
used to determine if this Session has permission to perform
version operations on a node.static final java.lang.String ACTION_LOCKING
locking action string,
used to determine if this Session has permission to lock or
unlock a node.static final java.lang.String ACTION_READ_ACCESS_CONTROL
read_access_control action string,
used to determine if this Session has permission to read
access control content at the given path.static final java.lang.String ACTION_MODIFY_ACCESS_CONTROL
modify_access_control action string,
used to determine if this Session has permission to modify
access control content at the given path.static final java.lang.String ACTION_USER_MANAGEMENT
user_management action string,
used to determine if this Session has permission to perform
user management operations at the given path.boolean hasPermission(java.lang.String absPath,
java.lang.String... actions)
throws RepositoryException
true if this Session has permission to
perform the specified actions at the specified absPath and
false otherwise.
The actions parameter is a list of action strings. Apart
from the actions defined on Session, this variant also allows
to specify the following additional actions to provide better permission
discovery:
The information returned through this method will only reflect the permission status (both JCR defined and implementation-specific) and not other restrictions that may exist, such as node type or other implementation enforced constraints. For example, even though {@code hasPermission} may indicate that a particular {@code Session} may add a property at {@code /A/B/C}, the node type of the node at {@code /A/B} may prevent the addition of a property called {@code C}.
absPath - an absolute path.actions - one or serveral actions.true if this Session has permission to
perform the specified actions at the specified
absPath.RepositoryException - if an error occurs.Session#hasPermission(String, String)}PrincipalManager getPrincipalManager() throws AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryException
PrincipalManager for the current Session.PrincipalManager associated with this Session.AccessDeniedException - If the session lacks privileges to access
the principal manager or principals in general.UnsupportedRepositoryOperationException - If principal management
is not supported.RepositoryException - If another error occurs.PrincipalManagerUserManager getUserManager() throws AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryException
UserManager for the current Session.UserManager associated with this Session.javax.jcr.AccessDeniedException - If this session is not allowed to
to access user data.UnsupportedRepositoryOperationException - If user management is
not supported.javax.jcr.RepositoryException - If another error occurs.AccessDeniedExceptionRepositoryExceptionUserManagerItem getItemOrNull(java.lang.String absPath)
throws RepositoryException
null.absPath - An absolute path.Item or null.RepositoryException - if another error occurs.Property getPropertyOrNull(java.lang.String absPath)
throws RepositoryException
null if no such node exists.absPath - An absolute path.Property or null.RepositoryException - if another error occurs.Node getNodeOrNull(java.lang.String absPath)
throws RepositoryException
null if no such node exists.absPath - An absolute path.Node or null.RepositoryException - If another error occurs."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"