package controllers;

import java.util.Set;

import org.sagebionetworks.bridge.services.CacheService;

import play.mvc.Result;

public class CacheController extends BaseController {

    private CacheService cacheService;
    
    public void setCacheService(CacheService cacheService) {
        this.cacheService = cacheService;
    }
    
    public Result listItems() throws Exception {
        //getAuthenticatedAdminSession();
        
        Set<String> keys = cacheService.listItems();
        return okResult(keys);
    }
    
    public Result removeItem(String cacheKey) {
        //getAuthenticatedAdminSession();
        
        cacheService.removeItem(cacheKey);
        return ok("Item removed from cache.");
    }

}

@@ -383,34 +383,32 @@
 ption %7B%0A        
-//
 getAuthenticated
@@ -587,10 +587,8 @@
     
-//
 getA

Enable security checks again