public class UserFileMembershipInfo extends UserMembershipInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
UserFileMembershipInfo.Builder
Builder for
UserFileMembershipInfo. |
| Modifier and Type | Field and Description |
|---|---|
protected PlatformType |
platformType |
protected java.util.Date |
timeLastSeen |
useraccessType, initials, isInherited, permissions| Constructor and Description |
|---|
UserFileMembershipInfo(AccessLevel accessType,
UserInfo user)
The information about a user member of the shared content with an
appended last seen timestamp.
|
UserFileMembershipInfo(AccessLevel accessType,
UserInfo user,
java.util.List<MemberPermission> permissions,
java.lang.String initials,
boolean isInherited,
java.util.Date timeLastSeen,
PlatformType platformType)
The information about a user member of the shared content with an
appended last seen timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
AccessLevel |
getAccessType()
The access type for this member.
|
java.lang.String |
getInitials()
Never set.
|
boolean |
getIsInherited()
True if the member has access from a parent folder.
|
java.util.List<MemberPermission> |
getPermissions()
The permissions that requesting user has on this member.
|
PlatformType |
getPlatformType()
The platform on which the user has last seen the content, or unknown.
|
java.util.Date |
getTimeLastSeen()
The UTC timestamp of when the user has last seen the content, if they
have.
|
UserInfo |
getUser()
The account information for the membership user.
|
int |
hashCode() |
static UserFileMembershipInfo.Builder |
newBuilder(AccessLevel accessType,
UserInfo user)
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.
|
newBuilderprotected final java.util.Date timeLastSeen
protected final PlatformType platformType
public UserFileMembershipInfo(AccessLevel accessType, UserInfo user, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited, java.util.Date timeLastSeen, PlatformType platformType)
Use newBuilder to create instances of this class without
specifying values for all optional fields.
accessType - The access type for this member. It contains inherited
access type from parent folder, and acquired access type from this
folder. 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 - Never set.isInherited - True if the member has access from a parent folder.timeLastSeen - The UTC timestamp of when the user has last seen the
content, if they have.platformType - The platform on which the user has last seen the
content, or unknown.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public UserFileMembershipInfo(AccessLevel accessType, UserInfo user)
The default values for unset fields will be used.
accessType - The access type for this member. It contains inherited
access type from parent folder, and acquired access type from this
folder. Must not be null.user - The account information for the membership user. Must not be
null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public AccessLevel getAccessType()
getAccessType in class UserMembershipInfonull.public UserInfo getUser()
getUser in class UserMembershipInfonull.public java.util.List<MemberPermission> getPermissions()
getPermissions in class UserMembershipInfonull if not present.public java.lang.String getInitials()
getInitials in class UserMembershipInfonull if not present.public boolean getIsInherited()
getIsInherited in class UserMembershipInfonull if not present. Defaults to
false.public java.util.Date getTimeLastSeen()
null if not present.public PlatformType getPlatformType()
null if not present.public static UserFileMembershipInfo.Builder newBuilder(AccessLevel accessType, UserInfo user)
accessType - The access type for this member. It contains inherited
access type from parent folder, and acquired access type from this
folder. Must not be null.user - The account information for the membership user. Must not be
null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public int hashCode()
hashCode in class UserMembershipInfopublic boolean equals(java.lang.Object obj)
equals in class UserMembershipInfopublic java.lang.String toString()
toString in class UserMembershipInfopublic java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline in class UserMembershipInfo