|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.gst.foundation.tagging.db.TableTaggingServiceImpl
public final class TableTaggingServiceImpl
Database-backed implementation of AsseTaggingService
Field Summary | |
---|---|
static String |
TABLE_ACL_LIST
|
static String |
TAGREGISTRY_TABLE
|
Constructor Summary | |
---|---|
TableTaggingServiceImpl(COM.FutureTense.Interfaces.ICS ics)
|
Method Summary | |
---|---|
void |
addAsset(com.fatwire.assetapi.data.AssetId id)
Handle adding a tagged asset. |
void |
clearCacheForTag(Collection<Tag> tags)
Clear any pagelets containing the specified tags. |
void |
deleteAsset(com.fatwire.assetapi.data.AssetId id)
Handle deleting tagged asset. |
Collection<Tag> |
getTags(com.fatwire.assetapi.data.AssetId id)
Look up the tags for an asset. |
Collection<Tag> |
getTags(Collection<com.fatwire.assetapi.data.AssetId> ids)
Get the tags corresponding to a whole collection of AssetIds. |
void |
install()
|
boolean |
isInstalled()
|
boolean |
isTagged(com.fatwire.assetapi.data.AssetId id)
Returns true if an asset is tagged, false otherwise |
boolean |
isTagged(com.fatwire.gst.foundation.tagging.db.TableTaggingServiceImpl.TaggedAsset ta)
|
Collection<com.fatwire.assetapi.data.AssetId> |
lookupTaggedAssets(Tag tag)
Return a collection of assets that are tagged with the specified tag. |
void |
recordCacheDependency(Tag tag)
Record the specified tag as a dependency on the current pagelet |
void |
updateAsset(com.fatwire.assetapi.data.AssetId id)
Handle updating tagged asset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String TAGREGISTRY_TABLE
public static String TABLE_ACL_LIST
Constructor Detail |
---|
public TableTaggingServiceImpl(COM.FutureTense.Interfaces.ICS ics)
Method Detail |
---|
public void install()
public boolean isInstalled()
public void recordCacheDependency(Tag tag)
AssetTaggingService
recordCacheDependency
in interface AssetTaggingService
tag
- tagpublic void clearCacheForTag(Collection<Tag> tags)
AssetTaggingService
clearCacheForTag
in interface AssetTaggingService
tags
- tagspublic void addAsset(com.fatwire.assetapi.data.AssetId id)
AssetTaggingService
addAsset
in interface AssetTaggingService
id
- asset with tagpublic void updateAsset(com.fatwire.assetapi.data.AssetId id)
AssetTaggingService
updateAsset
in interface AssetTaggingService
id
- asset with tagpublic void deleteAsset(com.fatwire.assetapi.data.AssetId id)
AssetTaggingService
deleteAsset
in interface AssetTaggingService
id
- tagged assetpublic Collection<Tag> getTags(com.fatwire.assetapi.data.AssetId id)
AssetTaggingService
getTags
in interface AssetTaggingService
id
- asset id
public Collection<Tag> getTags(Collection<com.fatwire.assetapi.data.AssetId> ids)
AssetTaggingService
getTags
in interface AssetTaggingService
ids
- asset ids, some of which may be tagged
public Collection<com.fatwire.assetapi.data.AssetId> lookupTaggedAssets(Tag tag)
AssetTaggingService
lookupTaggedAssets
in interface AssetTaggingService
tag
- tag to use to look up assets
public boolean isTagged(com.fatwire.assetapi.data.AssetId id)
AssetTaggingService
isTagged
in interface AssetTaggingService
id
- id of asset
public boolean isTagged(com.fatwire.gst.foundation.tagging.db.TableTaggingServiceImpl.TaggedAsset ta)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |