Events
namespace: privmx::endpoint::store
Events provides the helpers methods for module's events management.
Static Methods
isStoreCreatedEvent
Checks whether event held in the 'EventHolder' is an StoreCreatedEvent
static bool isStoreCreatedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | |
Gets Event held in the 'EventHolder' as an StoreCreatedEvent
static StoreCreatedEvent extractStoreCreatedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
isStoreUpdatedEvent
Checks whether event held in the 'EventHolder' is an StoreUpdatedEvent
static bool isStoreUpdatedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
Gets Event held in the 'EventHolder' as an StoreUpdatedEvent
static StoreUpdatedEvent extractStoreUpdatedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
isStoreDeletedEvent
Checks whether event held in the 'EventHolder' is an StoreDeletedEvent
static bool isStoreDeletedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
Gets Event held in the 'EventHolder' as an StoreDeletedEvent
static StoreDeletedEvent extractStoreDeletedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
isStoreStatsChangedEvent
Checks whether event held in the 'EventHolder' is an StoreStatsChangedEvent
static bool isStoreStatsChangedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
Gets Event held in the 'EventHolder' as an StoreStatsChangedEvent
static StoreStatsChangedEvent extractStoreStatsChangedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
isStoreFileCreatedEvent
Checks whether event held in the 'EventHolder' is an StoreFileCreatedEvent
static bool isStoreFileCreatedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
Gets Event held in the 'EventHolder' as an StoreFileCreatedEvent
static StoreFileCreatedEvent extractStoreFileCreatedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
isStoreFileUpdatedEvent
Checks whether event held in the 'EventHolder' is an StoreFileUpdatedEvent
static bool isStoreFileUpdatedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
Gets Event held in the 'EventHolder' as an StoreFileUpdatedEvent
static StoreFileUpdatedEvent extractStoreFileUpdatedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
isStoreFileDeletedEvent
Checks whether event held in the 'EventHolder' is an StoreFileDeletedEvent
static bool isStoreFileDeletedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |
Gets Event held in the 'EventHolder' as an StoreFileDeletedEvent
static StoreFileDeletedEvent extractStoreFileDeletedEvent(
const core::EventHolder &eventHolder
)
Name | Type | Description |
---|
eventHolder | const core::EventHolder & | holder object that wraps the 'Event' |