Interface GroupSettings

All Known Implementing Classes:
GroupSettingsProvider

public sealed interface GroupSettings permits GroupSettingsProvider
Group settings interface to manage group settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createGroup(int groupId, int creatorId, int sortId, String teamId)
    Creates a new group and checks if the group already exists.
    void
    deleteGroup(int groupId)
    Deletes a group.
    boolean
    existsGroup(int groupId)
    Checks if a group exists.
    getCreatedDate(int groupId)
    Obtains the created date of a group.
    long
    getCreatedTime(int groupId)
    Obtains the created time of a group.
    int
    getCreatorId(int groupId)
    Obtains the creator id of a group.
    int
    getSortId(int groupId)
    Obtains the sort id of a group.
    getTeamId(int groupId)
    Obtains the team id of a group.
    void
    setSortId(int groupId, int sortId)
    Sets the sort id of a group.
    void
    setTeamId(int groupId, String teamId)
    Sets the team id of a group.
  • Method Details

    • existsGroup

      boolean existsGroup(int groupId)
      Checks if a group exists.
      Parameters:
      groupId - The id of the group.
      Returns:
      True if the group exists, otherwise false.
    • createGroup

      void createGroup(int groupId, int creatorId, int sortId, String teamId)
      Creates a new group and checks if the group already exists. If the group already exists, the method will return without creating a new group.
      Parameters:
      groupId - The id of the group.
      creatorId - The creator id of the group.
      sortId - The sort id of the group.
      teamId - The team id of the group.
    • deleteGroup

      void deleteGroup(int groupId)
      Deletes a group.
      Parameters:
      groupId - The id of the group.
    • getCreatorId

      int getCreatorId(int groupId)
      Obtains the creator id of a group.
      Parameters:
      groupId - The id of the group.
      Returns:
      The creator id of the group.
    • getCreatedTime

      long getCreatedTime(int groupId)
      Obtains the created time of a group.
      Parameters:
      groupId - The id of the group.
      Returns:
      The created time of the group.
    • getCreatedDate

      String getCreatedDate(int groupId)
      Obtains the created date of a group.
      Parameters:
      groupId - The id of the group.
      Returns:
      The created date of the group.
    • getSortId

      int getSortId(int groupId)
      Obtains the sort id of a group.
      Parameters:
      groupId - The id of the group.
      Returns:
      The sort id of the group.
    • setSortId

      void setSortId(int groupId, int sortId)
      Sets the sort id of a group.
      Parameters:
      groupId - The id of the group.
      sortId - The sort id of the group.
    • getTeamId

      String getTeamId(int groupId)
      Obtains the team id of a group.
      Parameters:
      groupId - The id of the group.
      Returns:
      The team id of the group.
    • setTeamId

      void setTeamId(int groupId, String teamId)
      Sets the team id of a group.
      Parameters:
      groupId - The id of the group.
      teamId - The team id of the group.