GroupService

interface GroupService

Service interface for managing Group entities.

Inheritors

Functions

Link copied to clipboard
abstract fun addMember(groupId: String, userData: UserData): Group?

Adds a member to a group.

Link copied to clipboard
abstract fun createGroup(group: Group): Group

Creates a new group.

Link copied to clipboard
abstract fun deleteGroup(groupId: String): Boolean

Deletes a group by its ID.

Link copied to clipboard

Retrieves all groups of a given user email.

Link copied to clipboard
abstract fun findAllGroupsOfUser(email: String): List<Group>

Retrieves all groups of a given user email.

Link copied to clipboard
abstract fun getGroup(groupId: String): Group?

Retrieves a group by its ID.

Link copied to clipboard
abstract fun removeMember(groupId: String, userData: UserData): Group?

Removes a member from a group.

Link copied to clipboard
abstract fun updateGroup(groupId: String, group: Group): Group?

Updates an existing group.