public class SessionContext extends Object implements org.apache.jackrabbit.oak.namepath.NamePathMapper
SessionImpl, NodeImpl, etc.) and provide access to
the session scoped instances generally needed (e.g. NamePathMapper,
ValueFactory, etc.).org.apache.jackrabbit.oak.namepath.NamePathMapper.DefaultDEFAULT| Constructor and Description |
|---|
SessionContext(Repository repository,
org.apache.jackrabbit.oak.stats.StatisticManager statisticManager,
org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider,
org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard whiteboard,
Map<String,Object> attributes,
SessionDelegate delegate,
int observationQueueLength,
org.apache.jackrabbit.oak.plugins.observation.CommitRateLimiter commitRateLimiter) |
public SessionContext(@Nonnull Repository repository, @Nonnull org.apache.jackrabbit.oak.stats.StatisticManager statisticManager, @Nonnull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider, @Nonnull org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard whiteboard, @Nonnull Map<String,Object> attributes, @Nonnull SessionDelegate delegate, int observationQueueLength, org.apache.jackrabbit.oak.plugins.observation.CommitRateLimiter commitRateLimiter)
public final SessionImpl getSession()
public final WorkspaceImpl getWorkspace()
protected SessionImpl createSession()
Session instance for this
context. Called by getSession() when first accessed. Can be
overridden by subclasses to customize the session implementation.protected WorkspaceImpl createWorkspace()
Workspace instance for this
context. Called by getWorkspace() when first accessed. Can be
overridden by subclasses to customize the workspace implementation.@Nonnull public org.apache.jackrabbit.oak.stats.StatisticManager getStatisticManager()
@Nonnull public AtomicLong getCounter(RepositoryStatistics.Type type)
@Nonnull public Repository getRepository()
@Nonnull public SessionDelegate getSessionDelegate()
@Nonnull public Map<String,String> getSessionLocalMappings()
getSessionLocalMappings in interface org.apache.jackrabbit.oak.namepath.NameMapperpublic ValueFactory getValueFactory()
@Nonnull public AccessControlManager getAccessControlManager() throws RepositoryException
RepositoryException@Nonnull public PrincipalManager getPrincipalManager()
@Nonnull public UserManager getUserManager()
@Nonnull public PrivilegeManager getPrivilegeManager()
@Nonnull public List<org.apache.jackrabbit.oak.spi.xml.ProtectedItemImporter> getProtectedItemImporters()
@Nonnull public ObservationManager getObservationManager() throws UnsupportedRepositoryOperationException
@Nonnull public String getOakName(String jcrName) throws RepositoryException
getOakName in interface org.apache.jackrabbit.oak.namepath.NameMapperRepositoryException@CheckForNull public String getOakNameOrNull(@Nonnull String jcrName)
getOakNameOrNull in interface org.apache.jackrabbit.oak.namepath.NameMapperpublic String getJcrName(@Nonnull String oakName)
getJcrName in interface org.apache.jackrabbit.oak.namepath.NameMapper@CheckForNull public String getOakPath(String jcrPath)
getOakPath in interface org.apache.jackrabbit.oak.namepath.PathMapper@CheckForNull public String getOakPathKeepIndex(String jcrPath)
getOakPathKeepIndex in interface org.apache.jackrabbit.oak.namepath.PathMapper@Nonnull public String getJcrPath(String oakPath)
getJcrPath in interface org.apache.jackrabbit.oak.namepath.PathMapper@Nonnull public String getOakPathOrThrow(String jcrPath) throws RepositoryException
RepositoryException if the path can not be mapped.jcrPath - JCR pathRepositoryException - if the path can not be mapped@Nonnull public String getOakPathOrThrowNotFound(String jcrPath) throws PathNotFoundException
PathNotFoundException if the path can not be mapped.jcrPath - JCR pathPathNotFoundException - if the path can not be mapped@Nonnull public AccessManager getAccessManager() throws RepositoryException
RepositoryException@Nonnull public org.apache.jackrabbit.oak.spi.security.SecurityProvider getSecurityProvider()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.