Package com.dropbox.core.v2.sharing
Class UserFileMembershipInfo
- java.lang.Object
-
- com.dropbox.core.v2.sharing.MembershipInfo
-
- com.dropbox.core.v2.sharing.UserMembershipInfo
-
- com.dropbox.core.v2.sharing.UserFileMembershipInfo
-
public class UserFileMembershipInfo extends UserMembershipInfo
The information about a user member of the shared content with an appended last seen timestamp.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserFileMembershipInfo.Builder
Builder forUserFileMembershipInfo
.
-
Field Summary
Fields Modifier and Type Field Description protected PlatformType
platformType
protected java.util.Date
timeLastSeen
-
Fields inherited from class com.dropbox.core.v2.sharing.UserMembershipInfo
user
-
Fields inherited from class com.dropbox.core.v2.sharing.MembershipInfo
accessType, initials, isInherited, permissions
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.dropbox.core.v2.sharing.MembershipInfo
newBuilder
-
-
-
-
Field Detail
-
timeLastSeen
protected final java.util.Date timeLastSeen
-
platformType
protected final PlatformType platformType
-
-
Constructor Detail
-
UserFileMembershipInfo
public 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.Use
newBuilder(com.dropbox.core.v2.sharing.AccessLevel,com.dropbox.core.v2.sharing.UserInfo)
to create instances of this class without specifying values for all optional fields.- Parameters:
accessType
- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull
.user
- The account information for the membership user. Must not benull
.permissions
- The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. Must not contain anull
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.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
UserFileMembershipInfo
public UserFileMembershipInfo(AccessLevel accessType, UserInfo user)
The information about a user member of the shared content with an appended last seen timestamp.The default values for unset fields will be used.
- Parameters:
accessType
- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull
.user
- The account information for the membership user. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getAccessType
public AccessLevel getAccessType()
The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.- Overrides:
getAccessType
in classUserMembershipInfo
- Returns:
- value for this field, never
null
.
-
getUser
public UserInfo getUser()
The account information for the membership user.- Overrides:
getUser
in classUserMembershipInfo
- Returns:
- value for this field, never
null
.
-
getPermissions
public java.util.List<MemberPermission> getPermissions()
The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.- Overrides:
getPermissions
in classUserMembershipInfo
- Returns:
- value for this field, or
null
if not present.
-
getInitials
public java.lang.String getInitials()
Never set.- Overrides:
getInitials
in classUserMembershipInfo
- Returns:
- value for this field, or
null
if not present.
-
getIsInherited
public boolean getIsInherited()
True if the member has access from a parent folder.- Overrides:
getIsInherited
in classUserMembershipInfo
- Returns:
- value for this field, or
null
if not present. Defaults to false.
-
getTimeLastSeen
public java.util.Date getTimeLastSeen()
The UTC timestamp of when the user has last seen the content, if they have.- Returns:
- value for this field, or
null
if not present.
-
getPlatformType
public PlatformType getPlatformType()
The platform on which the user has last seen the content, or unknown.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static UserFileMembershipInfo.Builder newBuilder(AccessLevel accessType, UserInfo user)
Returns a new builder for creating an instance of this class.- Parameters:
accessType
- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull
.user
- The account information for the membership user. Must not benull
.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUserMembershipInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classUserMembershipInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classUserMembershipInfo
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultiline
in classUserMembershipInfo
- Returns:
- Formatted, multiline String representation of this object
-
-