Package com.bytedesk.core.group
Class GroupEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.core.group.GroupEntity
- All Implemented Interfaces:
Serializable
Team group entity for group chat and collaboration management
Manages group settings, members, and communication features
Database Table: bytedesk_team_groups
Purpose: Stores group information, member relationships, and group settings
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<UserEntity>Administrators of the groupprivate BooleanWhether members can invite others to the groupprivate StringGroup avatar or profile picture URLprivate UserEntityUser who created the groupprivate StringDescription of the group's purposeprivate BooleanWhether this is an external group (open to external users)private IntegerMaximum number of members allowed in the groupprivate List<MemberEntity>Members of the groupprivate BooleanWhether all members are muted (only admins can speak)private StringName of the groupprivate BooleanWhether approval is required to join the groupprivate static final longprivate BooleanWhether to show top notification bannerprivate StringCurrent status of the group (NORMAL, ARCHIVED, etc.)private StringTop notification banner contentprivate StringType of group (NORMAL, PROJECT, DEPARTMENT, etc.) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdmin(UserEntity user) voiddismiss()voidinviteMembers(List<UserEntity> users) isAdmin(UserEntity user) isMember(UserEntity user) voidmuteAll()voidremoveAdmin(UserEntity user) voidremoveMember(UserEntity user) voidvoidupdateInfo(String name, String description, String avatar) Methods inherited from class com.bytedesk.core.base.BaseEntity
getCreatedAtString, getUpdatedAtString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
Name of the group -
avatar
Group avatar or profile picture URL -
description
Description of the group's purpose -
showTopTip
Whether to show top notification banner -
topTip
Top notification banner content -
external
Whether this is an external group (open to external users) -
type
Type of group (NORMAL, PROJECT, DEPARTMENT, etc.) -
status
Current status of the group (NORMAL, ARCHIVED, etc.) -
members
Members of the group -
admins
Administrators of the group -
creator
User who created the group -
maxMembers
Maximum number of members allowed in the group -
needApproval
Whether approval is required to join the group -
allowInvite
Whether members can invite others to the group -
muteAll
Whether all members are muted (only admins can speak)
-
-
Constructor Details
-
GroupEntity
public GroupEntity()
-
-
Method Details
-
inviteMembers
-
removeMember
-
addAdmin
-
removeAdmin
-
isMember
-
isAdmin
-
muteAll
public void muteAll() -
unMuteAll
public void unMuteAll() -
updateInfo
-
dismiss
public void dismiss()
-