U - as UserE - as Environment type the Shell holds. See getEnvironment()public class UserShell<U extends User,E> extends Object implements Shell<E>, Serializable
UserShell
| Constructor and Description |
|---|
UserShell() |
UserShell(E environment) |
UserShell(E environment,
Shell<E> parent) |
UserShell(Shell<E> parent) |
| Modifier and Type | Method and Description |
|---|---|
String |
deriveUserId()
Override to derive custom
User field for id. |
<ES extends Shell<E>> |
extend(Class<ES> extensionType,
E e)
Extend current shell, and return a new Shell with the current as its inner-shell (or
Shell.parent() |
Shell<E> |
get(Class e)
input type matches env or shell type [if environment type is not available], or is super of first sub-type that matches
Fetch a particular inner Shell based on environment type it uses |
AuthenticationToken |
getAuthToken()
Any
AuthenticationToken granted; |
E |
getEnvironment()
Returns the system set context, instance or environment for the current Shell
|
Shell<E> |
getParent() |
U |
getUser() |
Shell<E> |
parent()
Access to a parent (wrapped shell), unless there is no parent (null)
|
void |
setAuthToken(AuthenticationToken authToken) |
void |
setEnvironment(E environment)
Deprecated.
See Constructor
|
void |
setParent(Shell<E> parent) |
void |
setUser(U user) |
public UserShell()
public UserShell(E environment)
environment - setEnvironment(Object)public UserShell(E environment, Shell<E> parent)
environment - parent - setEnvironment(Object)public String deriveUserId()
User field for id. The user object is guaranteed to be not null by #getUserId()public E getEnvironment()
getEnvironment in interface Shell<E>public Shell<E> parent() throws AuthorizationException
parent in interface Shell<E>AuthorizationExceptionpublic Shell<E> get(Class e) throws AuthorizationException
get in interface Shell<E>e - as Class of Shell type or Environment looking for. (implementation dependent)ShellAuthorizationExceptionpublic <ES extends Shell<E>> ES extend(Class<ES> extensionType, E e)
Shell.parent()public AuthenticationToken getAuthToken()
AuthenticationToken granted;public void setAuthToken(AuthenticationToken authToken)
public U getUser()
public void setUser(U user)
@Deprecated public void setEnvironment(E environment)
setEnvironment in interface Shell<E>Copyright © 2018. All rights reserved.