public class ForcedUser extends ForcedUserDeprecated
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 contextid,
java.lang.String userid)
Sets the user (ID) that should be used in 'forced user' mode for the given context (ID)
|
ApiResponse |
setForcedUserModeEnabled(boolean bool)
Sets if 'forced user' mode should be enabled or not
|
setForcedUser, setForcedUserModeEnabled
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 contextid, java.lang.String userid) throws ClientApiException
ClientApiException
public ApiResponse setForcedUserModeEnabled(boolean bool) throws ClientApiException
ClientApiException