Class TagCloudCacheManager

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.tagcloud.cache.TagCloudCacheManager
All Implemented Interfaces:
LogEnabled, Component

public class TagCloudCacheManager extends AbstractLogEnabled implements Component
This class handles the cache used by the tag cloud plugin
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon role
  • Constructor Details

  • Method Details

    • addTagCloud

      public void addTagCloud(String workspaceName, String zoneItemId, Object object)
      Add tag cloud in cache
      Parameters:
      workspaceName - The workspace name
      zoneItemId - The zone item id
      object - The tag cloud object itself
    • getTagCloud

      public Object getTagCloud(String workspaceName, String zoneItemId)
      Get the tag cloud in cache or null if it is not in cache.
      Parameters:
      workspaceName - The workspace name
      zoneItemId - The zone item id
      Returns:
      The tag cloud
    • hasTagCloud

      public boolean hasTagCloud(String workspaceName, String zoneItemId)
      Determines if the tag cloud is in cache
      Parameters:
      workspaceName - The workspace name
      zoneItemId - The zone item id
      Returns:
      true if the tag cloud is in cache
    • invalidateTagCloud

      public void invalidateTagCloud(String zoneItemId)
      Invalid tag cloud for all workspaces
      Parameters:
      zoneItemId - the zone item id
    • invalidateCache

      public void invalidateCache()
      Invalid cache for all workspaces