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