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
-
-
Constructor Summary
Constructors Constructor Description TagCloudCacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTagCloud(String workspaceName, String zoneItemId, Object object)
Add tag cloud in cacheObject
getTagCloud(String workspaceName, String zoneItemId)
Get the tag cloud in cache or null if it is not in cache.boolean
hasTagCloud(String workspaceName, String zoneItemId)
Determines if the tag cloud is in cachevoid
invalidateCache()
Invalid cache for all workspacesvoid
invalidateTagCloud(String zoneItemId)
Invalid tag cloud for all workspaces-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
TagCloudCacheManager
public TagCloudCacheManager()
-
-
Method Detail
-
addTagCloud
public void addTagCloud(String workspaceName, String zoneItemId, Object object)
Add tag cloud in cache- Parameters:
workspaceName
- The workspace namezoneItemId
- The zone item idobject
- 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 namezoneItemId
- 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 namezoneItemId
- 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
-
-