Package com.dropbox.core.v2.team
Class TeamMemberProfile
java.lang.Object
com.dropbox.core.v2.team.MemberProfile
com.dropbox.core.v2.team.TeamMemberProfile
Profile of a user as a member of a team.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.team.MemberProfile
accountId, email, emailVerified, externalId, invitedOn, isDirectoryRestricted, joinedOn, membershipType, name, persistentId, profilePhotoUrl, secondaryEmails, status, suspendedOn, teamMemberId -
Constructor Summary
ConstructorsConstructorDescriptionTeamMemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups, String memberFolderId, String rootFolderId) Profile of a user as a member of a team.TeamMemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups, String memberFolderId, String rootFolderId, String externalId, String accountId, List<SecondaryEmail> secondaryEmails, Date invitedOn, Date joinedOn, Date suspendedOn, String persistentId, Boolean isDirectoryRestricted, String profilePhotoUrl) Profile of a user as a member of a team. -
Method Summary
Modifier and TypeMethodDescriptionbooleanA user's account identifier.getEmail()Email address of user.booleanIs true if the user's email is verified to be owned by the user.External ID that a team can attach to the user.List of group IDs of groups that the user belongs to.The date and time the user was invited to the team (contains value only when the member's status matchesTeamMemberStatus.INVITED).Whether the user is a directory restricted user.The date and time the user joined as a member of a specific team.The namespace id of the user's member folder.The user's membership type: full (normal team member) vs limited (does not use a license; no access to the team's shared quota).getName()Representations for a person's name.Persistent ID that a team can attach to the user.URL for the photo representing the user, if one is set.The namespace id of the user's root folder.Secondary emails of a user.The user's status as a member of a specific team.The date and time the user was suspended from the team (contains value only when the member's status matchesTeamMemberStatus.SUSPENDED).ID of user as a member of a team.inthashCode()static TeamMemberProfile.BuildernewBuilder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups, String memberFolderId, String rootFolderId) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.team.MemberProfile
newBuilder
-
Field Details
-
groups
-
memberFolderId
-
rootFolderId
-
-
Constructor Details
-
TeamMemberProfile
public TeamMemberProfile(@Nonnull String teamMemberId, @Nonnull String email, boolean emailVerified, @Nonnull TeamMemberStatus status, @Nonnull Name name, @Nonnull TeamMembershipType membershipType, @Nonnull List<String> groups, @Nonnull String memberFolderId, @Nonnull String rootFolderId, @Nullable String externalId, @Nullable String accountId, @Nullable List<SecondaryEmail> secondaryEmails, @Nullable Date invitedOn, @Nullable Date joinedOn, @Nullable Date suspendedOn, @Nullable String persistentId, @Nullable Boolean isDirectoryRestricted, @Nullable String profilePhotoUrl) Profile of a user as a member of a team.Use
newBuilder(java.lang.String,java.lang.String,boolean,com.dropbox.core.v2.team.TeamMemberStatus,com.dropbox.core.v2.users.Name,com.dropbox.core.v2.team.TeamMembershipType,java.util.List<java.lang.String>,java.lang.String,java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
teamMemberId- ID of user as a member of a team. Must not benull.email- Email address of user. Must not benull.emailVerified- Is true if the user's email is verified to be owned by the user.status- The user's status as a member of a specific team. Must not benull.name- Representations for a person's name. Must not benull.membershipType- The user's membership type: full (normal team member) vs limited (does not use a license; no access to the team's shared quota). Must not benull.groups- List of group IDs of groups that the user belongs to. Must not contain anullitem and not benull.memberFolderId- The namespace id of the user's member folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.rootFolderId- The namespace id of the user's root folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.externalId- External ID that a team can attach to the user. An application using the API may find it easier to use their own IDs instead of Dropbox IDs like account_id or team_member_id.accountId- A user's account identifier. Must have length of at least 40 and have length of at most 40.secondaryEmails- Secondary emails of a user. Must not contain anullitem.invitedOn- The date and time the user was invited to the team (contains value only when the member's status matchesTeamMemberStatus.INVITED).joinedOn- The date and time the user joined as a member of a specific team.suspendedOn- The date and time the user was suspended from the team (contains value only when the member's status matchesTeamMemberStatus.SUSPENDED).persistentId- Persistent ID that a team can attach to the user. The persistent ID is unique ID to be used for SAML authentication.isDirectoryRestricted- Whether the user is a directory restricted user.profilePhotoUrl- URL for the photo representing the user, if one is set.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
TeamMemberProfile
public TeamMemberProfile(@Nonnull String teamMemberId, @Nonnull String email, boolean emailVerified, @Nonnull TeamMemberStatus status, @Nonnull Name name, @Nonnull TeamMembershipType membershipType, @Nonnull List<String> groups, @Nonnull String memberFolderId, @Nonnull String rootFolderId) Profile of a user as a member of a team.The default values for unset fields will be used.
- Parameters:
teamMemberId- ID of user as a member of a team. Must not benull.email- Email address of user. Must not benull.emailVerified- Is true if the user's email is verified to be owned by the user.status- The user's status as a member of a specific team. Must not benull.name- Representations for a person's name. Must not benull.membershipType- The user's membership type: full (normal team member) vs limited (does not use a license; no access to the team's shared quota). Must not benull.groups- List of group IDs of groups that the user belongs to. Must not contain anullitem and not benull.memberFolderId- The namespace id of the user's member folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.rootFolderId- The namespace id of the user's root folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getTeamMemberId
ID of user as a member of a team.- Overrides:
getTeamMemberIdin classMemberProfile- Returns:
- value for this field, never
null.
-
getEmail
Email address of user.- Overrides:
getEmailin classMemberProfile- Returns:
- value for this field, never
null.
-
getEmailVerified
public boolean getEmailVerified()Is true if the user's email is verified to be owned by the user.- Overrides:
getEmailVerifiedin classMemberProfile- Returns:
- value for this field.
-
getStatus
The user's status as a member of a specific team.- Overrides:
getStatusin classMemberProfile- Returns:
- value for this field, never
null.
-
getName
Representations for a person's name.- Overrides:
getNamein classMemberProfile- Returns:
- value for this field, never
null.
-
getMembershipType
The user's membership type: full (normal team member) vs limited (does not use a license; no access to the team's shared quota).- Overrides:
getMembershipTypein classMemberProfile- Returns:
- value for this field, never
null.
-
getGroups
List of group IDs of groups that the user belongs to.- Returns:
- value for this field, never
null.
-
getMemberFolderId
The namespace id of the user's member folder.- Returns:
- value for this field, never
null.
-
getRootFolderId
The namespace id of the user's root folder.- Returns:
- value for this field, never
null.
-
getExternalId
External ID that a team can attach to the user. An application using the API may find it easier to use their own IDs instead of Dropbox IDs like account_id or team_member_id.- Overrides:
getExternalIdin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
getAccountId
A user's account identifier.- Overrides:
getAccountIdin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
getSecondaryEmails
Secondary emails of a user.- Overrides:
getSecondaryEmailsin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
getInvitedOn
The date and time the user was invited to the team (contains value only when the member's status matchesTeamMemberStatus.INVITED).- Overrides:
getInvitedOnin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
getJoinedOn
The date and time the user joined as a member of a specific team.- Overrides:
getJoinedOnin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
getSuspendedOn
The date and time the user was suspended from the team (contains value only when the member's status matchesTeamMemberStatus.SUSPENDED).- Overrides:
getSuspendedOnin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
getPersistentId
Persistent ID that a team can attach to the user. The persistent ID is unique ID to be used for SAML authentication.- Overrides:
getPersistentIdin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
getIsDirectoryRestricted
Whether the user is a directory restricted user.- Overrides:
getIsDirectoryRestrictedin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
getProfilePhotoUrl
URL for the photo representing the user, if one is set.- Overrides:
getProfilePhotoUrlin classMemberProfile- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static TeamMemberProfile.Builder newBuilder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups, String memberFolderId, String rootFolderId) Returns a new builder for creating an instance of this class.- Parameters:
teamMemberId- ID of user as a member of a team. Must not benull.email- Email address of user. Must not benull.emailVerified- Is true if the user's email is verified to be owned by the user.status- The user's status as a member of a specific team. Must not benull.name- Representations for a person's name. Must not benull.membershipType- The user's membership type: full (normal team member) vs limited (does not use a license; no access to the team's shared quota). Must not benull.groups- List of group IDs of groups that the user belongs to. Must not contain anullitem and not benull.memberFolderId- The namespace id of the user's member folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.rootFolderId- The namespace id of the user's root folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classMemberProfile
-
equals
- Overrides:
equalsin classMemberProfile
-
toString
- Overrides:
toStringin classMemberProfile
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classMemberProfile- Returns:
- Formatted, multiline String representation of this object
-