GroupRepository

interface GroupRepository

Repository interface for managing Group entities.

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 deleteById(groupId: String): Boolean

Deletes a group by its ID.

Link copied to clipboard
abstract fun findAll(): List<Group>

Retrieves all groups.

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

Retrieves a group by its ID.

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

Retrieves all groups for a given user.

Link copied to clipboard
abstract fun findGroupsByUserId(id: String): List<Group>

Retrieves all groups for a given user.

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

Removes a member from a group.

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

Saves a given group.

Link copied to clipboard
abstract fun update(group: Group): Group?

Updates a given group.