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 & |
Type | Description |
---|---|
bool | true for StoreCreatedEvent else otherwise |
extractStoreCreatedEvent
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' |
Type | Description |
---|---|
StoreCreatedEvent | StoreCreatedEvent object |
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' |
Type | Description |
---|---|
bool | true for StoreUpdatedEvent else otherwise |
extractStoreUpdatedEvent
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' |
Type | Description |
---|---|
StoreUpdatedEvent | StoreUpdatedEvent object |
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' |
Type | Description |
---|---|
bool | true for StoreDeletedEvent else otherwise |
extractStoreDeletedEvent
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' |
Type | Description |
---|---|
StoreDeletedEvent | StoreDeletedEvent object |
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' |
Type | Description |
---|---|
bool | true for StoreStatsChangedEvent else otherwise |
extractStoreStatsChangedEvent
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' |
Type | Description |
---|---|
StoreStatsChangedEvent | StoreStatsChangedEvent object |
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' |
Type | Description |
---|---|
bool | true for StoreFileCreatedEvent else otherwise |
extractStoreFileCreatedEvent
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' |
Type | Description |
---|---|
StoreFileCreatedEvent | StoreFileCreatedEvent object |
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' |
Type | Description |
---|---|
bool | true for StoreFileUpdatedEvent else otherwise |
extractStoreFileUpdatedEvent
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' |
Type | Description |
---|---|
StoreFileUpdatedEvent | StoreFileUpdatedEvent object |
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' |
Type | Description |
---|---|
bool | true for StoreFileDeletedEvent else otherwise |
extractStoreFileDeletedEvent
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' |
Type | Description |
---|---|
StoreFileDeletedEvent | StoreFileDeletedEvent object |