public class ForcedUser
extends java.lang.Object
Constructor and Description |
---|
ForcedUser(ClientApi api) |
Modifier and Type | Method and Description |
---|---|
ApiResponse |
getForcedUser(java.lang.String contextid)
Gets the user (ID) set as 'forced user' for the given context (ID)
|
ApiResponse |
isForcedUserModeEnabled()
Returns 'true' if 'forced user' mode is enabled, 'false' otherwise
|
ApiResponse |
setForcedUser(java.lang.String apikey,
java.lang.String contextid,
java.lang.String userid)
Sets the user (ID) that should be used in 'forced user' mode for the given context (ID)
|
ApiResponse |
setForcedUserModeEnabled(java.lang.String apikey,
boolean bool)
Sets if 'forced user' mode should be enabled or not
|
public ForcedUser(ClientApi api)
public ApiResponse isForcedUserModeEnabled() throws ClientApiException
ClientApiException
public ApiResponse getForcedUser(java.lang.String contextid) throws ClientApiException
ClientApiException
public ApiResponse setForcedUser(java.lang.String apikey, java.lang.String contextid, java.lang.String userid) throws ClientApiException
ClientApiException
public ApiResponse setForcedUserModeEnabled(java.lang.String apikey, boolean bool) throws ClientApiException
ClientApiException