|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssetTaggingService
Provides core tagging support systems. Note that add, update, and delete methods are smart enough to not fail if passed a non-tagged asset.
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. |
boolean |
isTagged(com.fatwire.assetapi.data.AssetId id)
Returns true if an asset is tagged, false otherwise |
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. |
Method Detail |
---|
Collection<Tag> getTags(com.fatwire.assetapi.data.AssetId id)
id
- asset id
Collection<Tag> getTags(Collection<com.fatwire.assetapi.data.AssetId> ids)
ids
- asset ids, some of which may be tagged
void clearCacheForTag(Collection<Tag> tags)
tags
- tagsvoid recordCacheDependency(Tag tag)
tag
- tagvoid addAsset(com.fatwire.assetapi.data.AssetId id)
id
- asset with tagvoid updateAsset(com.fatwire.assetapi.data.AssetId id)
id
- asset with tagvoid deleteAsset(com.fatwire.assetapi.data.AssetId id)
id
- tagged assetCollection<com.fatwire.assetapi.data.AssetId> lookupTaggedAssets(Tag tag)
tag
- tag to use to look up assets
boolean isTagged(com.fatwire.assetapi.data.AssetId id)
id
- id of asset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |