Package com.dropbox.core.v2.team
Class MemberProfile
java.lang.Object
com.dropbox.core.v2.team.MemberProfile
- Direct Known Subclasses:
TeamMemberProfile
Basic member profile.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final booleanprotected final Stringprotected final Dateprotected final Booleanprotected final Dateprotected final TeamMembershipTypeprotected final Nameprotected final Stringprotected final Stringprotected final List<SecondaryEmail> protected final TeamMemberStatusprotected final Dateprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionMemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType) Basic member profile.MemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, String externalId, String accountId, List<SecondaryEmail> secondaryEmails, Date invitedOn, Date joinedOn, Date suspendedOn, String persistentId, Boolean isDirectoryRestricted, String profilePhotoUrl) Basic member profile. -
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.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 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.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 MemberProfile.BuildernewBuilder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
teamMemberId
-
externalId
-
accountId
-
email
-
emailVerified
protected final boolean emailVerified -
secondaryEmails
-
status
-
name
-
membershipType
-
invitedOn
-
joinedOn
-
suspendedOn
-
persistentId
-
isDirectoryRestricted
-
profilePhotoUrl
-
-
Constructor Details
-
MemberProfile
public MemberProfile(@Nonnull String teamMemberId, @Nonnull String email, boolean emailVerified, @Nonnull TeamMemberStatus status, @Nonnull Name name, @Nonnull TeamMembershipType membershipType, @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) Basic member profile.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)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.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.
-
MemberProfile
public MemberProfile(@Nonnull String teamMemberId, @Nonnull String email, boolean emailVerified, @Nonnull TeamMemberStatus status, @Nonnull Name name, @Nonnull TeamMembershipType membershipType) Basic member profile.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.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getTeamMemberId
ID of user as a member of a team.- Returns:
- value for this field, never
null.
-
getEmail
Email address of user.- 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.- Returns:
- value for this field.
-
getStatus
The user's status as a member of a specific team.- Returns:
- value for this field, never
null.
-
getName
Representations for a person's name.- 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).- 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.- Returns:
- value for this field, or
nullif not present.
-
getAccountId
A user's account identifier.- Returns:
- value for this field, or
nullif not present.
-
getSecondaryEmails
Secondary emails of a user.- 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).- Returns:
- value for this field, or
nullif not present.
-
getJoinedOn
The date and time the user joined as a member of a specific team.- 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).- 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.- Returns:
- value for this field, or
nullif not present.
-
getIsDirectoryRestricted
Whether the user is a directory restricted user.- Returns:
- value for this field, or
nullif not present.
-
getProfilePhotoUrl
URL for the photo representing the user, if one is set.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static MemberProfile.Builder newBuilder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType) 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.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-