Class DefaultServicesAssignmentHandler.ViewCache

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ViewCacheValue>
org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ViewCache
All Implemented Interfaces:
Serializable, Cloneable, Map<String,org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ViewCacheValue>
Enclosing class:
DefaultServicesAssignmentHandler

protected static class DefaultServicesAssignmentHandler.ViewCache extends HashMap<String,org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ViewCacheValue>
The cache is a HashMap of String + a date
See Also:
  • Constructor Details

    • ViewCache

      public ViewCache(long sourceLastModified)
      Build the cache
      Parameters:
      sourceLastModified - The last modification date
  • Method Details

    • isValid

      public boolean isValid(long newSourceLastModified)
      Determine if the cache is valid
      Parameters:
      newSourceLastModified - The new last modification date
      Returns:
      true if the cache is still valid