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 Boolean
Whether members can invite others to the groupprivate String
Group avatar or profile picture URLprivate UserEntity
User who created the groupprivate String
Description of the group's purposeprivate Boolean
Whether this is an external group (open to external users)private Integer
Maximum number of members allowed in the groupprivate List<MemberEntity>
Members of the groupprivate Boolean
Whether all members are muted (only admins can speak)private String
Name of the groupprivate Boolean
Whether approval is required to join the groupprivate static final long
private Boolean
Whether to show top notification bannerprivate String
Current status of the group (NORMAL, ARCHIVED, etc.)private String
Top notification banner contentprivate String
Type of group (NORMAL, PROJECT, DEPARTMENT, etc.) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdmin
(UserEntity user) void
dismiss()
void
inviteMembers
(List<UserEntity> users) isAdmin
(UserEntity user) isMember
(UserEntity user) void
muteAll()
void
removeAdmin
(UserEntity user) void
removeMember
(UserEntity user) void
void
updateInfo
(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()
-