Search in sources :

Example 1 with EventBusSubscribed

use of io.vertigo.commons.eventbus.EventBusSubscribed in project vertigo by KleeGroup.

the class SearchManagerImpl method onEvent.

/**
 * Receive Store event.
 * @param storeEvent Store event
 */
@EventBusSubscribed
public void onEvent(final StoreEvent storeEvent) {
    final URI uri = storeEvent.getUri();
    // On ne traite l'event que si il porte sur un KeyConcept
    if (uri.getDefinition().getStereotype() == DtStereotype.KeyConcept && hasIndexDefinitionByKeyConcept(uri.getDefinition())) {
        final List<URI<? extends KeyConcept>> list = Collections.singletonList(uri);
        markAsDirty(list);
    }
}
Also used : KeyConcept(io.vertigo.dynamo.domain.model.KeyConcept) URI(io.vertigo.dynamo.domain.model.URI) EventBusSubscribed(io.vertigo.commons.eventbus.EventBusSubscribed)

Aggregations

EventBusSubscribed (io.vertigo.commons.eventbus.EventBusSubscribed)1 KeyConcept (io.vertigo.dynamo.domain.model.KeyConcept)1 URI (io.vertigo.dynamo.domain.model.URI)1