@Path( "/mondrianSchemaCache" )
@Produces( { MediaType.TEXT_PLAIN, MediaType.APPLICATION_JSON } )
@Facet ( name = "Unsupported" )
public Response flushMondrianSchemaCache() {
if ( canAdminister() ) {
IPentahoSession pentahoSession = PentahoSessionHolder.getSession();
if ( SecurityHelper.getInstance().isPentahoAdministrator( pentahoSession ) ) {
// Flush the catalog helper (legacy)
IMondrianCatalogService mondrianCatalogService =
PentahoSystem.get( IMondrianCatalogService.class, "IMondrianCatalogService", pentahoSession ); //$NON-NLS-1$
mondrianCatalogService.reInit( pentahoSession );