Interface GroupSettings
- All Known Implementing Classes:
GroupSettingsProvider
Group settings interface to manage group settings.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateGroup(int groupId, int creatorId, int sortId, String teamId) Creates a new group and checks if the group already exists.voiddeleteGroup(int groupId) Deletes a group.booleanexistsGroup(int groupId) Checks if a group exists.getCreatedDate(int groupId) Obtains the created date of a group.longgetCreatedTime(int groupId) Obtains the created time of a group.intgetCreatorId(int groupId) Obtains the creator id of a group.intgetSortId(int groupId) Obtains the sort id of a group.getTeamId(int groupId) Obtains the team id of a group.voidsetSortId(int groupId, int sortId) Sets the sort id of a group.voidSets 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
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
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
Obtains the team id of a group.- Parameters:
groupId- The id of the group.- Returns:
- The team id of the group.
-
setTeamId
Sets the team id of a group.- Parameters:
groupId- The id of the group.teamId- The team id of the group.
-