Package com.dropbox.core.v2.sharing
Class UserMembershipInfo
- java.lang.Object
-
- com.dropbox.core.v2.sharing.MembershipInfo
-
- com.dropbox.core.v2.sharing.UserMembershipInfo
-
- Direct Known Subclasses:
UserFileMembershipInfo
public class UserMembershipInfo extends MembershipInfo
The information about a user member of the shared content.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserMembershipInfo.BuilderBuilder forUserMembershipInfo.
-
Field Summary
Fields Modifier and Type Field Description protected UserInfouser-
Fields inherited from class com.dropbox.core.v2.sharing.MembershipInfo
accessType, initials, isInherited, permissions
-
-
Constructor Summary
Constructors Constructor Description UserMembershipInfo(AccessLevel accessType, UserInfo user)The information about a user member of the shared content.UserMembershipInfo(AccessLevel accessType, UserInfo user, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited)The information about a user member of the shared content.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AccessLevelgetAccessType()The access type for this member.java.lang.StringgetInitials()Never set.booleangetIsInherited()True if the member has access from a parent folder.java.util.List<MemberPermission>getPermissions()The permissions that requesting user has on this member.UserInfogetUser()The account information for the membership user.inthashCode()static UserMembershipInfo.BuildernewBuilder(AccessLevel accessType, UserInfo user)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.-
Methods inherited from class com.dropbox.core.v2.sharing.MembershipInfo
newBuilder
-
-
-
-
Field Detail
-
user
protected final UserInfo user
-
-
Constructor Detail
-
UserMembershipInfo
public UserMembershipInfo(AccessLevel accessType, UserInfo user, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited)
The information about a user member of the shared content.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 anullitem.initials- Never set.isInherited- True if the member has access from a parent folder.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
UserMembershipInfo
public UserMembershipInfo(AccessLevel accessType, UserInfo user)
The information about a user member of the shared content.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:
getAccessTypein classMembershipInfo- Returns:
- value for this field, never
null.
-
getUser
public UserInfo getUser()
The account information for the membership user.- 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:
getPermissionsin classMembershipInfo- Returns:
- value for this field, or
nullif not present.
-
getInitials
public java.lang.String getInitials()
Never set.- Overrides:
getInitialsin classMembershipInfo- Returns:
- value for this field, or
nullif not present.
-
getIsInherited
public boolean getIsInherited()
True if the member has access from a parent folder.- Overrides:
getIsInheritedin classMembershipInfo- Returns:
- value for this field, or
nullif not present. Defaults to false.
-
newBuilder
public static UserMembershipInfo.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:
hashCodein classMembershipInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classMembershipInfo
-
toString
public java.lang.String toString()
- Overrides:
toStringin classMembershipInfo
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classMembershipInfo- Returns:
- Formatted, multiline String representation of this object
-
-