Package com.dropbox.core.v2.sharing
Class MembershipInfo
java.lang.Object
com.dropbox.core.v2.sharing.MembershipInfo
- Direct Known Subclasses:
GroupMembershipInfo,InviteeMembershipInfo,UserMembershipInfo
The information about a member of the shared content.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessLevelprotected final Stringprotected final booleanprotected final List<MemberPermission> -
Constructor Summary
ConstructorsConstructorDescriptionMembershipInfo(AccessLevel accessType) The information about a member of the shared content.MembershipInfo(AccessLevel accessType, List<MemberPermission> permissions, String initials, boolean isInherited) The information about a member of the shared content. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe access type for this member.Deprecated.booleanTrue if the member has access on a parent folder.The permissions that requesting user has on this member.inthashCode()static MembershipInfo.BuildernewBuilder(AccessLevel accessType) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
accessType
-
permissions
-
initials
-
isInherited
protected final boolean isInherited
-
-
Constructor Details
-
MembershipInfo
public MembershipInfo(@Nonnull AccessLevel accessType, @Nullable List<MemberPermission> permissions, @Nullable String initials, boolean isInherited) The information about a member of the shared content.Use
newBuilder(com.dropbox.core.v2.sharing.AccessLevel)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.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- Field is deprecated. Never set.isInherited- True if the member has access on a parent folder.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
MembershipInfo
The information about a 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.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getAccessType
The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.- Returns:
- value for this field, never
null.
-
getPermissions
The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.- Returns:
- value for this field, or
nullif not present.
-
getInitials
Deprecated.Field is deprecated. Never set.- Returns:
- value for this field, or
nullif not present.
-
getIsInherited
public boolean getIsInherited()True if the member has access on a parent folder.- Returns:
- value for this field, or
nullif not present. Defaults to false.
-
newBuilder
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.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-