public class JCRSessionWrapper extends Object implements javax.jcr.Session
javax.jcr.Session to be able to inject
Jahia specific actions and to manage sessions to multiple repository providers in
the backend.
Jahia services should use this wrapper rather than the original session interface to
ensure that we manipulate wrapped nodes and not the ones from the underlying
implementation.| Modifier and Type | Field and Description |
|---|---|
static String |
DEREF_SEPARATOR |
protected UUID |
uuid |
| Constructor and Description |
|---|
JCRSessionWrapper(JahiaUser user,
javax.jcr.Credentials credentials,
boolean isSystem,
String workspace,
Locale locale,
JCRSessionFactory sessionFactory,
Locale fallbackLocale) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockToken(String token)
Deprecated.
As of JCR 2.0,
LockManager.addLockToken(String)
should be used instead. |
void |
checkout(javax.jcr.Node node)
Performs check out of the specified node.
|
void |
checkPermission(String absPath,
String actions)
Normally determines whether this
Session has permission to perform
the specified actions at the specified absPath. |
void |
checkReadOnly(String message)
Check if this session is read only, call the read only controller to report read only violation in case the session is read only.
|
void |
exportDocumentView(String path,
ContentHandler handler,
boolean skipBinary,
boolean noRecurse)
Generates a document view export using a
DocumentViewExporter
instance. |
void |
exportDocumentView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
Calls
Session.exportDocumentView(String, ContentHandler, boolean, boolean)
with the given arguments and a ContentHandler that serializes
SAX events to the given output stream. |
void |
exportSystemView(String path,
ContentHandler handler,
boolean skipBinary,
boolean noRecurse)
Generates a system view export using a
SystemViewExporter
instance. |
void |
exportSystemView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
Calls
Session.exportSystemView(String, ContentHandler, boolean, boolean)
with the given arguments and a ContentHandler that serializes
SAX events to the given output stream. |
protected void |
flushCaches() |
javax.jcr.security.AccessControlManager |
getAccessControlManager()
Returns the access control manager for this
Session. |
static long |
getActiveSessions() |
static Map<UUID,JCRSessionWrapper> |
getActiveSessionsObjects() |
JahiaUser |
getAliasedUser() |
Collection<javax.jcr.Session> |
getAllSessions()
Get sessions from all providers used in this wrapper.
|
Object |
getAttribute(String s) |
String[] |
getAttributeNames() |
protected JCRNodeWrapper |
getCachedNode(String uuid) |
Collection<JCRNodeWrapper> |
getChangedNodes() |
Locale |
getFallbackLocale() |
JCRNodeWrapper |
getFrozenVersionAsRegular(javax.jcr.Node objectNode,
JCRStoreProvider provider)
Returns the wrapper node which corresponds to the version specified in the current session.
|
protected JCRNodeWrapper |
getFrozenVersionAsRegular(javax.jcr.Node objectNode,
JCRStoreProvider provider,
boolean throwExeptionIfNotFound)
Returns the wrapper node which corresponds to the version specified in the current session.
|
String |
getIdentifier() |
ContentHandler |
getImportContentHandler(String s,
int i) |
JCRItemWrapper |
getItem(String path) |
JCRItemWrapper |
getItem(String path,
boolean checkVersion) |
Locale |
getLocale() |
String[] |
getLockTokens() |
String |
getNamespacePrefix(String uri) |
String[] |
getNamespacePrefixes() |
String |
getNamespaceURI(String prefix) |
JCRNodeWrapper |
getNode(String path) |
JCRNodeWrapper |
getNode(String path,
boolean checkVersion) |
JCRNodeWrapper |
getNodeByIdentifier(String id) |
JCRNodeWrapper |
getNodeByUUID(String uuid) |
JCRNodeWrapper |
getNodeByUUID(String uuid,
boolean checkVersion) |
JCRNodeWrapper |
getNodeByUUID(String providerKey,
String uuid) |
Map<String,String> |
getPathMapping() |
Calendar |
getPreviewDate() |
javax.jcr.Property |
getProperty(String absPath) |
javax.jcr.Session |
getProviderSession(JCRStoreProvider provider)
Return the underlying session for a specific provider
This gives a direct access to the underlying implementation session, all operations done here will bypass the
JCRSessionWrapper layer.
|
javax.jcr.Session |
getProviderSession(JCRStoreProvider provider,
boolean create)
Return the underlying session for a specific provider
This gives a direct access to the underlying implementation session, all operations done here will bypass the
JCRSessionWrapper layer.
|
javax.jcr.Repository |
getRepository() |
Map<String,Object> |
getResolvedReferences() |
javax.jcr.retention.RetentionManager |
getRetentionManager() |
JCRNodeWrapper |
getRootNode() |
Exception |
getSessionTrace() |
JahiaUser |
getUser() |
String |
getUserID() |
JCRUserNode |
getUserNode() |
Map<String,String> |
getUuidMapping() |
javax.jcr.ValueFactory |
getValueFactory() |
Date |
getVersionDate() |
String |
getVersionLabel() |
javax.jcr.PropertyIterator |
getWeakReferences(JCRNodeWrapper node,
String propertyName)
Get weak references of a node
|
JCRWorkspaceWrapper |
getWorkspace() |
boolean |
hasCapability(String s,
Object o,
Object[] objects) |
boolean |
hasPendingChanges() |
boolean |
hasPermission(String absPath,
String actions) |
javax.jcr.Session |
impersonate(javax.jcr.Credentials credentials) |
void |
importXML(String path,
InputStream inputStream,
int uuidBehavior) |
void |
importXML(String path,
InputStream inputStream,
int uuidBehavior,
int rootBehavior) |
void |
importXML(String path,
InputStream inputStream,
int uuidBehavior,
int rootBehavior,
Map<String,String> replacements,
Map<String,List<String>> references) |
boolean |
isCurrentUserSession() |
boolean |
isLive() |
boolean |
isReadOnly()
Get the read only status of this session.
|
boolean |
isReadOnlyCacheEnabled() |
boolean |
isSkipValidation() |
boolean |
isSystem() |
boolean |
itemExists(String path) |
void |
logout() |
void |
move(String source,
String dest) |
boolean |
nodeExists(String absPath) |
boolean |
propertyExists(String absPath) |
void |
refresh(boolean b) |
void |
removeItem(String absPath) |
void |
removeLockToken(String token) |
void |
save() |
void |
save(int operationType) |
void |
setCurrentUserSession(boolean isCurrentUserSession) |
void |
setFallbackLocale(Locale fallbackLocale) |
void |
setNamespacePrefix(String prefix,
String uri)
Applies the namespace prefix to the appropriate sessions, including the underlying provider sessions.
|
void |
setReadOnlyCacheEnabled(boolean readOnlyCacheEnabled) |
void |
setSkipValidation(boolean skipValidation) |
void |
setVersionDate(Date versionDate) |
void |
setVersionLabel(String versionLabel) |
String |
toString() |
void |
validate() |
protected void |
validate(int operationType) |
protected CompositeConstraintViolationException |
validateNodes(Collection<JCRNodeWrapper> nodes,
CompositeConstraintViolationException ccve,
int operationType) |
public static final String DEREF_SEPARATOR
protected UUID uuid
public JCRSessionWrapper(JahiaUser user, javax.jcr.Credentials credentials, boolean isSystem, String workspace, Locale locale, JCRSessionFactory sessionFactory, Locale fallbackLocale)
public JCRNodeWrapper getRootNode() throws javax.jcr.RepositoryException
getRootNode in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic javax.jcr.Repository getRepository()
getRepository in interface javax.jcr.Sessionpublic String getUserID()
getUserID in interface javax.jcr.Sessionpublic boolean isSystem()
public boolean isSkipValidation()
public void setSkipValidation(boolean skipValidation)
public Object getAttribute(String s)
getAttribute in interface javax.jcr.Sessionpublic String[] getAttributeNames()
getAttributeNames in interface javax.jcr.Sessionpublic JCRWorkspaceWrapper getWorkspace()
getWorkspace in interface javax.jcr.Sessionpublic Locale getLocale()
public javax.jcr.Session impersonate(javax.jcr.Credentials credentials)
throws javax.jcr.LoginException,
javax.jcr.RepositoryException
impersonate in interface javax.jcr.Sessionjavax.jcr.LoginExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNodeByUUID(String uuid) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getNodeByUUID in interface javax.jcr.Sessionjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNodeByUUID(String uuid, boolean checkVersion) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
javax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNodeByUUID(String providerKey, String uuid) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
javax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionpublic JCRItemWrapper getItem(String path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getItem in interface javax.jcr.Sessionjavax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic JCRItemWrapper getItem(String path, boolean checkVersion) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNode(String path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getNode in interface javax.jcr.Sessionjavax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNode(String path, boolean checkVersion) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic boolean itemExists(String path) throws javax.jcr.RepositoryException
itemExists in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic void move(String source, String dest) throws javax.jcr.ItemExistsException, javax.jcr.PathNotFoundException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
move in interface javax.jcr.Sessionjavax.jcr.ItemExistsExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic void save()
throws javax.jcr.AccessDeniedException,
javax.jcr.ItemExistsException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.InvalidItemStateException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.RepositoryException
save in interface javax.jcr.Sessionjavax.jcr.AccessDeniedExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.RepositoryExceptionpublic Collection<JCRNodeWrapper> getChangedNodes()
public void save(int operationType)
throws javax.jcr.AccessDeniedException,
javax.jcr.ItemExistsException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.InvalidItemStateException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.RepositoryException
javax.jcr.AccessDeniedExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.RepositoryExceptionpublic void validate()
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
javax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionprotected void validate(int operationType)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
javax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionprotected CompositeConstraintViolationException validateNodes(Collection<JCRNodeWrapper> nodes, CompositeConstraintViolationException ccve, int operationType) throws javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
javax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic void refresh(boolean b)
throws javax.jcr.RepositoryException
refresh in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic boolean hasPendingChanges()
throws javax.jcr.RepositoryException
hasPendingChanges in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic javax.jcr.ValueFactory getValueFactory()
getValueFactory in interface javax.jcr.Sessionpublic void checkPermission(String absPath, String actions) throws AccessControlException, javax.jcr.RepositoryException
Session has permission to perform
the specified actions at the specified absPath.
This method is not supported.checkPermission in interface javax.jcr.SessionabsPath - an absolute path.actions - a comma separated list of action strings.javax.jcr.UnsupportedRepositoryOperationException - as long as Jahia doesn't support itAccessControlExceptionjavax.jcr.RepositoryExceptionpublic ContentHandler getImportContentHandler(String s, int i) throws javax.jcr.PathNotFoundException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
getImportContentHandler in interface javax.jcr.Sessionjavax.jcr.PathNotFoundExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic void importXML(String path, InputStream inputStream, int uuidBehavior) throws IOException, javax.jcr.PathNotFoundException, javax.jcr.ItemExistsException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.version.VersionException, javax.jcr.InvalidSerializedDataException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
importXML in interface javax.jcr.SessionIOExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.version.VersionExceptionjavax.jcr.InvalidSerializedDataExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic void importXML(String path, InputStream inputStream, int uuidBehavior, int rootBehavior) throws IOException, javax.jcr.InvalidSerializedDataException, javax.jcr.RepositoryException
IOExceptionjavax.jcr.InvalidSerializedDataExceptionjavax.jcr.RepositoryExceptionpublic void importXML(String path, InputStream inputStream, int uuidBehavior, int rootBehavior, Map<String,String> replacements, Map<String,List<String>> references) throws IOException, javax.jcr.InvalidSerializedDataException, javax.jcr.RepositoryException
IOExceptionjavax.jcr.InvalidSerializedDataExceptionjavax.jcr.RepositoryExceptionpublic void setNamespacePrefix(String prefix, String uri) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
setNamespacePrefix in interface javax.jcr.Sessionprefix - uri - javax.jcr.NamespaceExceptionjavax.jcr.RepositoryException - in case of JCR-related errorspublic String[] getNamespacePrefixes() throws javax.jcr.RepositoryException
getNamespacePrefixes in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic String getNamespaceURI(String prefix) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
getNamespaceURI in interface javax.jcr.Sessionjavax.jcr.NamespaceExceptionjavax.jcr.RepositoryExceptionpublic String getNamespacePrefix(String uri) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
getNamespacePrefix in interface javax.jcr.Sessionjavax.jcr.NamespaceExceptionjavax.jcr.RepositoryExceptionpublic void logout()
logout in interface javax.jcr.Sessionpublic boolean isLive()
isLive in interface javax.jcr.Sessionpublic void addLockToken(String token)
LockManager.addLockToken(String)
should be used instead.Session the owner of the lock
specified by that particular lock token.addLockToken in interface javax.jcr.Sessiontoken - a lock token (a string).public String[] getLockTokens()
getLockTokens in interface javax.jcr.Sessionpublic void removeLockToken(String token)
removeLockToken in interface javax.jcr.Sessionpublic Collection<javax.jcr.Session> getAllSessions()
Collection of JCRSessionWrapper objectspublic javax.jcr.Session getProviderSession(JCRStoreProvider provider) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic javax.jcr.Session getProviderSession(JCRStoreProvider provider, boolean create) throws javax.jcr.RepositoryException
create - Will create a new session on the provider if it has not been opened yetjavax.jcr.RepositoryExceptionpublic JahiaUser getUser()
public JahiaUser getAliasedUser()
public Calendar getPreviewDate()
public void exportDocumentView(String path, ContentHandler handler, boolean skipBinary, boolean noRecurse) throws javax.jcr.PathNotFoundException, SAXException, javax.jcr.RepositoryException
DocumentViewExporter
instance.exportDocumentView in interface javax.jcr.Sessionpath - of the node to be exportedhandler - handler for the SAX events of the exportskipBinary - whether binary values should be skippednoRecurse - whether to export just the identified nodejavax.jcr.PathNotFoundException - if a node at the given path does not existSAXException - if the SAX event handler failedjavax.jcr.RepositoryException - if another error occurspublic void exportSystemView(String path, ContentHandler handler, boolean skipBinary, boolean noRecurse) throws javax.jcr.PathNotFoundException, SAXException, javax.jcr.RepositoryException
SystemViewExporter
instance.exportSystemView in interface javax.jcr.Sessionpath - of the node to be exportedhandler - handler for the SAX events of the exportskipBinary - whether binary values should be skippednoRecurse - whether to export just the identified nodejavax.jcr.PathNotFoundException - if a node at the given path does not existSAXException - if the SAX event handler failedjavax.jcr.RepositoryException - if another error occurspublic void exportDocumentView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, javax.jcr.RepositoryException
Session.exportDocumentView(String, ContentHandler, boolean, boolean)
with the given arguments and a ContentHandler that serializes
SAX events to the given output stream.exportDocumentView in interface javax.jcr.SessionabsPath - passed throughout - output stream to which the SAX events are serializedskipBinary - passed throughnoRecurse - passed throughIOException - if the SAX serialization failedjavax.jcr.RepositoryException - if another error occurspublic void exportSystemView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, javax.jcr.RepositoryException
Session.exportSystemView(String, ContentHandler, boolean, boolean)
with the given arguments and a ContentHandler that serializes
SAX events to the given output stream.exportSystemView in interface javax.jcr.SessionabsPath - passed throughout - output stream to which the SAX events are serializedskipBinary - passed throughnoRecurse - passed throughIOException - if the SAX serialization failedjavax.jcr.RepositoryException - if another error occurspublic JCRNodeWrapper getNodeByIdentifier(String id) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getNodeByIdentifier in interface javax.jcr.Sessionjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.Property getProperty(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getProperty in interface javax.jcr.Sessionjavax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic boolean nodeExists(String absPath) throws javax.jcr.RepositoryException
nodeExists in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic boolean propertyExists(String absPath) throws javax.jcr.RepositoryException
propertyExists in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic void removeItem(String absPath) throws javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
removeItem in interface javax.jcr.Sessionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic boolean hasPermission(String absPath, String actions) throws javax.jcr.RepositoryException
hasPermission in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic boolean hasCapability(String s, Object o, Object[] objects) throws javax.jcr.RepositoryException
hasCapability in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic javax.jcr.security.AccessControlManager getAccessControlManager()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
Session.
Jahia throws an UnsupportedRepositoryOperationException.getAccessControlManager in interface javax.jcr.SessionSessionjavax.jcr.UnsupportedRepositoryOperationException - if access control
is not supported.javax.jcr.RepositoryExceptionpublic javax.jcr.retention.RetentionManager getRetentionManager()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
getRetentionManager in interface javax.jcr.Sessionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionpublic void checkout(javax.jcr.Node node)
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
node - the node to perform the check outjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionfor detailspublic Locale getFallbackLocale()
public void setFallbackLocale(Locale fallbackLocale)
public Date getVersionDate()
public String getVersionLabel()
public void setVersionDate(Date versionDate)
public void setVersionLabel(String versionLabel)
public JCRNodeWrapper getFrozenVersionAsRegular(javax.jcr.Node objectNode, JCRStoreProvider provider) throws javax.jcr.RepositoryException
PathNotFoundException is thrown.objectNode - the source object to check version node forprovider - the node providerjavax.jcr.RepositoryException - in case of a repository operation errorprotected JCRNodeWrapper getFrozenVersionAsRegular(javax.jcr.Node objectNode, JCRStoreProvider provider, boolean throwExeptionIfNotFound) throws javax.jcr.RepositoryException
throwExeptionIfNotFound is set to false. If version is not found
and throwExeptionIfNotFound is set to true - throws a PathNotFoundException.objectNode - the source object to check version node forprovider - the node providerthrowExeptionIfNotFound - if true a PathNotFoundException is thrown in case the corresponding version cannot be foundjavax.jcr.RepositoryException - in case of a repository operation errorpublic static long getActiveSessions()
public static Map<UUID,JCRSessionWrapper> getActiveSessionsObjects()
protected void flushCaches()
protected JCRNodeWrapper getCachedNode(String uuid)
public boolean isCurrentUserSession()
public void setCurrentUserSession(boolean isCurrentUserSession)
public Exception getSessionTrace()
public javax.jcr.PropertyIterator getWeakReferences(JCRNodeWrapper node, String propertyName) throws javax.jcr.RepositoryException
node - nodepropertyName - name of the propertyjavax.jcr.RepositoryException - in case of JCR-related errorspublic JCRUserNode getUserNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic String getIdentifier()
public boolean isReadOnlyCacheEnabled()
public void setReadOnlyCacheEnabled(boolean readOnlyCacheEnabled)
public boolean isReadOnly()
public void checkReadOnly(String message)
message - the message used in case of read only mode violationCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.