#include <EndpointRegistrationManager.hpp>
|
| EndpointRegistrationManager (IKaaClientStateStoragePtr status, IExecutorContext &executorContext) |
|
virtual void | attachEndpoint (const std::string &endpointAccessToken, IAttachEndpointCallbackPtr listener=IAttachEndpointCallbackPtr()) |
| Attaches the specified endpoint to the user to which the current endpoint is attached. More...
|
|
virtual void | detachEndpoint (const std::string &endpointKeyHash, IDetachEndpointCallbackPtr listener=IDetachEndpointCallbackPtr()) |
| Detaches the specified endpoint from the user to which the current endpoint is attached. More...
|
|
virtual void | attachUser (const std::string &userExternalId, const std::string &userAccessToken, IUserAttachCallbackPtr listener=IUserAttachCallbackPtr()) |
| Attaches the current endpoint to the specifier user. The user verification is carried out by the default verifier. More...
|
|
virtual void | attachUser (const std::string &userExternalId, const std::string &userAccessToken, const std::string &userVerifierToken, IUserAttachCallbackPtr listener=IUserAttachCallbackPtr()) |
| Attaches the endpoint to a user entity. The user verification will be carried out by the specified verifier. More...
|
|
virtual bool | isAttachedToUser () |
| Checks if the current endpoint is already attached to some user. More...
|
|
virtual void | setAttachStatusListener (IAttachStatusListenerPtr listener) |
| Sets listener to notify of the current endpoint is attached/detached by another one. More...
|
|
virtual UserAttachRequestPtr | getUserAttachRequest () |
|
virtual std::unordered_map
< std::int32_t, std::string > | getEndpointsToAttach () |
|
virtual std::unordered_map
< std::int32_t, std::string > | getEndpointsToDetach () |
|
virtual void | onUserAttach (const UserAttachResponse &response) |
|
virtual void | onEndpointsAttach (const std::vector< EndpointAttachResponse > &endpoints) |
|
virtual void | onEndpointsDetach (const std::vector< EndpointDetachResponse > &endpoints) |
|
virtual void | onCurrentEndpointAttach (const UserAttachNotification &response) |
|
virtual void | onCurrentEndpointDetach (const UserDetachNotification &response) |
|
void | setTransport (UserTransport *transport) |
|
virtual | ~IEndpointRegistrationManager () |
|
virtual | ~IRegistrationProcessor () |
|
Attaches the specified endpoint to the user to which the current endpoint is attached.
- Parameters
-
[in] | endpointAccessToken | The access token of the endpoint to be attached to the user. |
[in] | listener | The optional listener to notify of the result. |
- Exceptions
-
Implements kaa::IEndpointRegistrationManager.
Attaches the current endpoint to the specifier user. The user verification is carried out by the default verifier.
NOTE: If the default user verifier (DEFAULT_USER_VERIFIER_TOKEN) is not specified, the attach attempt fails with the KaaException
exception.
Only endpoints associated with the same user can exchange events.
- Parameters
-
[in] | userExternalId | The external user ID. |
[in] | userAccessToken | The user access token. |
- Exceptions
-
Implements kaa::IEndpointRegistrationManager.
virtual void kaa::EndpointRegistrationManager::attachUser |
( |
const std::string & |
userExternalId, |
|
|
const std::string & |
userAccessToken, |
|
|
const std::string & |
userVerifierToken, |
|
|
IUserAttachCallbackPtr |
listener = IUserAttachCallbackPtr() |
|
) |
| |
|
virtual |
Attaches the endpoint to a user entity. The user verification will be carried out by the specified verifier.
Only endpoints associated with the same user can exchange events.
- Parameters
-
[in] | userExternalId | The external user ID. |
[in] | userAccessToken | The user access token. |
[in] | userVerifierToken | The user verifier token. |
[in] | listener | The optional listener to notify of the result. |
- Exceptions
-
Implements kaa::IEndpointRegistrationManager.
Detaches the specified endpoint from the user to which the current endpoint is attached.
- Parameters
-
[in] | endpointKeyHash | The key hash of the endpoint to be detached from the user. |
[in] | listener | The optional listener to notify of the result. |
- Exceptions
-
Implements kaa::IEndpointRegistrationManager.
virtual std::unordered_map<std::int32_t, std::string> kaa::EndpointRegistrationManager::getEndpointsToAttach |
( |
| ) |
|
|
virtual |
virtual std::unordered_map<std::int32_t, std::string> kaa::EndpointRegistrationManager::getEndpointsToDetach |
( |
| ) |
|
|
virtual |
virtual bool kaa::EndpointRegistrationManager::isAttachedToUser |
( |
| ) |
|
|
inlinevirtual |
virtual void kaa::EndpointRegistrationManager::onCurrentEndpointAttach |
( |
const UserAttachNotification & |
response | ) |
|
|
virtual |
virtual void kaa::EndpointRegistrationManager::onCurrentEndpointDetach |
( |
const UserDetachNotification & |
response | ) |
|
|
virtual |
virtual void kaa::EndpointRegistrationManager::onEndpointsAttach |
( |
const std::vector< EndpointAttachResponse > & |
endpoints | ) |
|
|
virtual |
virtual void kaa::EndpointRegistrationManager::onEndpointsDetach |
( |
const std::vector< EndpointDetachResponse > & |
endpoints | ) |
|
|
virtual |
virtual void kaa::EndpointRegistrationManager::onUserAttach |
( |
const UserAttachResponse & |
response | ) |
|
|
virtual |
void kaa::EndpointRegistrationManager::setTransport |
( |
UserTransport * |
transport | ) |
|
|
inline |
The documentation for this class was generated from the following file: