public class SessionContext extends java.lang.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.DefaultDEFAULTpublic SessionContext(@NotNull
@NotNull Repository repository,
@NotNull
@NotNull org.apache.jackrabbit.oak.stats.StatisticManager statisticManager,
@NotNull
@NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider,
@NotNull
@NotNull org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard whiteboard,
@NotNull
@NotNull java.util.Map<java.lang.String,java.lang.Object> attributes,
@NotNull
@NotNull SessionDelegate delegate,
int observationQueueLength,
org.apache.jackrabbit.oak.plugins.observation.CommitRateLimiter commitRateLimiter)
public SessionContext(@NotNull
@NotNull Repository repository,
@NotNull
@NotNull org.apache.jackrabbit.oak.stats.StatisticManager statisticManager,
@NotNull
@NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider,
@NotNull
@NotNull org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard whiteboard,
@NotNull
@NotNull java.util.Map<java.lang.String,java.lang.Object> attributes,
@NotNull
@NotNull SessionDelegate delegate,
int observationQueueLength,
org.apache.jackrabbit.oak.plugins.observation.CommitRateLimiter commitRateLimiter,
org.apache.jackrabbit.oak.spi.mount.MountInfoProvider mountInfoProvider,
@Nullable
@Nullable org.apache.jackrabbit.oak.api.blob.BlobAccessProvider blobAccessProvider,
boolean fastQueryResultSize)
public final java.util.Map<java.lang.String,java.lang.Object> getAttributes()
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.@NotNull public @NotNull org.apache.jackrabbit.oak.stats.StatisticManager getStatisticManager()
@NotNull public @NotNull org.apache.jackrabbit.oak.stats.MeterStats getMeter(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
@NotNull public @NotNull org.apache.jackrabbit.oak.stats.TimerStats getTimer(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
@NotNull public @NotNull org.apache.jackrabbit.oak.stats.CounterStats getCount(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
@NotNull public @NotNull Repository getRepository()
@NotNull public @NotNull SessionDelegate getSessionDelegate()
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getSessionLocalMappings()
getSessionLocalMappings in interface org.apache.jackrabbit.oak.namepath.NameMapperpublic ValueFactory getValueFactory()
@NotNull public @NotNull AccessControlManager getAccessControlManager() throws RepositoryException
RepositoryException@NotNull public @NotNull org.apache.jackrabbit.api.security.principal.PrincipalManager getPrincipalManager()
@NotNull public @NotNull org.apache.jackrabbit.api.security.user.UserManager getUserManager()
@NotNull public @NotNull org.apache.jackrabbit.api.security.authorization.PrivilegeManager getPrivilegeManager()
@NotNull public @NotNull java.util.List<org.apache.jackrabbit.oak.spi.xml.ProtectedItemImporter> getProtectedItemImporters()
@NotNull public @NotNull ObservationManager getObservationManager() throws UnsupportedRepositoryOperationException
@NotNull public @NotNull org.apache.jackrabbit.oak.api.blob.BlobAccessProvider getBlobAccessProvider()
public boolean hasEventListeners()
public java.util.Set<java.lang.String> getOpenScopedLocks()
public java.util.Set<java.lang.String> getSessionScopedLocks()
public boolean getFastQueryResultSize()
@Nullable public @Nullable org.apache.jackrabbit.oak.spi.mount.MountInfoProvider getMountInfoProvider()
@NotNull
public @NotNull java.lang.String getOakName(@NotNull
@NotNull java.lang.String jcrName)
throws RepositoryException
getOakName in interface org.apache.jackrabbit.oak.namepath.NameMapperRepositoryException@Nullable
public @Nullable java.lang.String getOakNameOrNull(@NotNull
@NotNull java.lang.String jcrName)
getOakNameOrNull in interface org.apache.jackrabbit.oak.namepath.NameMapper@NotNull
public @NotNull java.lang.String getJcrName(@NotNull
@NotNull java.lang.String oakName)
getJcrName in interface org.apache.jackrabbit.oak.namepath.NameMapper@Nullable public @Nullable java.lang.String getOakPath(java.lang.String jcrPath)
getOakPath in interface org.apache.jackrabbit.oak.namepath.PathMapper@NotNull public @NotNull java.lang.String getJcrPath(java.lang.String oakPath)
getJcrPath in interface org.apache.jackrabbit.oak.namepath.PathMapper@NotNull
public @NotNull java.lang.String getOakPathOrThrow(java.lang.String jcrPath)
throws RepositoryException
RepositoryException if the path can not be mapped.jcrPath - JCR pathRepositoryException - if the path can not be mapped@NotNull
public @NotNull java.lang.String getOakPathOrThrowNotFound(java.lang.String jcrPath)
throws PathNotFoundException
PathNotFoundException if the path can not be mapped.jcrPath - JCR pathPathNotFoundException - if the path can not be mapped@NotNull public @NotNull AccessManager getAccessManager()
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider getSecurityProvider()
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.