Class AmetysSession

All Implemented Interfaces:
javax.jcr.Session, XAResource, JackrabbitSession, XASession, IdentifierResolver, NamePathResolver, NameResolver, PathResolver, NamespaceResolver, SessionExtensions

public class AmetysSession extends XASessionImpl
Implementation of a JCR Session that is poolable.
The logout method actually bring the Session back into the pool.
  • Constructor Details

    • AmetysSession

      protected AmetysSession(RepositoryContext repositoryCtx, AuthContext loginCtx, WorkspaceConfig wspConfig) throws javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
      Create a new Session.
      Parameters:
      repositoryCtx - repository context
      loginCtx - login context containing authenticated subject
      wspConfig - workspace configuration
      Throws:
      javax.jcr.AccessDeniedException - if the given subject is not granted access to the specified workspace
      javax.jcr.RepositoryException - if another error occurs
    • AmetysSession

      public AmetysSession(RepositoryContext repositoryCtx, Subject sub, WorkspaceConfig wspConfig) throws javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
      Create a new Session.
      Parameters:
      repositoryCtx - repository context
      sub - authenticated subject
      wspConfig - workspace configuration
      Throws:
      javax.jcr.AccessDeniedException - if the given subject is not granted access to the specified workspace
      javax.jcr.RepositoryException - if another error occurs
  • Method Details

    • logout

      public void logout()
      Specified by:
      logout in interface javax.jcr.Session
      Overrides:
      logout in class XASessionImpl
    • forceLogout

      public void forceLogout()
      Logout this Session without calling the LogoutManager.