public class TagCloudCacheManager extends AbstractLogEnabled implements Component
Modifier and Type | Field and Description |
---|---|
private Map<String,Map<String,Object>> |
_objects |
static String |
ROLE
Avalon role
|
Constructor and Description |
---|
TagCloudCacheManager() |
Modifier and Type | Method and Description |
---|---|
void |
addTagCloud(String workspaceName,
String zoneItemId,
Object object)
Add tag cloud in cache
|
Object |
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 cache
|
void |
invalidateCache()
Invalid cache for all workspaces
|
void |
invalidateTagCloud(String zoneItemId)
Invalid tag cloud for all workspaces
|
getLogger, setLogger
public TagCloudCacheManager()
public void addTagCloud(String workspaceName, String zoneItemId, Object object)
workspaceName
- The workspace namezoneItemId
- The zone item idobject
- The tag cloud object itselfpublic Object getTagCloud(String workspaceName, String zoneItemId)
workspaceName
- The workspace namezoneItemId
- The zone item idpublic boolean hasTagCloud(String workspaceName, String zoneItemId)
workspaceName
- The workspace namezoneItemId
- The zone item idpublic void invalidateTagCloud(String zoneItemId)
zoneItemId
- the zone item idpublic void invalidateCache()