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

    Modifier and Type
    Method
    Description
    decorate(Session session)
    Decorates the session and returns another decorated session.
    decorate(Session session, String userID)
    Decorates the session and returns another decorated session with the user ID used to acquire the session
  • Method Details

    • decorate

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

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