Package org.nuxeo.ecm.automation
Class LoginStack
- java.lang.Object
-
- org.nuxeo.ecm.automation.LoginStack
-
public class LoginStack extends Object
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoginStack.Entry
-
Field Summary
Fields Modifier and Type Field Description protected CoreSessioncurrentSessionprotected CoreSessionoriginalSessionprotected List<LoginStack.Entry>stack
-
Constructor Summary
Constructors Constructor Description LoginStack(CoreSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear()Remove the stacked logins if any.CoreSessiongetSession()Get the current sessionLoginStack.Entrypeek()voidpop()Remove the current login context from the stack.voidpush(LoginContext lc)voidsetSession(CoreSession session)
-
-
-
Field Detail
-
stack
protected List<LoginStack.Entry> stack
-
originalSession
protected CoreSession originalSession
-
currentSession
protected CoreSession currentSession
-
-
Constructor Detail
-
LoginStack
public LoginStack(CoreSession session)
-
-
Method Detail
-
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.
-
-