public class BoxUserRequestObject extends BoxDefaultRequestObject
Modifier and Type | Method and Description |
---|---|
static BoxUserRequestObject |
addEmailAliasRequestObject(java.lang.String email)
Request object to add an email alias.
|
static BoxUserRequestObject |
createEnterpriseUserRequestObject(java.lang.String login,
java.lang.String name)
Request object to create an enterprise user.
|
static BoxUserRequestObject |
moveFolderToAnotherUserRequestObject(java.lang.String destinationUserId,
boolean notify)
Request object to move a folder to another user.
|
BoxUserRequestObject |
setAddress(java.lang.String address) |
BoxUserRequestObject |
setCanSeeManagedUsers(boolean canSeeManagedUsers) |
BoxUserRequestObject |
setDestinationUser(java.lang.String destinationUserId)
Set destination user, this is only used in request to move a folder to another user's account.
|
BoxUserRequestObject |
setEmailAlias(java.lang.String email)
Set email alias.
|
BoxUserRequestObject |
setEnterprise(BoxEnterprise enterprise) |
BoxUserRequestObject |
setExemptFromDeviceLimits(boolean exemptFromDeviceLimits) |
BoxUserRequestObject |
setExemptFromLoginVerification(boolean exemptFromLoginVerification) |
BoxUserRequestObject |
setJobTitle(java.lang.String jobTitle) |
BoxUserRequestObject |
setLanguage(java.lang.String language) |
BoxUserRequestObject |
setLogin(java.lang.String login)
Set Login(email) of the user.
|
BoxUserRequestObject |
setName(java.lang.String name) |
BoxUserRequestObject |
setNotifyUser(boolean notify)
Set whether the user should receive an email notification.
|
BoxUserRequestObject |
setPhone(java.lang.String phone) |
BoxUserRequestObject |
setRole(java.lang.String role)
Set The the user's enterprise role.
|
BoxUserRequestObject |
setSpaceAmount(double spaceAmount) |
BoxUserRequestObject |
setStatus(java.lang.String status) |
BoxUserRequestObject |
setSyncEnabled(boolean isSyncEnabled) |
BoxUserRequestObject |
setTrackingCodes(java.util.LinkedHashMap<java.lang.String,java.lang.String> trackingCodes) |
static BoxUserRequestObject |
updateUserInfoRequestObject(boolean notify)
Request object to update an enterprise user.
|
static BoxUserRequestObject |
updateUserPrimaryLoginRequestObject(java.lang.String login)
Request object to update user's primary login.
|
addField, addFields, addHeader, addQueryParam, get, getEntity, getFields, getHeaders, getJSONEntity, getJSONParser, getQueryParams, put, put, setJSONParser, setPage
public BoxUserRequestObject setName(java.lang.String name)
public static BoxUserRequestObject createEnterpriseUserRequestObject(java.lang.String login, java.lang.String name)
login
- Login(email) of the user.name
- name of the userpublic static BoxUserRequestObject updateUserInfoRequestObject(boolean notify)
whether
- to notify user if user is rolled out of enterprisepublic static BoxUserRequestObject updateUserPrimaryLoginRequestObject(java.lang.String login)
login
- public static BoxUserRequestObject addEmailAliasRequestObject(java.lang.String email)
email
- public static BoxUserRequestObject moveFolderToAnotherUserRequestObject(java.lang.String destinationUserId, boolean notify)
destinationFolderId
- the ID of the user who the folder will be transferred tonotify
- whether destination user should receive email notification of the transferpublic BoxUserRequestObject setLogin(java.lang.String login)
login
- loginpublic BoxUserRequestObject setEmailAlias(java.lang.String email)
email
- public BoxUserRequestObject setDestinationUser(java.lang.String destinationUserId)
destinationFolderId
- the ID of the user who the folder will be transferred topublic BoxUserRequestObject setRole(java.lang.String role)
BoxUser.ROLE_ADMIN
, BoxUser.ROLE_COADMIN
or BoxUser.ROLE_USER
.role
- public BoxUserRequestObject setLanguage(java.lang.String language)
language
- the language to setpublic BoxUserRequestObject setSyncEnabled(boolean isSyncEnabled)
isSyncEnabled
- the isSyncEnabled to setpublic BoxUserRequestObject setJobTitle(java.lang.String jobTitle)
jobTitle
- the jobTitle to setpublic BoxUserRequestObject setPhone(java.lang.String phone)
phone
- the phone to setpublic BoxUserRequestObject setAddress(java.lang.String address)
address
- the address to setpublic BoxUserRequestObject setSpaceAmount(double spaceAmount)
spaceAmount
- the spaceAmount to setpublic BoxUserRequestObject setTrackingCodes(java.util.LinkedHashMap<java.lang.String,java.lang.String> trackingCodes)
trackingCodes
- the trackingCodes to setpublic BoxUserRequestObject setCanSeeManagedUsers(boolean canSeeManagedUsers)
canSeeManagedUsers
- the canSeeManagedUsers to setpublic BoxUserRequestObject setStatus(java.lang.String status)
status
- the status to set. Status of the user. This String can be BoxUser.STATUS_ACTIVE
or
BoxUser.STATUS_INACTIVE
public BoxUserRequestObject setExemptFromDeviceLimits(boolean exemptFromDeviceLimits)
exemptFromDeviceLimits
- the exemptFromDeviceLimits to setpublic BoxUserRequestObject setExemptFromLoginVerification(boolean exemptFromLoginVerification)
exemptFromLoginVerification
- the exemptFromLoginVerification to setpublic BoxUserRequestObject setEnterprise(BoxEnterprise enterprise)
enterprise
- the enterprise to set. Note when updating user information you can set this to null in order to roll the user out from enterprise.public BoxUserRequestObject setNotifyUser(boolean notify)
notify
-