Class GroupEntity

java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.core.group.GroupEntity
All Implemented Interfaces:
Serializable

@Entity public class GroupEntity extends BaseEntity
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • name

      private String name
      Name of the group
    • avatar

      private String avatar
      Group avatar or profile picture URL
    • description

      private String description
      Description of the group's purpose
    • showTopTip

      private Boolean showTopTip
      Whether to show top notification banner
    • topTip

      private String topTip
      Top notification banner content
    • external

      private Boolean external
      Whether this is an external group (open to external users)
    • type

      private String type
      Type of group (NORMAL, PROJECT, DEPARTMENT, etc.)
    • status

      private String status
      Current status of the group (NORMAL, ARCHIVED, etc.)
    • members

      private List<MemberEntity> members
      Members of the group
    • admins

      private List<UserEntity> admins
      Administrators of the group
    • creator

      private UserEntity creator
      User who created the group
    • maxMembers

      private Integer maxMembers
      Maximum number of members allowed in the group
    • needApproval

      private Boolean needApproval
      Whether approval is required to join the group
    • allowInvite

      private Boolean allowInvite
      Whether members can invite others to the group
    • muteAll

      private Boolean muteAll
      Whether all members are muted (only admins can speak)
  • Constructor Details

    • GroupEntity

      public GroupEntity()
  • Method Details

    • inviteMembers

      public void inviteMembers(List<UserEntity> users)
    • removeMember

      public void removeMember(UserEntity user)
    • addAdmin

      public void addAdmin(UserEntity user)
    • removeAdmin

      public void removeAdmin(UserEntity user)
    • isMember

      public Boolean isMember(UserEntity user)
    • isAdmin

      public Boolean isAdmin(UserEntity user)
    • muteAll

      public void muteAll()
    • unMuteAll

      public void unMuteAll()
    • updateInfo

      public void updateInfo(String name, String description, String avatar)
    • dismiss

      public void dismiss()