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.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 Map<String,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 Map<String,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 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 Map<String,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 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 boolean getFastQueryResultSize()
@Nullable public @Nullable org.apache.jackrabbit.oak.spi.mount.MountInfoProvider getMountInfoProvider()
@NotNull public @NotNull String getOakName(@NotNull @NotNull String jcrName) throws RepositoryException
getOakName in interface org.apache.jackrabbit.oak.namepath.NameMapperRepositoryException@Nullable public @Nullable String getOakNameOrNull(@NotNull @NotNull String jcrName)
getOakNameOrNull in interface org.apache.jackrabbit.oak.namepath.NameMapper@NotNull public @NotNull String getJcrName(@NotNull @NotNull String oakName)
getJcrName in interface org.apache.jackrabbit.oak.namepath.NameMapper@Nullable public @Nullable String getOakPath(String jcrPath)
getOakPath in interface org.apache.jackrabbit.oak.namepath.PathMapper@NotNull public @NotNull String getJcrPath(String oakPath)
getJcrPath in interface org.apache.jackrabbit.oak.namepath.PathMapper@NotNull public @NotNull String getOakPathOrThrow(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 String getOakPathOrThrowNotFound(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–2020 The Apache Software Foundation. All rights reserved.