public class JahiaSystemSession
extends org.apache.jackrabbit.core.SessionImpl
attributes, AUTO_FIX_CORRUPTIONS, context, DISABLE_CLUSTER_SYNC_ON_REFRESH, listeners, loginContext, namePathResolver, repositoryContext, subject, userId, versionMgrACTION_ADD_PROPERTY, ACTION_LOCKING, ACTION_MODIFY_ACCESS_CONTROL, ACTION_MODIFY_PROPERTY, ACTION_NODE_TYPE_MANAGEMENT, ACTION_READ_ACCESS_CONTROL, ACTION_REMOVE_NODE, ACTION_REMOVE_PROPERTY, ACTION_USER_MANAGEMENT, ACTION_VERSIONING| Constructor and Description |
|---|
JahiaSystemSession(org.apache.jackrabbit.core.RepositoryContext repositoryContext,
Subject subject,
org.apache.jackrabbit.core.config.WorkspaceConfig wspConfig)
private constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.jackrabbit.core.security.AccessManager |
createAccessManager(Subject subject)
Overridden in order to create custom access manager
|
javax.jcr.Item |
getItem(org.apache.jackrabbit.spi.Path absPath)
Returns the node at the specified absolute path in the workspace.
|
boolean |
itemExists(org.apache.jackrabbit.spi.Path absPath)
Returns
true if an item exists at absPath and
this Session has read access to it; otherwise returns
false. |
protected String |
retrieveUserId(Subject subject,
String workspaceName)
Always returns the name of the
SystemPrincipal. |
addListener, addLockToken, autoFixCorruptions, checkFormat, checkPermission, clusterSyncOnRefresh, createDataStoreGarbageCollector, createItemManager, createObservationManager, createSession, createSessionItemStateManager, createVersionManager, getAccessControlManager, getAccessManager, getAttribute, getAttributeNames, getHierarchyManager, getImportContentHandler, getInternalVersionManager, getItem, getItemManager, getItemOrNull, getJCRName, getJCRPath, getLocks, getLockTokens, getNode, getNodeById, getNodeByIdentifier, getNodeByUUID, getNodeOrNull, getNodeTypeInstanceHandler, getNodeTypeManager, getPath, getPrefix, getPrincipalManager, getProperty, getPropertyOrNull, getQName, getQPath, getQPath, getRepository, getRetentionManager, getRetentionRegistry, getRootNode, getSubject, getURI, getUserID, getUserManager, getValueFactory, getWorkspace, hasCapability, hasPendingChanges, hasPermission, hasPermission, impersonate, isAdmin, isLive, isSystem, itemExists, logout, move, nodeExists, notifyLoggedOut, notifyLoggingOut, propertyExists, refresh, removeItem, removeListener, removeLockToken, save, setAttribute, setNamespacePrefix, toStringexportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, importXMLpublic JahiaSystemSession(org.apache.jackrabbit.core.RepositoryContext repositoryContext,
Subject subject,
org.apache.jackrabbit.core.config.WorkspaceConfig wspConfig)
throws javax.jcr.RepositoryException
repositoryContext - wspConfig - javax.jcr.RepositoryExceptionprotected final String retrieveUserId(Subject subject, String workspaceName) throws javax.jcr.RepositoryException
SystemPrincipal.retrieveUserId in class org.apache.jackrabbit.core.SessionImplSystemPrincipal.javax.jcr.RepositoryExceptionprotected org.apache.jackrabbit.core.security.AccessManager createAccessManager(Subject subject) throws javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
createAccessManager in class org.apache.jackrabbit.core.SessionImpljavax.jcr.AccessDeniedException - is never thrownjavax.jcr.RepositoryException - is never thrownpublic boolean itemExists(org.apache.jackrabbit.spi.Path absPath)
throws javax.jcr.RepositoryException
true if an item exists at absPath and
this Session has read access to it; otherwise returns
false.
Shortcut to standard itemExists method when a Path object is already availableabsPath - An absolute path.booleanjavax.jcr.RepositoryException - if absPath is not a well-formed
absolute path.public javax.jcr.Item getItem(org.apache.jackrabbit.spi.Path absPath)
throws javax.jcr.RepositoryException
This method should only be used if the application does not know whether
the item at the indicated path is property or node. In cases where the
application has this information, either SessionImpl.getNode(java.lang.String) or SessionImpl.getProperty(java.lang.String) should be used, as appropriate. In many repository
implementations the node and property-specific methods are likely to be
more efficient than getItem.
Shortcut to standard getItem method when a Path object is already available
absPath - An absolute path.Item.javax.jcr.PathNotFoundException - if no accessible item is found at the
specified path.javax.jcr.RepositoryException - if another error occurs.Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.