Search in sources :

Example 6 with TaxonomiesUpdatedEvent

use of org.obiba.mica.micaConfig.event.TaxonomiesUpdatedEvent in project mica2 by obiba.

the class TaxonomiesResource method updateIndices.

@PUT
@Path("/_index")
@Timed
@RequiresRoles(Roles.MICA_ADMIN)
public Response updateIndices() {
    logger.info("clear and rebuild cache opalTaxonomies url /taxonomies/_index");
    eventBus.post(new TaxonomiesUpdatedEvent());
    return Response.noContent().build();
}
Also used : TaxonomiesUpdatedEvent(org.obiba.mica.micaConfig.event.TaxonomiesUpdatedEvent) Path(javax.ws.rs.Path) Timed(com.codahale.metrics.annotation.Timed) RequiresRoles(org.apache.shiro.authz.annotation.RequiresRoles) PUT(javax.ws.rs.PUT)

Aggregations

TaxonomiesUpdatedEvent (org.obiba.mica.micaConfig.event.TaxonomiesUpdatedEvent)6 Timed (com.codahale.metrics.annotation.Timed)2 PUT (javax.ws.rs.PUT)2 Path (javax.ws.rs.Path)2 RequiresRoles (org.apache.shiro.authz.annotation.RequiresRoles)2 IndexContactsEvent (org.obiba.mica.contact.event.IndexContactsEvent)2 IndexNetworksEvent (org.obiba.mica.network.event.IndexNetworksEvent)2 IndexStudiesEvent (org.obiba.mica.study.event.IndexStudiesEvent)2 JsonPath (com.jayway.jsonpath.JsonPath)1 IndexDatasetsEvent (org.obiba.mica.dataset.event.IndexDatasetsEvent)1 IndexFilesEvent (org.obiba.mica.file.event.IndexFilesEvent)1