public static class BoxRequestsUser.UpdateUserInformation extends BoxRequestItem<E,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactory| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FIELD_IS_PASSWORD_RESET_REQUIRED |
mHintHeader, mId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
UpdateUserInformation(java.lang.String requestUrl,
BoxSession session,
java.lang.String login,
java.lang.String name)
Creates an update user information request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAddress()
Returns the address currently set for the user in the request.
|
boolean |
getCanSeeManagedUsers()
Returns whether or not the user can see other enterprise users in her contact list currently set in the request.
|
java.lang.String |
getEnterprise() |
boolean |
getIsExemptFromDeviceLimits()
Returns the value currently set in the request for whether to exempt the user from Enterprise device limits.
|
boolean |
getIsExemptFromLoginVerification()
Returns the value currently set in the request for whether to exempt the user from two-factor authentication.
|
java.lang.String |
getIsPasswordResetRequired()
Gets whether or not the user is required to reset password
|
boolean |
getIsSyncEnabled()
Returns whether Box Sync is enabled for the user or not.
|
java.lang.String |
getJobTitle()
Returns the job title currently set for the user.
|
java.lang.String |
getName()
Returns the name currently set for the user in the request.
|
java.lang.String |
getPhone()
Returns the phone number for the user currently set in the request.
|
BoxUser.Role |
getRole()
Returns the role currently set for the user in the request.
|
double |
getSpaceAmount()
Returns the amount of available space currently set for the user in the request.
|
BoxUser.Status |
getStatus()
Returns the status currently set for the user in the request.
|
java.lang.String |
getTimezone()
Returns the timezone currently set for the user in the request.
|
protected void |
parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry) |
R |
setAddress(java.lang.String address)
Sets the address of the user in the request.
|
R |
setCanSeeManagedUsers(boolean canSeeManagedUsers)
Sets whether or not the user can see other enterprise users in her contact list in the request.
|
BoxRequestsUser.UpdateUserInformation |
setEnterprise(java.lang.String enterprise)
Sets the enterprise the user belongs to.
|
R |
setIsExemptFromDeviceLimits(boolean isExemptFromDeviceLimits)
Sets whether to exempt the user from Enterprise device limits in the request.
|
R |
setIsExemptFromLoginVerification(boolean isExemptFromLoginVerification)
Sets whether the user is exempt from two-factor authentication in the request.
|
BoxRequestsUser.UpdateUserInformation |
setIsPasswordResetRequired(boolean isPasswordResetRequired)
Sets whether or not the user is required to reset password
|
R |
setIsSyncEnabled(boolean isSyncEnabled)
Sets whether or not Box Sync is enabled for the user.
|
R |
setJobTitle(java.lang.String jobTitle)
Sets the job title for the user in the request.
|
R |
setName(java.lang.String name)
Sets the new name for the user in the request.
|
R |
setPhone(java.lang.String phone)
Sets the phone number of the user in the request.
|
R |
setRole(BoxUser.Role role)
Sets the new role for the user.
|
R |
setSpaceAmount(double spaceAmount)
Sets the amount of space available for the user in the request.
|
R |
setStatus(BoxUser.Status status)
Sets the status for the user in the request.
|
R |
setTimezone(java.lang.String timezone)
Sets the timezone for the user in the request.
|
addRepresentationHintGroup, createHeaderMap, getId, onSendCompleted, setFieldsbuildUrl, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskprotected static final java.lang.String FIELD_IS_PASSWORD_RESET_REQUIRED
public UpdateUserInformation(java.lang.String requestUrl,
BoxSession session,
java.lang.String login,
java.lang.String name)
requestUrl - URL of the update user information endpointsession - the authenticated session that will be used to make the request withlogin - the login(email) of the username - the user namepublic java.lang.String getEnterprise()
public BoxRequestsUser.UpdateUserInformation setEnterprise(java.lang.String enterprise)
enterprise - the enterprise the user will be associated with.public java.lang.String getIsPasswordResetRequired()
public BoxRequestsUser.UpdateUserInformation setIsPasswordResetRequired(boolean isPasswordResetRequired)
isPasswordResetRequired - whether or not the user is required to reset passwordprotected void parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry)
parseHashMapEntry in class BoxRequest<BoxUser,BoxRequestsUser.UpdateUserInformation>public java.lang.String getName()
public R setName(java.lang.String name)
name - new name for the user.public BoxUser.Role getRole()
BoxUser.Role for the user, or null if not set.public R setRole(BoxUser.Role role)
role - new role for the user.public boolean getIsSyncEnabled()
public R setIsSyncEnabled(boolean isSyncEnabled)
isSyncEnabled - whether or not Box Sync is enabled for the user.public java.lang.String getJobTitle()
public R setJobTitle(java.lang.String jobTitle)
jobTitle - new job title for the user.public java.lang.String getPhone()
public R setPhone(java.lang.String phone)
phone - new phone number for the user.public java.lang.String getAddress()
public R setAddress(java.lang.String address)
address - new address for the user.public double getSpaceAmount()
public R setSpaceAmount(double spaceAmount)
spaceAmount - new amount of space available for the user in bytes.public boolean getCanSeeManagedUsers()
public R setCanSeeManagedUsers(boolean canSeeManagedUsers)
canSeeManagedUsers - whether or not the user can see other enterprise users in her contact list.public BoxUser.Status getStatus()
BoxUser.Status currently set for the user, or null if not set.public R setStatus(BoxUser.Status status)
status - new BoxUser.Status for the user.public java.lang.String getTimezone()
public R setTimezone(java.lang.String timezone)
timezone - new timezone for the user.public boolean getIsExemptFromDeviceLimits()
public R setIsExemptFromDeviceLimits(boolean isExemptFromDeviceLimits)
isExemptFromDeviceLimits - new value for whether the user is exempt from Enterprise device limits.public boolean getIsExemptFromLoginVerification()
public R setIsExemptFromLoginVerification(boolean isExemptFromLoginVerification)
isExemptFromLoginVerification - new value for whether the user is exempt from two-factor authentication.