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 class
LoginStack.Entry
-
Field Summary
Fields Modifier and Type Field Description protected CoreSession
currentSession
protected CoreSession
originalSession
protected 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 void
clear()
Remove the stacked logins if any.CoreSession
getSession()
Get the current sessionLoginStack.Entry
peek()
void
pop()
Remove the current login context from the stack.void
push(LoginContext lc)
void
setSession(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.
-
-