![]() |
SDK
2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
|
For managing the groups. More...
#include <GroupManager.h>
Public Types | |
using | ListGroupsDelegatePtr = delegate::ListGroupsDelegatePtr |
using | SearchGroupsDelegatePtr = delegate::SearchGroupsDelegatePtr |
Public Member Functions | |
void | listGroups (ListGroupsDelegatePtr delegate) |
void | searchGroups (cbe::GroupFilter filter, SearchGroupsDelegatePtr delegate, cbe::GroupId parentGroupId=0) |
cbe::GroupId | getTenantId () const |
GroupManager (cbe::DefaultCtor) | |
Default constructor. More... | |
operator bool () const | |
Checks if the current instance is real. More... | |
Friends | |
class | CloudBackend |
For managing the groups.
Pointer to cbe::delegate::ListGroupsDelegate that is passed into asynchronous version of method listGroups()
Pointer to SearchGroupsDelegate that is passed into:
cbe::GroupManager::GroupManager | ( | cbe::DefaultCtor | ) |
Default constructor.
Construct a new object with the DefaultCtor
to enable the operator bool() test
cbe::GroupId cbe::GroupManager::getTenantId | ( | ) | const |
Pointer to cbe::delegate::SearchGroupsDelegate that is passed into asynchronous version of method searchGroups() Returns the tenant id of the Tenant user group that the user is in.
void cbe::GroupManager::listGroups | ( | ListGroupsDelegatePtr | delegate | ) |
List all current joined groups.
delegate | Pointer to a delegate::ListGroupsDelegate instance that is implemented by the user. |
|
explicit |
Checks if the current instance is real.
An "unreal" instance implies typically a failed event.
Relies on the Default
constructor
GroupManager(cbe::DefaultCtor)
true
: is real false
: unreal; got nullptr; if current instance is unbound/undefined. I.e., if it is only default constructed. void cbe::GroupManager::searchGroups | ( | cbe::GroupFilter | filter, |
SearchGroupsDelegatePtr | delegate, | ||
cbe::GroupId | parentGroupId = 0 |
||
) |
Search for open public groups.
filter | is a group filter to set search criteria for open public groups. Look att class GroupFilter for more information. |
delegate | Pointer to a delegate::SearchGroupsDelegate instance that is implemented by the user. |
parentGroupId | is the id of the group to be searched within. If this is not set the tenant id will be used. |