Search in sources :

Example 1 with CacheFlushEvent

use of fi.otavanopisto.muikku.cache.CacheFlushEvent in project muikku by otavanopisto.

the class SystemCacheFlushBackingBean method init.

@RequestAction
public String init() {
    if (sessionController.hasPermission(MuikkuPermissions.ADMIN, null)) {
        logger.warning("Flushing all caches");
        cacheFlushEvent.fire(new CacheFlushEvent());
    }
    return "/index.jsf?faces-redirect=true";
}
Also used : CacheFlushEvent(fi.otavanopisto.muikku.cache.CacheFlushEvent) RequestAction(org.ocpsoft.rewrite.annotation.RequestAction)

Aggregations

CacheFlushEvent (fi.otavanopisto.muikku.cache.CacheFlushEvent)1 RequestAction (org.ocpsoft.rewrite.annotation.RequestAction)1