U
- as User
E
- as ENVIRONEMNT like Session or System related environmentC
- as Application/user defined context - Implied Object as generic signature getting too longpublic class ContextualWebUserShell<U extends User,E> extends WebUserShell<U,E>
UserShell.getEnvironment()
which is System/Environment related.Constructor and Description |
---|
ContextualWebUserShell() |
ContextualWebUserShell(E environment) |
ContextualWebUserShell(E environment,
Shell<E> parent) |
ContextualWebUserShell(Shell<E> parent) |
Modifier and Type | Method and Description |
---|---|
<C> C |
getContext()
Additional context that maybe provided by the user in the Session.
Note: CONTEXTS can be processed further, in the default design this is intended to be the raw CONTEXT set directly by the client Difference between UserShell.setEnvironment(Object) nad setContext(Object) is that context is set by user, while environment is set by the system and should be immutable. |
<C> void |
setContext(C context)
Additional context that maybe provided by the user in the Session.
Note: CONTEXTS can be processed further, in the default design this is intended to be the raw CONTEXT set directly by the client Difference between UserShell.setEnvironment(Object) nad setContext(Object) is that context is set by user, while environment is set by the system and should be immutable. |
void |
setPartialContext(Object context)
The context object may have multiple properties.
|
deriveUserId, extend, get, getAuthToken, getEnvironment, getParent, getUser, parent, setAuthToken, setEnvironment, setParent, setUser
public ContextualWebUserShell()
public ContextualWebUserShell(E environment)
public <C> C getContext()
UserShell.setEnvironment(Object)
nad setContext(Object)
is that context is set by user, while environment is set by the system and should be immutable.
PersistenceConfiguration.Strategy
's use context for more advanced and custom scenariospublic <C> void setContext(C context)
UserShell.setEnvironment(Object)
nad setContext(Object)
is that context is set by user, while environment is set by the system and should be immutable.
PersistenceConfiguration.Strategy
's use context for more advanced and custom scenariospublic void setPartialContext(Object context)
setContext(Object)
overrides all existing data in it
this method can be used to allow partial updation of data. In cases where the context is a Collection, Map, JSON etc.
UserShell.setEnvironment(Object)
nad setContext(Object)
is that context is set by user, while environment is set by the system and should be immutable.
setContext(Object)
context
- as ObjectCopyright © 2018. All rights reserved.