Search in sources :

Example 1 with IndexProjectsEvent

use of org.obiba.mica.project.event.IndexProjectsEvent in project mica2 by obiba.

the class MicaConfigResource method updateIndices.

@PUT
@Path("/_index")
@Timed
@RequiresRoles(Roles.MICA_ADMIN)
public Response updateIndices() {
    eventBus.post(new IndexStudiesEvent());
    eventBus.post(new IndexFilesEvent());
    eventBus.post(new IndexContactsEvent());
    eventBus.post(new IndexNetworksEvent());
    eventBus.post(new IndexDatasetsEvent());
    eventBus.post(new IndexProjectsEvent());
    eventBus.post(new TaxonomiesUpdatedEvent());
    return Response.noContent().build();
}
Also used : TaxonomiesUpdatedEvent(org.obiba.mica.micaConfig.event.TaxonomiesUpdatedEvent) IndexStudiesEvent(org.obiba.mica.study.event.IndexStudiesEvent) IndexFilesEvent(org.obiba.mica.file.event.IndexFilesEvent) IndexContactsEvent(org.obiba.mica.contact.event.IndexContactsEvent) IndexNetworksEvent(org.obiba.mica.network.event.IndexNetworksEvent) IndexDatasetsEvent(org.obiba.mica.dataset.event.IndexDatasetsEvent) IndexProjectsEvent(org.obiba.mica.project.event.IndexProjectsEvent) JsonPath(com.jayway.jsonpath.JsonPath) Timed(com.codahale.metrics.annotation.Timed) RequiresRoles(org.apache.shiro.authz.annotation.RequiresRoles)

Aggregations

Timed (com.codahale.metrics.annotation.Timed)1 JsonPath (com.jayway.jsonpath.JsonPath)1 RequiresRoles (org.apache.shiro.authz.annotation.RequiresRoles)1 IndexContactsEvent (org.obiba.mica.contact.event.IndexContactsEvent)1 IndexDatasetsEvent (org.obiba.mica.dataset.event.IndexDatasetsEvent)1 IndexFilesEvent (org.obiba.mica.file.event.IndexFilesEvent)1 TaxonomiesUpdatedEvent (org.obiba.mica.micaConfig.event.TaxonomiesUpdatedEvent)1 IndexNetworksEvent (org.obiba.mica.network.event.IndexNetworksEvent)1 IndexProjectsEvent (org.obiba.mica.project.event.IndexProjectsEvent)1 IndexStudiesEvent (org.obiba.mica.study.event.IndexStudiesEvent)1