|
lintel 0.2.0
|
#include <GroupRepository.h>
Public Member Functions | |
| GroupRepository (std::shared_ptr< DatabaseConnectionConfigurations > connectionConfigurations) | |
| virtual | ~GroupRepository ()=default |
| std::optional< Group > | of (const std::string &groupName) |
| std::vector< Group > | allOf () |
| std::vector< Group > | allOf (const std::string &groupName) |
| std::vector< Group > | allOf (bool isVirtualGroup) |
| std::vector< Group > | allOf (const std::string &groupName, bool isVirtualGroup) |
| void | createOf (const Group &group) |
| void | deleteOf (const Group &group) |
| void | addGroupOf (const Group &group, const Group &add) |
| void | removeGroupOf (const Group &group, const Group &remove) |
| void | onAwake () override |
Repository for CRUD operations on Group entities stored in the database. Manages group hierarchy including parent-child group relationships.
|
explicit |
Constructor.
| connectionConfigurations | database connection configuration |
|
virtualdefault |
Add a sub-group to an existing group.
| group | parent group |
| add | sub-group to add |
| std::vector< Group > lintel::GroupRepository::allOf | ( | ) |
| isVirtualGroup | filter by virtual status |
| groupName | group name filter |
| std::vector< Group > lintel::GroupRepository::allOf | ( | const std::string & | groupName, |
| bool | isVirtualGroup | ||
| ) |
| groupName | group name filter |
| isVirtualGroup | filter by virtual status |
Create a new group.
| group | group to create |
Delete a group.
| group | group to delete |
Find a group by name.
| groupName | group name |
|
overridevirtual |
Initialize the repository (load groups from database).
Implements lintel::PersistableBean.
Remove a sub-group from an existing group.
| group | parent group |
| remove | sub-group to remove |