Skip to main content
reference

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
)

NameTypeDescription
eventHolderconst core::EventHolder &

TypeDescription
bool true for StoreCreatedEvent else otherwise

extractStoreCreatedEvent

Gets Event held in the 'EventHolder' as an StoreCreatedEvent

static StoreCreatedEvent extractStoreCreatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
StoreCreatedEvent StoreCreatedEvent object

isStoreUpdatedEvent

Checks whether event held in the 'EventHolder' is an StoreUpdatedEvent

static bool isStoreUpdatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for StoreUpdatedEvent else otherwise

extractStoreUpdatedEvent

Gets Event held in the 'EventHolder' as an StoreUpdatedEvent

static StoreUpdatedEvent extractStoreUpdatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
StoreUpdatedEvent StoreUpdatedEvent object

isStoreDeletedEvent

Checks whether event held in the 'EventHolder' is an StoreDeletedEvent

static bool isStoreDeletedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for StoreDeletedEvent else otherwise

extractStoreDeletedEvent

Gets Event held in the 'EventHolder' as an StoreDeletedEvent

static StoreDeletedEvent extractStoreDeletedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
StoreDeletedEvent StoreDeletedEvent object

isStoreStatsChangedEvent

Checks whether event held in the 'EventHolder' is an StoreStatsChangedEvent

static bool isStoreStatsChangedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for StoreStatsChangedEvent else otherwise

extractStoreStatsChangedEvent

Gets Event held in the 'EventHolder' as an StoreStatsChangedEvent

static StoreStatsChangedEvent extractStoreStatsChangedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst 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
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for StoreFileCreatedEvent else otherwise

extractStoreFileCreatedEvent

Gets Event held in the 'EventHolder' as an StoreFileCreatedEvent

static StoreFileCreatedEvent extractStoreFileCreatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst 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
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for StoreFileUpdatedEvent else otherwise

extractStoreFileUpdatedEvent

Gets Event held in the 'EventHolder' as an StoreFileUpdatedEvent

static StoreFileUpdatedEvent extractStoreFileUpdatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst 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
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for StoreFileDeletedEvent else otherwise

extractStoreFileDeletedEvent

Gets Event held in the 'EventHolder' as an StoreFileDeletedEvent

static StoreFileDeletedEvent extractStoreFileDeletedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'