![]() |
SDK
2.1.4
CloudBackend Software Development Kit - SDK API for C++
|
For managing the groups. More...
#include <GroupManager.h>
Public Member Functions | |
void | listGroups (ListGroupsDelegatePtr delegate) |
std::vector< cbe::Group > | listGroups () |
Synchronous [exception] Synchronous version of listGroups(ListGroupsDelegatePtr) , and throws an exception, ListGroupsException, in case of a failed call. See listGroups(ListGroupsDelegatePtr) More... | |
cbe::util::Optional< std::vector< cbe::Group > > | listGroups (ListGroupsError &error) |
Synchronous [non-throwing] Synchronous version of listGroups(ListGroupsDelegatePtr) , and throws no exception on error, instead the out/return parameter error is used to provide the error information in connection with a failed call. See listGroups(ListGroupsDelegatePtr) More... | |
void | searchGroups (cbe::GroupFilter filter, SearchGroupsDelegatePtr delegate, cbe::GroupId parentGroupId=0) |
delegate::SearchGroupsDelegate::Success | searchGroups (cbe::GroupFilter filter, cbe::GroupId parentGroupId=0) |
Synchronous [exception] Synchronous version of searchGroups(filter, SearchGroupsDelegatePtr, parentGroupId = 0) , and throws an exception, SearchGroupsException, in case of a failed call. See searchGroups(SearchGroupsDelegatePtr) More... | |
cbe::util::Optional< delegate::SearchGroupsDelegate::Success > | searchGroups (cbe::GroupFilter filter, cbe::GroupId parentGroupId, SearchGroupsError &error) |
Synchronous [non-throwing] Synchronous version of searchGroups(filter, parentGroupId, SearchGroupsDelegatePtr) , and throws no exception on error, instead the out/return parameter error is used to provide the error information in connection with a failed call. See searchGroups(filter, parentGroupId, SearchGroupsDelegatePtr) More... | |
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()
See delegate::object::ListGroupsDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method listGroups()
See delegate::ListGroupsDelegate::ErrorInfo
Pointer to SearchGroupsDelegate that is passed into:
Pointer to cbe::delegate::SearchGroupsDelegate that is passed into asynchronous version of method searchGroups() See delegate::object::SearchGroupsDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method searchGroups()
See delegate::SearchGroupsDelegate::ErrorInfo
cbe::GroupManager::GroupManager | ( | cbe::DefaultCtor | ) |
Default constructor.
Construct a new object with the DefaultCtor
to enable the operator bool() test
void cbe::GroupManager::listGroups | ( | ListGroupsDelegatePtr | delegate | ) |
List all current joined groups.
delegate | Pointer to a delegate::ListGroupsDelegate instance that is implemented by the user. |
std::vector<cbe::Group> cbe::GroupManager::listGroups | ( | ) |
Synchronous [exception] Synchronous version of listGroups(ListGroupsDelegatePtr) , and throws an exception, ListGroupsException, in case of a failed call.
See listGroups(ListGroupsDelegatePtr)
ListGroupsException |
cbe::util::Optional<std::vector<cbe::Group> > cbe::GroupManager::listGroups | ( | ListGroupsError & | error | ) |
Synchronous [non-throwing] Synchronous version of listGroups(ListGroupsDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See listGroups(ListGroupsDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the ListGroupsError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. 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. |
delegate::SearchGroupsDelegate::Success cbe::GroupManager::searchGroups | ( | cbe::GroupFilter | filter, |
cbe::GroupId | parentGroupId = 0 |
||
) |
Synchronous [exception] Synchronous version of searchGroups(filter, SearchGroupsDelegatePtr, parentGroupId = 0) , and throws an exception, SearchGroupsException, in case of a failed call.
See searchGroups(SearchGroupsDelegatePtr)
SearchGroupsException |
cbe::util::Optional<delegate::SearchGroupsDelegate::Success> cbe::GroupManager::searchGroups | ( | cbe::GroupFilter | filter, |
cbe::GroupId | parentGroupId, | ||
SearchGroupsError & | error | ||
) |
Synchronous [non-throwing] Synchronous version of searchGroups(filter, parentGroupId, SearchGroupsDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See searchGroups(filter, parentGroupId, SearchGroupsDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the SearchGroupsError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. cbe::GroupId cbe::GroupManager::getTenantId | ( | ) | const |
Returns the tenant id of the Tenant user group that the user is in.
|
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.