public class TeamMemberProfile extends MemberProfile
Modifier and Type | Class and Description |
---|---|
static class |
TeamMemberProfile.Builder
Builder for
TeamMemberProfile . |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
groups |
protected java.lang.String |
memberFolderId |
accountId, email, emailVerified, externalId, invitedOn, isDirectoryRestricted, joinedOn, membershipType, name, persistentId, profilePhotoUrl, secondaryEmails, status, suspendedOn, teamMemberId
Constructor and Description |
---|
TeamMemberProfile(java.lang.String teamMemberId,
java.lang.String email,
boolean emailVerified,
TeamMemberStatus status,
Name name,
TeamMembershipType membershipType,
java.util.List<java.lang.String> groups,
java.lang.String memberFolderId)
Profile of a user as a member of a team.
|
TeamMemberProfile(java.lang.String teamMemberId,
java.lang.String email,
boolean emailVerified,
TeamMemberStatus status,
Name name,
TeamMembershipType membershipType,
java.util.List<java.lang.String> groups,
java.lang.String memberFolderId,
java.lang.String externalId,
java.lang.String accountId,
java.util.List<SecondaryEmail> secondaryEmails,
java.util.Date invitedOn,
java.util.Date joinedOn,
java.util.Date suspendedOn,
java.lang.String persistentId,
java.lang.Boolean isDirectoryRestricted,
java.lang.String profilePhotoUrl)
Profile of a user as a member of a team.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccountId()
A user's account identifier.
|
java.lang.String |
getEmail()
Email address of user.
|
boolean |
getEmailVerified()
Is true if the user's email is verified to be owned by the user.
|
java.lang.String |
getExternalId()
External ID that a team can attach to the user.
|
java.util.List<java.lang.String> |
getGroups()
List of group IDs of groups that the user belongs to.
|
java.util.Date |
getInvitedOn()
The date and time the user was invited to the team (contains value only
when the member's status matches
TeamMemberStatus.INVITED ). |
java.lang.Boolean |
getIsDirectoryRestricted()
Whether the user is a directory restricted user.
|
java.util.Date |
getJoinedOn()
The date and time the user joined as a member of a specific team.
|
java.lang.String |
getMemberFolderId()
The namespace id of the user's root folder.
|
TeamMembershipType |
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).
|
Name |
getName()
Representations for a person's name.
|
java.lang.String |
getPersistentId()
Persistent ID that a team can attach to the user.
|
java.lang.String |
getProfilePhotoUrl()
URL for the photo representing the user, if one is set.
|
java.util.List<SecondaryEmail> |
getSecondaryEmails()
Secondary emails of a user.
|
TeamMemberStatus |
getStatus()
The user's status as a member of a specific team.
|
java.util.Date |
getSuspendedOn()
The date and time the user was suspended from the team (contains value
only when the member's status matches
TeamMemberStatus.SUSPENDED ). |
java.lang.String |
getTeamMemberId()
ID of user as a member of a team.
|
int |
hashCode() |
static TeamMemberProfile.Builder |
newBuilder(java.lang.String teamMemberId,
java.lang.String email,
boolean emailVerified,
TeamMemberStatus status,
Name name,
TeamMembershipType membershipType,
java.util.List<java.lang.String> groups,
java.lang.String memberFolderId)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
newBuilder
protected final java.util.List<java.lang.String> groups
protected final java.lang.String memberFolderId
public TeamMemberProfile(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, java.util.List<java.lang.String> groups, java.lang.String memberFolderId, java.lang.String externalId, java.lang.String accountId, java.util.List<SecondaryEmail> secondaryEmails, java.util.Date invitedOn, java.util.Date joinedOn, java.util.Date suspendedOn, java.lang.String persistentId, java.lang.Boolean isDirectoryRestricted, java.lang.String profilePhotoUrl)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
teamMemberId
- ID of user as a member of a team. Must not be null
.email
- Email address of user. Must not be null
.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
be null
.name
- Representations for a person's name. Must not be null
.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 be null
.groups
- List of group IDs of groups that the user belongs to. Must
not contain a null
item and not be null
.memberFolderId
- The namespace id of the user's root folder. Must
match pattern "[-_0-9a-zA-Z:]+
" and not be null
.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 a
null
item.invitedOn
- The date and time the user was invited to the team
(contains value only when the member's status matches TeamMemberStatus.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 matches TeamMemberStatus.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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TeamMemberProfile(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, java.util.List<java.lang.String> groups, java.lang.String memberFolderId)
The default values for unset fields will be used.
teamMemberId
- ID of user as a member of a team. Must not be null
.email
- Email address of user. Must not be null
.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
be null
.name
- Representations for a person's name. Must not be null
.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 be null
.groups
- List of group IDs of groups that the user belongs to. Must
not contain a null
item and not be null
.memberFolderId
- The namespace id of the user's root folder. Must
match pattern "[-_0-9a-zA-Z:]+
" and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getTeamMemberId()
getTeamMemberId
in class MemberProfile
null
.public java.lang.String getEmail()
getEmail
in class MemberProfile
null
.public boolean getEmailVerified()
getEmailVerified
in class MemberProfile
public TeamMemberStatus getStatus()
getStatus
in class MemberProfile
null
.public Name getName()
getName
in class MemberProfile
null
.public TeamMembershipType getMembershipType()
getMembershipType
in class MemberProfile
null
.public java.util.List<java.lang.String> getGroups()
null
.public java.lang.String getMemberFolderId()
null
.public java.lang.String getExternalId()
getExternalId
in class MemberProfile
null
if not present.public java.lang.String getAccountId()
getAccountId
in class MemberProfile
null
if not present.public java.util.List<SecondaryEmail> getSecondaryEmails()
getSecondaryEmails
in class MemberProfile
null
if not present.public java.util.Date getInvitedOn()
TeamMemberStatus.INVITED
).getInvitedOn
in class MemberProfile
null
if not present.public java.util.Date getJoinedOn()
getJoinedOn
in class MemberProfile
null
if not present.public java.util.Date getSuspendedOn()
TeamMemberStatus.SUSPENDED
).getSuspendedOn
in class MemberProfile
null
if not present.public java.lang.String getPersistentId()
getPersistentId
in class MemberProfile
null
if not present.public java.lang.Boolean getIsDirectoryRestricted()
getIsDirectoryRestricted
in class MemberProfile
null
if not present.public java.lang.String getProfilePhotoUrl()
getProfilePhotoUrl
in class MemberProfile
null
if not present.public static TeamMemberProfile.Builder newBuilder(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, java.util.List<java.lang.String> groups, java.lang.String memberFolderId)
teamMemberId
- ID of user as a member of a team. Must not be null
.email
- Email address of user. Must not be null
.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
be null
.name
- Representations for a person's name. Must not be null
.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 be null
.groups
- List of group IDs of groups that the user belongs to. Must
not contain a null
item and not be null
.memberFolderId
- The namespace id of the user's root folder. Must
match pattern "[-_0-9a-zA-Z:]+
" and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class MemberProfile
public boolean equals(java.lang.Object obj)
equals
in class MemberProfile
public java.lang.String toString()
toString
in class MemberProfile
public java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class MemberProfile