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.Default
DEFAULT
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) |
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,
org.apache.jackrabbit.oak.spi.mount.MountInfoProvider mountInfoProvider,
boolean fastQueryResultSize) |
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 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, org.apache.jackrabbit.oak.spi.mount.MountInfoProvider mountInfoProvider, 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 Repository getRepository()
@Nonnull public SessionDelegate getSessionDelegate()
@Nonnull public Map<String,String> getSessionLocalMappings()
getSessionLocalMappings
in interface org.apache.jackrabbit.oak.namepath.NameMapper
public 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
public boolean hasEventListeners()
public boolean getFastQueryResultSize()
@Nullable public org.apache.jackrabbit.oak.spi.mount.MountInfoProvider getMountInfoProvider()
@Nonnull public String getOakName(@Nonnull String jcrName) throws RepositoryException
getOakName
in interface org.apache.jackrabbit.oak.namepath.NameMapper
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 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–2018 The Apache Software Foundation. All rights reserved.