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, setForcedUserModeEnabledpublic ForcedUser(ClientApi api)
public ApiResponse isForcedUserModeEnabled() throws ClientApiException
ClientApiExceptionpublic ApiResponse getForcedUser(java.lang.String contextid) throws ClientApiException
ClientApiExceptionpublic ApiResponse setForcedUser(java.lang.String contextid, java.lang.String userid) throws ClientApiException
ClientApiExceptionpublic ApiResponse setForcedUserModeEnabled(boolean bool) throws ClientApiException
ClientApiException