public class InviteeMembershipInfo extends MembershipInfo
Modifier and Type | Class and Description |
---|---|
static class |
InviteeMembershipInfo.Builder
Builder for
InviteeMembershipInfo . |
Modifier and Type | Field and Description |
---|---|
protected InviteeInfo |
invitee |
protected UserInfo |
user |
accessType, initials, isInherited, permissions
Constructor and Description |
---|
InviteeMembershipInfo(AccessLevel accessType,
InviteeInfo invitee)
Information about an invited member of a shared content.
|
InviteeMembershipInfo(AccessLevel accessType,
InviteeInfo invitee,
List<MemberPermission> permissions,
String initials,
boolean isInherited,
UserInfo user)
Information about an invited member of a shared content.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AccessLevel |
getAccessType()
The access type for this member.
|
String |
getInitials()
Suggested name initials for a member.
|
InviteeInfo |
getInvitee()
Recipient of the invitation.
|
boolean |
getIsInherited()
True if the member has access from a parent folder.
|
List<MemberPermission> |
getPermissions()
The permissions that requesting user has on this member.
|
UserInfo |
getUser()
The user this invitation is tied to, if available.
|
int |
hashCode() |
static InviteeMembershipInfo.Builder |
newBuilder(AccessLevel accessType,
InviteeInfo invitee)
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.
|
newBuilder
protected final InviteeInfo invitee
protected final UserInfo user
public InviteeMembershipInfo(AccessLevel accessType, InviteeInfo invitee, List<MemberPermission> permissions, String initials, boolean isInherited, UserInfo user)
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
.invitee
- Recipient of the invitation. 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.user
- The user this invitation is tied to, if available.IllegalArgumentException
- If any argument does not meet its
preconditions.public InviteeMembershipInfo(AccessLevel accessType, InviteeInfo invitee)
The default values for unset fields will be used.
accessType
- The access type for this member. Must not be null
.invitee
- Recipient of the invitation. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public AccessLevel getAccessType()
getAccessType
in class MembershipInfo
null
.public InviteeInfo getInvitee()
null
.public List<MemberPermission> getPermissions()
getPermissions
in class MembershipInfo
null
if not present.public String getInitials()
getInitials
in class MembershipInfo
null
if not present.public boolean getIsInherited()
getIsInherited
in class MembershipInfo
null
if not present. Defaults to
false.public UserInfo getUser()
null
if not present.public static InviteeMembershipInfo.Builder newBuilder(AccessLevel accessType, InviteeInfo invitee)
accessType
- The access type for this member. Must not be null
.invitee
- Recipient of the invitation. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class MembershipInfo
public boolean equals(Object obj)
equals
in class MembershipInfo
public String toString()
toString
in class MembershipInfo
public String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class MembershipInfo