Package ch.tocco.nice2.netui.impl.remote
Class NullRemoteContext
java.lang.Object
ch.tocco.nice2.netui.impl.remote.NullRemoteContext
- All Implemented Interfaces:
RemoteContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.netui.api.remote.RemoteContext
RemoteContext.Current -
Constructor Summary
Constructors -
Method Summary
Modifier 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.
-
Constructor Details
-
NullRemoteContext
public NullRemoteContext()
-
-
Method Details
-
getHttpSessionId
- Specified by:
getHttpSessionIdin interfaceRemoteContext
-
getUserName
- Specified by:
getUserNamein interfaceRemoteContext
-
getScriptSessionId
- Specified by:
getScriptSessionIdin interfaceRemoteContext
-
currentThreadIsWebThread
public boolean currentThreadIsWebThread()- Specified by:
currentThreadIsWebThreadin interfaceRemoteContext
-
withCurrentBrowser
Description 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 interfaceRemoteContext- Parameters:
actionName- The action in the client to call.params- Params to pass to the action.
-
withCurrentUser
Description 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 interfaceRemoteContext- Parameters:
actionName- The action in the client to call.params- Params to pass to the action.
-
withUser
Description copied from interface:RemoteContextCall action in all sessions of the given user.- Specified by:
withUserin interfaceRemoteContext- Parameters:
userName- The user to call.actionName- The action in the client to call.params- Params to pass to the action.
-
withScriptSession
public 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 interfaceRemoteContext- 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.
-
withAll
Description copied from interface:RemoteContextCall action in all sessions.- Specified by:
withAllin interfaceRemoteContext- Parameters:
actionName- The action in the client to call.params- Params to pass to the action.
-