public class UserMembershipInfo extends MembershipInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
UserMembershipInfo.Builder
Builder for
UserMembershipInfo. |
| Modifier and Type | Field and Description |
|---|---|
protected UserInfo |
user |
accessType, initials, isInherited, permissions| Constructor and Description |
|---|
UserMembershipInfo(AccessLevel accessType,
UserInfo user)
The information about a user member of the shared content.
|
UserMembershipInfo(AccessLevel accessType,
UserInfo user,
List<MemberPermission> permissions,
String initials,
boolean isInherited)
The information about a user member of the shared content.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
UserInfo |
getUser()
The account information for the membership user.
|
int |
hashCode() |
static UserMembershipInfo.Builder |
newBuilder(AccessLevel accessType,
UserInfo user)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
getAccessType, getInitials, getIsInherited, getPermissions, newBuilderprotected final UserInfo user
public UserMembershipInfo(AccessLevel accessType, UserInfo user, List<MemberPermission> permissions, String initials, boolean isInherited)
Use newBuilder to create instances of this class without
specifying values for all optional fields.
accessType - The access type for this member. Must not be null.user - The account information for the membership user. Must not be
null.permissions - The permissions that requesting user has on this
member. The set of permissions corresponds to the MemberActions in
the request. Must not contain a null item.initials - Suggested name initials for a member.isInherited - True if the member has access from a parent folder.IllegalArgumentException - If any argument does not meet its
preconditions.public UserMembershipInfo(AccessLevel accessType, UserInfo user)
The default values for unset fields will be used.
accessType - The access type for this member. Must not be null.user - The account information for the membership user. Must not be
null.IllegalArgumentException - If any argument does not meet its
preconditions.public UserInfo getUser()
null.public static UserMembershipInfo.Builder newBuilder(AccessLevel accessType, UserInfo user)
accessType - The access type for this member. Must not be null.user - The account information for the membership user. Must not be
null.IllegalArgumentException - If any argument does not meet its
preconditions.public int hashCode()
hashCode in class MembershipInfopublic boolean equals(Object obj)
equals in class MembershipInfopublic String toString()
toString in class MembershipInfopublic String toStringMultiline()
The returned String may contain newlines.
toStringMultiline in class MembershipInfo