public class LoginStack extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LoginStack.Entry |
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
currentSession |
protected CoreSession |
originalSession |
protected List<LoginStack.Entry> |
stack |
Constructor and Description |
---|
LoginStack(CoreSession session) |
Modifier and Type | Method and Description |
---|---|
protected void |
clear()
Remove the stacked logins if any.
|
CoreSession |
getSession()
Get the current session
|
LoginStack.Entry |
peek() |
void |
pop()
Remove the current login context from the stack.
|
void |
push(LoginContext lc) |
protected void |
refreshSession(CoreSession session) |
void |
setSession(CoreSession session) |
protected List<LoginStack.Entry> stack
protected CoreSession originalSession
protected CoreSession currentSession
public LoginStack(CoreSession session)
public void setSession(CoreSession session)
public CoreSession getSession()
public void push(LoginContext lc)
public LoginStack.Entry peek()
public void pop() throws OperationException
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.
OperationException
protected void refreshSession(CoreSession session) throws OperationException
OperationException
protected void clear() throws OperationException
OperationException
Copyright © 2016 Nuxeo SA. All rights reserved.