public abstract class User extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static User |
create(FssApiVersion apiVersion,
java.lang.String username,
java.lang.Long quotaBytes,
java.lang.Long usageBytes,
java.lang.String email,
LinkSettings linkSettings,
AccountSettings accountSettings,
java.lang.Long fileCount,
java.lang.Boolean hasAuthProviderEmail,
java.lang.Long directoryCount,
java.lang.Long conflicts,
java.lang.String displayName,
java.lang.String userId,
java.lang.String uniqueId,
java.lang.Boolean sharingEnabled,
java.lang.Boolean isRegistered,
TeamFolderSettings teamFolderSettings,
ConfigSettings configSettings,
java.lang.Boolean inUpgrade,
java.lang.String providerId,
java.lang.String providerType,
java.lang.Boolean isGlobalLogout)
Returns a versioned User that is compatible with the specified apiVersion.
|
AccountSettings |
getAccountSettings()
Return the user's account settings.
|
ConfigSettings |
getConfigSettings()
Returns the configuration settings for the user
|
java.lang.Long |
getConflicts()
Return number of conflicts of the user.
|
java.lang.Long |
getDirectoryCount()
Return the user's directory count.
|
java.lang.String |
getDisplayName()
Returns the user's display name.
|
java.lang.String |
getEmail()
Returns the user's email address.
|
java.lang.Long |
getFileCount()
Return the user's file count.
|
static java.lang.Class<? extends User> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the User that corresponds to the specified apiVersion. |
java.lang.Boolean |
getHasAuthProviderEmail()
Returns whether or not the user has an email address specified by their auth provider.
|
java.lang.Boolean |
getInUpgrade()
Returns whether an upgrade is occurring
|
LinkSettings |
getLinkSettings()
Returns the user's default link settings.
|
java.lang.String |
getProviderId()
Returns the user's auth provider's ID.
|
java.lang.String |
getProviderType()
Returns the user's auth provider type
|
java.lang.Long |
getQuotaBytes()
Returns the number of bytes that the user can store as active versions on HCP Anywhere.
|
java.lang.Boolean |
getRegistered()
Returns whether or not the user is registered.
|
java.lang.Boolean |
getSharingEnabled()
Returns whether or not the user is able to share.
|
TeamFolderSettings |
getTeamFolderSettings()
Returns team folder settings for the user.
|
java.lang.String |
getUniqueId()
Returns the user's unique ID for their auth provider.
|
java.lang.Long |
getUsageBytes()
Returns the number of bytes currently used by the user's active versions of files on HCP
Anywhere.
|
java.lang.String |
getUserId()
Returns the user's ID.
|
java.lang.String |
getUsername()
Returns the user's username.
|
java.lang.Boolean |
isGlobalLogout()
Returns if the logout is global
|
protected void |
validate(java.lang.String fieldName,
BaseFssApiResource parent)
Validates this object.
|
badValue, badValue, fromJson, toJson, toJson, toString, validate, validateFieldInRange, validateFieldInRange, validateFieldIsNull, validateFieldNotNull, validateLocale, validateOptionalField, validateOptionalFieldList, validateRequiredField, validateRequiredFieldList, writeToOutputStreampublic static java.lang.Class<? extends User> getFssApiClass(FssApiVersion apiVersion)
Class of the User that corresponds to the specified apiVersion.apiVersion - API version of the class to be returnedClass of the User that corresponds to the specified apiVersionpublic static User create(FssApiVersion apiVersion, java.lang.String username, java.lang.Long quotaBytes, java.lang.Long usageBytes, java.lang.String email, LinkSettings linkSettings, AccountSettings accountSettings, java.lang.Long fileCount, java.lang.Boolean hasAuthProviderEmail, java.lang.Long directoryCount, java.lang.Long conflicts, java.lang.String displayName, java.lang.String userId, java.lang.String uniqueId, java.lang.Boolean sharingEnabled, java.lang.Boolean isRegistered, TeamFolderSettings teamFolderSettings, ConfigSettings configSettings, java.lang.Boolean inUpgrade, java.lang.String providerId, java.lang.String providerType, java.lang.Boolean isGlobalLogout) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the Userusername - username of the userquotaBytes - number of bytes that the user can store as active versions on AnywhereusageBytes - number of bytes currently used by the user's active versions of files on
HCP Anywhereemail - email address of the userlinkSettings - link settings of the useraccountSettings - account settings of the userfileCount - number of fileshasAuthProviderEmail - Whether or not the user has an email address specified by their
auth providerdirectoryCount - number of directoriesconflicts - number of conflictsdisplayName - display name of the useruserId - ID of the user.uniqueId - The unique auth ID for the user given by their auth provider.isRegistered - Whether the user is registered/enabledsharingEnabled - Whether or not the user is allowed to share. False if the user has
share whitelisting enabled and an empty whitelist.configSettings - Configuration specific settings for the user.inUpgrade - Whether or not an upgrade is occurringproviderId - The user's auth provider's ID.providerType - The user's auth provider typeisGlobalLogout - The user's auth provider logout typeAwUnsupportedApiVersionExceptionpublic java.lang.String getUsername()
public java.lang.String getDisplayName()
public java.lang.String getUserId()
public java.lang.String getUniqueId()
public java.lang.Long getQuotaBytes()
public java.lang.Long getUsageBytes()
public java.lang.String getEmail()
public LinkSettings getLinkSettings()
public AccountSettings getAccountSettings()
public java.lang.Long getFileCount()
public java.lang.Boolean getHasAuthProviderEmail()
public java.lang.Long getDirectoryCount()
public java.lang.Long getConflicts()
public java.lang.Boolean getSharingEnabled()
public java.lang.Boolean getRegistered()
public TeamFolderSettings getTeamFolderSettings()
public ConfigSettings getConfigSettings()
public java.lang.Boolean getInUpgrade()
public java.lang.String getProviderId()
public java.lang.String getProviderType()
public java.lang.Boolean isGlobalLogout()
protected void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
validate in class BaseFssApiResourcefieldName - name of this object in the parent (containing) object. If this object is a
top-level object (not contained within another object), then enter null for this
parameterparent - parent (containing) object that contains the object specified in the fieldName
parameter. If this object is a top-level object (not contained within another
object), then enter null for this parameterAwJsonException - if any validation errors occurBaseFssApiResource.validate(String, BaseFssApiResource)