use of org.apache.shiro.authz.annotation.RequiresRoles 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();
}
Aggregations