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(javax.jcr.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) |
SessionContext(javax.jcr.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,
boolean fastQueryResultSize) |
public SessionContext(@Nonnull javax.jcr.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 SessionContext(@Nonnull javax.jcr.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, boolean fastQueryResultSize)
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 org.apache.jackrabbit.oak.stats.MeterStats getMeter(RepositoryStatistics.Type type)
@Nonnull public org.apache.jackrabbit.oak.stats.TimerStats getTimer(RepositoryStatistics.Type type)
@Nonnull public org.apache.jackrabbit.oak.stats.CounterStats getCount(RepositoryStatistics.Type type)
@Nonnull public javax.jcr.Repository getRepository()
@Nonnull public SessionDelegate getSessionDelegate()
@Nonnull public Map<String,String> getSessionLocalMappings()
getSessionLocalMappings in interface org.apache.jackrabbit.oak.namepath.NameMapperpublic javax.jcr.ValueFactory getValueFactory()
@Nonnull public javax.jcr.security.AccessControlManager getAccessControlManager() throws javax.jcr.RepositoryException
javax.jcr.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 javax.jcr.observation.ObservationManager getObservationManager() throws javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.UnsupportedRepositoryOperationExceptionpublic boolean hasEventListeners()
public boolean getFastQueryResultSize()
@Nonnull public String getOakName(@Nonnull String jcrName) throws javax.jcr.RepositoryException
getOakName in interface org.apache.jackrabbit.oak.namepath.NameMapperjavax.jcr.RepositoryException@CheckForNull public String getOakNameOrNull(@Nonnull String jcrName)
getOakNameOrNull in interface org.apache.jackrabbit.oak.namepath.NameMapper@Nonnull public 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@Nonnull public String getJcrPath(String oakPath)
getJcrPath in interface org.apache.jackrabbit.oak.namepath.PathMapper@Nonnull public String getOakPathOrThrow(String jcrPath) throws javax.jcr.RepositoryException
RepositoryException if the path can not be mapped.jcrPath - JCR pathjavax.jcr.RepositoryException - if the path can not be mapped@Nonnull public String getOakPathOrThrowNotFound(String jcrPath) throws javax.jcr.PathNotFoundException
PathNotFoundException if the path can not be mapped.jcrPath - JCR pathjavax.jcr.PathNotFoundException - if the path can not be mapped@Nonnull public AccessManager getAccessManager() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@Nonnull public org.apache.jackrabbit.oak.spi.security.SecurityProvider getSecurityProvider()
Copyright © 2012-2019 The Apache Software Foundation. All Rights Reserved.