public class BoxUser.Info extends BoxCollaborator.Info
Constructor and Description |
---|
Info()
Constructs an empty Info object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
void |
appendTrackingCodes(String name,
String value)
Allows the admin to append new tracking codes to the previous existing list.
|
String |
getAddress()
Gets the address of the user.
|
String |
getAvatarURL()
Gets the URL of the user's avatar.
|
boolean |
getCanSeeManagedUsers()
Gets whether or not the user can see other enterprise users in their contact list.
|
BoxEnterprise |
getEnterprise()
Gets the enterprise that the user belongs to.
|
String |
getExternalAppUserId()
Gets the external app user id that has been set for the app user.
|
String |
getHostname()
Gets the root (protocol, subdomain, domain) of any links that need to be generated for this user.
|
boolean |
getIsExemptFromDeviceLimits()
Gets whether or not the user is exempt from enterprise device limits.
|
boolean |
getIsExemptFromLoginVerification()
Gets whether or not the user must use two-factor authentication.
|
boolean |
getIsExternalCollabRestricted()
Gets whether this user is allowed or not to collaborate with users outside their enterprise.
|
boolean |
getIsPasswordResetRequired()
Gets whether or not the user is required to reset password.
|
boolean |
getIsPlatformAccessOnly()
Gets whether or not the user we are creating is an app user with Box Developer Edition.
|
boolean |
getIsSyncEnabled()
Gets whether or not the user can use Box Sync.
|
String |
getJobTitle()
Gets the job title of the user.
|
String |
getLanguage()
Gets the language of the user.
|
String |
getLogin()
Gets the email address the user uses to login.
|
long |
getMaxUploadSize()
Gets the maximum individual file size in bytes the user can have.
|
List<String> |
getMyTags()
Gets the tags for all files and folders owned by this user.
|
BoxNotificationEmail |
getNotificationEmail()
Gets the user's alternate notification email address to which email notifications are sent.
|
String |
getPhone()
Gets the phone number of the user.
|
BoxUser |
getResource()
Gets the resource associated with this Info.
|
BoxUser.Role |
getRole()
Gets the user's enterprise role.
|
long |
getSpaceAmount()
Gets the user's total available space in bytes.
|
long |
getSpaceUsed()
Gets the amount of space the user has used in bytes.
|
BoxUser.Status |
getStatus()
Gets the user's current account status.
|
String |
getTimezone()
Gets the timezone of the user.
|
Map<String,String> |
getTrackingCodes()
Gets the tracking defined for each entity.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
removeEnterprise()
Removes the user from their enterprise and converts them to a standalone free user.
|
void |
setAddress(String address)
Sets the address of the user.
|
void |
setCanSeeManagedUsers(boolean canSeeManagedUsers)
Sets whether or not the user can see other enterprise users in their contact list.
|
void |
setExternalAppUserId(String externalAppUserId)
Sets the external app user id.
|
void |
setIsExemptFromDeviceLimits(boolean isExemptFromDeviceLimits)
Sets whether or not the user is exempt from enterprise device limits.
|
void |
setIsExemptFromLoginVerification(boolean isExemptFromLoginVerification)
Sets whether or not the user must use two-factor authentication.
|
void |
setIsExternalCollabRestricted(boolean isExternalCollabRestricted)
Sets whether this user is allowed or not to collaborate with users outside their enterprise.
|
void |
setIsPasswordResetRequired(boolean isPasswordResetRequired)
Sets whether or not the user is required to reset password.
|
void |
setIsSyncEnabled(boolean enabled)
Sets whether or not the user can use Box Sync.
|
void |
setJobTitle(String jobTitle)
Sets the job title of the user.
|
void |
setLanguage(String language)
Sets the language of the user.
|
void |
setLogin(String login)
Sets the email address the user uses to login.
|
void |
setNotificationEmail(BoxNotificationEmail notificationEmail)
Sets the user's notification email address.
|
void |
setPhone(String phone)
Sets the phone number of the user.
|
void |
setRole(BoxUser.Role role)
Sets the user's role in their enterprise.
|
void |
setSpaceAmount(long spaceAmount)
Sets the user's total available space in bytes.
|
void |
setStatus(BoxUser.Status status)
Sets the user's current account status.
|
void |
setTimezone(String timezone)
Sets the timezone of the user.
|
void |
setTrackingCodes(Map<String,String> trackingCodes)
Allows admin to set attributes specific for a group of users.
|
getCreatedAt, getGroupType, getModifiedAt, getName, getType, setName
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public BoxUser getResource()
BoxResource.Info
getResource
in class BoxResource.Info
public String getLogin()
getLogin
in class BoxCollaborator.Info
public void setLogin(String login)
login
- one of the user's confirmed email aliases.public BoxUser.Role getRole()
public void setRole(BoxUser.Role role)
role
- the user's new role in their enterprise.public String getLanguage()
public void setLanguage(String language)
language
- the new language of the user.public String getTimezone()
public void setTimezone(String timezone)
timezone
- the new timezone of the user.public long getSpaceAmount()
public void setSpaceAmount(long spaceAmount)
spaceAmount
- the new amount of space available to the user in bytes, or -1 for unlimited storage.public long getSpaceUsed()
public long getMaxUploadSize()
public BoxUser.Status getStatus()
public void setStatus(BoxUser.Status status)
status
- the user's new account status.public String getJobTitle()
public void setJobTitle(String jobTitle)
jobTitle
- the new job title of the user.public String getPhone()
public void setPhone(String phone)
phone
- the new phone number of the user.public String getAddress()
public void setAddress(String address)
address
- the new address of the user.public String getAvatarURL()
public BoxNotificationEmail getNotificationEmail()
public void setNotificationEmail(BoxNotificationEmail notificationEmail)
notificationEmail
- the user's new notification email address.public BoxEnterprise getEnterprise()
public void removeEnterprise()
public boolean getIsSyncEnabled()
public void setIsSyncEnabled(boolean enabled)
enabled
- whether or not the user can use Box Sync.public boolean getIsExternalCollabRestricted()
public void setIsExternalCollabRestricted(boolean isExternalCollabRestricted)
isExternalCollabRestricted
- whether the user is allowed to collaborate outside their enterprise.public boolean getCanSeeManagedUsers()
public void setCanSeeManagedUsers(boolean canSeeManagedUsers)
canSeeManagedUsers
- whether or not the user can see other enterprise users in their contact list.public boolean getIsExemptFromDeviceLimits()
public void setIsExemptFromDeviceLimits(boolean isExemptFromDeviceLimits)
isExemptFromDeviceLimits
- whether or not the user is exempt from enterprise device limits.public boolean getIsExemptFromLoginVerification()
public void setIsExemptFromLoginVerification(boolean isExemptFromLoginVerification)
isExemptFromLoginVerification
- whether or not the user must use two-factor authentication.public boolean getIsPasswordResetRequired()
public void setIsPasswordResetRequired(boolean isPasswordResetRequired)
isPasswordResetRequired
- whether or not the user is required to reset password.public boolean getIsPlatformAccessOnly()
public String getExternalAppUserId()
public void setExternalAppUserId(String externalAppUserId)
externalAppUserId
- external app user id.public List<String> getMyTags()
public String getHostname()
public Map<String,String> getTrackingCodes()
public void setTrackingCodes(Map<String,String> trackingCodes)
trackingCodes
- a Map representing the user's new tracking codespublic void appendTrackingCodes(String name, String value)
name
- the name or `key` of the attribute to set.value
- the value of the attribute to set.protected void parseJSONMember(JsonObject.Member member)
BoxJSONObject
Subclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember
in class BoxCollaborator.Info
member
- the JSON member to be parsed.