Package com.dropbox.core.v2.sharing
Class GroupInfo
java.lang.Object
com.dropbox.core.v2.teamcommon.GroupSummary
com.dropbox.core.v2.sharing.GroupInfo
The information about a group. Groups is a way to manage a list of users who
need same access permission to the shared folder.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GroupTypeprotected final booleanprotected final booleanprotected final booleanFields inherited from class com.dropbox.core.v2.teamcommon.GroupSummary
groupExternalId, groupId, groupManagementType, groupName, memberCount -
Constructor Summary
ConstructorsConstructorDescriptionGroupInfo(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) The information about a group.GroupInfo(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam, String groupExternalId, Long memberCount) The information about a group. -
Method Summary
Modifier and TypeMethodDescriptionbooleanExternal ID of group.Who is allowed to manage the group.Deprecated.booleanIf the current user is a member of the group.booleanIf the current user is an owner of the group.The number of members in the group.booleanIf the group is owned by the current user's team.inthashCode()static GroupInfo.BuildernewBuilder(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.teamcommon.GroupSummary
newBuilder
-
Field Details
-
groupType
-
isMember
protected final boolean isMember -
isOwner
protected final boolean isOwner -
sameTeam
protected final boolean sameTeam
-
-
Constructor Details
-
GroupInfo
public GroupInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, @Nonnull GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam, @Nullable String groupExternalId, @Nullable Long memberCount) The information about a group. Groups is a way to manage a list of users who need same access permission to the shared folder.Use
newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.teamcommon.GroupManagementType,com.dropbox.core.v2.teamcommon.GroupType,boolean,boolean,boolean)to create instances of this class without specifying values for all optional fields.- Parameters:
groupName- Must not benull.groupId- Must not benull.groupManagementType- Who is allowed to manage the group. Must not benull.groupType- Field is deprecated. The type of group. Must not benull.isMember- If the current user is a member of the group.isOwner- If the current user is an owner of the group.sameTeam- If the group is owned by the current user's team.groupExternalId- External ID of group. This is an arbitrary ID that an admin can attach to a group.memberCount- The number of members in the group.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
GroupInfo
public GroupInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, @Nonnull GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) The information about a group. Groups is a way to manage a list of users who need same access permission to the shared folder.The default values for unset fields will be used.
- Parameters:
groupName- Must not benull.groupId- Must not benull.groupManagementType- Who is allowed to manage the group. Must not benull.groupType- Field is deprecated. The type of group. Must not benull.isMember- If the current user is a member of the group.isOwner- If the current user is an owner of the group.sameTeam- If the group is owned by the current user's team.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getGroupName
- Overrides:
getGroupNamein classGroupSummary- Returns:
- value for this field, never
null.
-
getGroupId
- Overrides:
getGroupIdin classGroupSummary- Returns:
- value for this field, never
null.
-
getGroupManagementType
Who is allowed to manage the group.- Overrides:
getGroupManagementTypein classGroupSummary- Returns:
- value for this field, never
null.
-
getGroupType
Deprecated.Field is deprecated. The type of group.- Returns:
- value for this field, never
null.
-
getIsMember
public boolean getIsMember()If the current user is a member of the group.- Returns:
- value for this field.
-
getIsOwner
public boolean getIsOwner()If the current user is an owner of the group.- Returns:
- value for this field.
-
getSameTeam
public boolean getSameTeam()If the group is owned by the current user's team.- Returns:
- value for this field.
-
getGroupExternalId
External ID of group. This is an arbitrary ID that an admin can attach to a group.- Overrides:
getGroupExternalIdin classGroupSummary- Returns:
- value for this field, or
nullif not present.
-
getMemberCount
The number of members in the group.- Overrides:
getMemberCountin classGroupSummary- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static GroupInfo.Builder newBuilder(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) Returns a new builder for creating an instance of this class.- Parameters:
groupName- Must not benull.groupId- Must not benull.groupManagementType- Who is allowed to manage the group. Must not benull.groupType- Field is deprecated. The type of group. Must not benull.isMember- If the current user is a member of the group.isOwner- If the current user is an owner of the group.sameTeam- If the group is owned by the current user's team.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classGroupSummary
-
equals
- Overrides:
equalsin classGroupSummary
-
toString
- Overrides:
toStringin classGroupSummary
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classGroupSummary- Returns:
- Formatted, multiline String representation of this object
-