Package ch.tocco.nice2.netui.impl.remote
Class RemoteContextImpl
java.lang.Object
ch.tocco.nice2.netui.impl.remote.RemoteContextImpl
- All Implemented Interfaces:
- RemoteContext
- 
Nested Class SummaryNested classes/interfaces inherited from interface ch.tocco.nice2.netui.api.remote.RemoteContextRemoteContext.Current
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRemoteContextImpl(@Nullable String httpSessionId, @Nullable String userName) 
- 
Method SummaryModifier and TypeMethodDescriptionboolean@Nullable String@Nullable String@Nullable StringvoidCall action in all sessions.voidwithCurrentBrowser(String actionName, @Nullable Object... params) Call action only in current browser (not in all sessions of the current user).voidwithCurrentUser(String actionName, @Nullable Object... params) Call action in all sessions of the current user.voidwithScriptSession(String scriptSessionId, String actionName, @Nullable Object... params) Call action in script session with the given id.voidCall action in all sessions of the given user.
- 
Field Details- 
ATTRIBUTE_USER_NAME- See Also:
 
 
- 
- 
Constructor Details- 
RemoteContextImpl
 
- 
- 
Method Details- 
getHttpSessionId- Specified by:
- getHttpSessionIdin interface- RemoteContext
 
- 
getUserName- Specified by:
- getUserNamein interface- RemoteContext
 
- 
getScriptSessionId- Specified by:
- getScriptSessionIdin interface- RemoteContext
 
- 
currentThreadIsWebThreadpublic boolean currentThreadIsWebThread()- Specified by:
- currentThreadIsWebThreadin interface- RemoteContext
 
- 
withCurrentBrowserDescription copied from interface:RemoteContextCall action only in current browser (not in all sessions of the current user).Note: This method is not available in Non-Web threads. - Specified by:
- withCurrentBrowserin interface- RemoteContext
- Parameters:
- actionName- The action in the client to call.
- params- Params to pass to the action.
 
- 
withCurrentUserDescription copied from interface:RemoteContextCall action in all sessions of the current user.Note: This method is not available if the user name is null. - Specified by:
- withCurrentUserin interface- RemoteContext
- Parameters:
- actionName- The action in the client to call.
- params- Params to pass to the action.
 
- 
withUserDescription copied from interface:RemoteContextCall action in all sessions of the given user.- Specified by:
- withUserin interface- RemoteContext
- Parameters:
- userName- The user to call.
- actionName- The action in the client to call.
- params- Params to pass to the action.
 
- 
withScriptSessionpublic void withScriptSession(String scriptSessionId, String actionName, @Nullable @Nullable Object... params) Description copied from interface:RemoteContextCall action in script session with the given id.- Specified by:
- withScriptSessionin interface- RemoteContext
- Parameters:
- scriptSessionId- The id of the script session to call.
- actionName- The action in the client to call.
- params- Params to pass to the action.
 
- 
withAllDescription copied from interface:RemoteContextCall action in all sessions.- Specified by:
- withAllin interface- RemoteContext
- Parameters:
- actionName- The action in the client to call.
- params- Params to pass to the action.
 
 
-