Interface SessionDecorator


  • public interface SessionDecorator
    Session decorator interface. javax.jcr.Session instances can be decorated for some reasons. For example, sessions in a session pool can be decorated to override logout() method to change the default action by returning itself to the pool. Or, in some cases, a session can be decorated to disallow writing actions to make it read-only.
    Version:
    $Id$
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.jcr.Session decorate​(javax.jcr.Session session)
      Decorates the session and returns another decorated session.
      javax.jcr.Session decorate​(javax.jcr.Session session, String userID)
      Decorates the session and returns another decorated session with the user ID used to acquire the session
    • Method Detail

      • decorate

        javax.jcr.Session decorate​(javax.jcr.Session session)
        Decorates the session and returns another decorated session.
        Parameters:
        session -
      • decorate

        javax.jcr.Session decorate​(javax.jcr.Session session,
                                   String userID)
        Decorates the session and returns another decorated session with the user ID used to acquire the session
        Parameters:
        session -
        userID -