Package org.nuxeo.ecm.automation
Class LoginStack
java.lang.Object
org.nuxeo.ecm.automation.LoginStack
- Author:
- Bogdan Stefanescu
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected CoreSession
protected CoreSession
protected List<LoginStack.Entry>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clear()
Remove the stacked logins if any.Get the current sessionpeek()
void
pop()
Remove the current login context from the stack.void
push
(LoginContext lc) void
setSession
(CoreSession session)
-
Field Details
-
stack
-
originalSession
-
currentSession
-
-
Constructor Details
-
LoginStack
-
-
Method Details
-
setSession
-
getSession
Get the current session -
push
-
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.
-