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 SummaryNested Classes Modifier and Type Class Description static classLoginStack.Entry
 - 
Field SummaryFields Modifier and Type Field Description protected CoreSessioncurrentSessionprotected CoreSessionoriginalSessionprotected List<LoginStack.Entry>stack
 - 
Constructor SummaryConstructors Constructor Description LoginStack(CoreSession session)
 - 
Method SummaryAll 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- 
stackprotected List<LoginStack.Entry> stack 
 - 
originalSessionprotected CoreSession originalSession 
 - 
currentSessionprotected CoreSession currentSession 
 
- 
 - 
Constructor Detail- 
LoginStackpublic LoginStack(CoreSession session) 
 
- 
 - 
Method Detail- 
setSessionpublic void setSession(CoreSession session) 
 - 
getSessionpublic CoreSession getSession() Get the current session
 - 
pushpublic void push(LoginContext lc) 
 - 
peekpublic LoginStack.Entry peek() 
 - 
poppublic 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. 
 - 
clearprotected void clear() Remove the stacked logins if any. This is called when chain execution is done.
 
- 
 
-