1 package org.apache.slide.security; 2 3 import java.util.Map ; 4 5 class ActionsCache { 6 7 Map aggregation; 9 Map aggregationClosure; 11 boolean hasLoadingFailed; 12 13 ActionsCache() { 14 super(); 15 } 16 17 void invalidate() { 18 hasLoadingFailed = false; 19 aggregation = null; 20 aggregationClosure = null; 21 } 22 23 void fail() { 24 aggregation = null; 25 aggregationClosure = null; 26 hasLoadingFailed = true; 27 } 28 29 boolean hasBeenLoaded() { 30 return aggregation != null || hasLoadingFailed; 31 } 32 33 public boolean hasLoadingFailed() { 34 return hasLoadingFailed; 35 } 36 37 } 38 | Popular Tags |