Class TagCloudCacheManager
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.tagcloud.cache.TagCloudCacheManager
- All Implemented Interfaces:
LogEnabled
,Component
This class handles the cache used by the tag cloud plugin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTagCloud
(String workspaceName, String zoneItemId, Object object) Add tag cloud in cachegetTagCloud
(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
Invalid cache for all workspacesvoid
invalidateTagCloud
(String zoneItemId) Invalid tag cloud for all workspacesMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon role
-
-
Constructor Details
-
TagCloudCacheManager
public TagCloudCacheManager()
-
-
Method Details
-
addTagCloud
Add tag cloud in cache- Parameters:
workspaceName
- The workspace namezoneItemId
- The zone item idobject
- The tag cloud object itself
-
getTagCloud
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
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
Invalid tag cloud for all workspaces- Parameters:
zoneItemId
- the zone item id
-
invalidateCache
Invalid cache for all workspaces
-