Class GroupSettingsProvider

java.lang.Object
de.murmelmeister.murmelapi.group.settings.GroupSettingsProvider
All Implemented Interfaces:
GroupSettings

public final class GroupSettingsProvider extends Object implements GroupSettings
  • Constructor Details

    • GroupSettingsProvider

      public GroupSettingsProvider()
  • Method Details

    • createTable

      private void createTable(String tableName)
    • existsGroup

      public boolean existsGroup(int groupId)
      Description copied from interface: GroupSettings
      Checks if a group exists.
      Specified by:
      existsGroup in interface GroupSettings
      Parameters:
      groupId - The id of the group.
      Returns:
      True if the group exists, otherwise false.
    • createGroup

      public void createGroup(int groupId, int creatorId, int sortId, String teamId)
      Description copied from interface: GroupSettings
      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.
      Specified by:
      createGroup in interface GroupSettings
      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

      public void deleteGroup(int groupId)
      Description copied from interface: GroupSettings
      Deletes a group.
      Specified by:
      deleteGroup in interface GroupSettings
      Parameters:
      groupId - The id of the group.
    • getCreatorId

      public int getCreatorId(int groupId)
      Description copied from interface: GroupSettings
      Obtains the creator id of a group.
      Specified by:
      getCreatorId in interface GroupSettings
      Parameters:
      groupId - The id of the group.
      Returns:
      The creator id of the group.
    • getCreatedTime

      public long getCreatedTime(int groupId)
      Description copied from interface: GroupSettings
      Obtains the created time of a group.
      Specified by:
      getCreatedTime in interface GroupSettings
      Parameters:
      groupId - The id of the group.
      Returns:
      The created time of the group.
    • getCreatedDate

      public String getCreatedDate(int groupId)
      Description copied from interface: GroupSettings
      Obtains the created date of a group.
      Specified by:
      getCreatedDate in interface GroupSettings
      Parameters:
      groupId - The id of the group.
      Returns:
      The created date of the group.
    • getSortId

      public int getSortId(int groupId)
      Description copied from interface: GroupSettings
      Obtains the sort id of a group.
      Specified by:
      getSortId in interface GroupSettings
      Parameters:
      groupId - The id of the group.
      Returns:
      The sort id of the group.
    • setSortId

      public void setSortId(int groupId, int sortId)
      Description copied from interface: GroupSettings
      Sets the sort id of a group.
      Specified by:
      setSortId in interface GroupSettings
      Parameters:
      groupId - The id of the group.
      sortId - The sort id of the group.
    • getTeamId

      public String getTeamId(int groupId)
      Description copied from interface: GroupSettings
      Obtains the team id of a group.
      Specified by:
      getTeamId in interface GroupSettings
      Parameters:
      groupId - The id of the group.
      Returns:
      The team id of the group.
    • setTeamId

      public void setTeamId(int groupId, String teamId)
      Description copied from interface: GroupSettings
      Sets the team id of a group.
      Specified by:
      setTeamId in interface GroupSettings
      Parameters:
      groupId - The id of the group.
      teamId - The team id of the group.