Package com.dropbox.core.v2.sharing
Class GroupMembershipInfo
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.MembershipInfo
- 
- com.dropbox.core.v2.sharing.GroupMembershipInfo
 
 
- 
 public class GroupMembershipInfo extends MembershipInfo The information about a group member of the shared content.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGroupMembershipInfo.BuilderBuilder forGroupMembershipInfo.
 - 
Field SummaryFields Modifier and Type Field Description protected GroupInfogroup- 
Fields inherited from class com.dropbox.core.v2.sharing.MembershipInfoaccessType, initials, isInherited, permissions
 
- 
 - 
Constructor SummaryConstructors Constructor Description GroupMembershipInfo(AccessLevel accessType, GroupInfo group)The information about a group member of the shared content.GroupMembershipInfo(AccessLevel accessType, GroupInfo group, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited)The information about a group member of the shared content.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AccessLevelgetAccessType()The access type for this member.GroupInfogetGroup()The information about the membership group.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.inthashCode()static GroupMembershipInfo.BuildernewBuilder(AccessLevel accessType, GroupInfo group)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.MembershipInfonewBuilder
 
- 
 
- 
- 
- 
Field Detail- 
groupprotected final GroupInfo group 
 
- 
 - 
Constructor Detail- 
GroupMembershipInfopublic GroupMembershipInfo(AccessLevel accessType, GroupInfo group, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited) The information about a group member of the shared content.Use newBuilder(com.dropbox.core.v2.sharing.AccessLevel,com.dropbox.core.v2.sharing.GroupInfo)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 be- null.
- group- The information about the membership group. 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- nullitem.
- 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.
 
 - 
GroupMembershipInfopublic GroupMembershipInfo(AccessLevel accessType, GroupInfo group) The information about a group 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 be- null.
- group- The information about the membership group. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAccessTypepublic 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 class- MembershipInfo
- Returns:
- value for this field, never null.
 
 - 
getGrouppublic GroupInfo getGroup() The information about the membership group.- Returns:
- value for this field, never null.
 
 - 
getPermissionspublic 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 class- MembershipInfo
- Returns:
- value for this field, or nullif not present.
 
 - 
getInitialspublic java.lang.String getInitials() Never set.- Overrides:
- getInitialsin class- MembershipInfo
- Returns:
- value for this field, or nullif not present.
 
 - 
getIsInheritedpublic boolean getIsInherited() True if the member has access from a parent folder.- Overrides:
- getIsInheritedin class- MembershipInfo
- Returns:
- value for this field, or nullif not present. Defaults to false.
 
 - 
newBuilderpublic static GroupMembershipInfo.Builder newBuilder(AccessLevel accessType, GroupInfo group) 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 be- null.
- group- The information about the membership group. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- MembershipInfo
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- MembershipInfo
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- MembershipInfo
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Overrides:
- toStringMultilinein class- MembershipInfo
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-