Class LoginStack

java.lang.Object
org.nuxeo.ecm.automation.LoginStack

public class LoginStack extends Object
Author:
Bogdan Stefanescu
  • Field Details

  • Constructor Details

  • Method Details

    • setSession

      public void setSession(CoreSession session)
    • getSession

      public CoreSession getSession()
      Get the current session
    • push

      public void push(LoginContext lc)
    • peek

      public LoginStack.Entry peek()
    • pop

      public void pop()
      Remove the current login context from the stack.

      If no login context in in the stack nothing is done. If the login context has an associated CoreSession the session will be destroyed and the previous session is restored as the active session of the operation context.

    • clear

      protected void clear()
      Remove the stacked logins if any. This is called when chain execution is done.