Interface MetadataAwareAsset
-
- All Superinterfaces:
BaseAsset
,FolderContainedAsset
,NamedAsset
,PermissionsCapableAsset
- All Known Subinterfaces:
Block
,FeedBlock
,File
,Folder
,IndexBlock
,Page
,PublishableAsset
,Symlink
,TextBlock
,TwitterFeedBlock
,XHTMLDataDefinitionBlock
,XMLBlock
public interface MetadataAwareAsset extends FolderContainedAsset
Identifies that an asset is capable of carrying metadata.- Since:
- 4.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getLabel()
java.util.List<FolderContainedAsset>
getLinkingAssets()
Metadata
getMetadata()
Get the asset's metadataMetadataSet
getMetadataSet()
java.lang.String
getMetadataSetId()
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.BaseAsset
getAssetId, getAssetType, getIdentifer
-
Methods inherited from interface com.hannonhill.cascade.api.asset.home.FolderContainedAsset
getCreatedBy, getCreatedOn, getFolderOrder, getIdentifier, getLastModified, getLastModifiedBy, getParentFolder, getParentFolderIdentifier, getPath, getSite, getSiteId, getSiteName, getTags, isHideSystemName, setHideSystemName, setParentFolder, setParentFolderIdentifier
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.NamedAsset
getName, setName
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.PermissionsCapableAsset
isCurrentUserCanRead, isCurrentUserCanWrite, isUserCanRead, isUserCanWrite
-
-
-
-
Method Detail
-
getMetadata
Metadata getMetadata()
Get the asset's metadata- Returns:
- an object representing the metadata, never null.
-
getMetadataSet
MetadataSet getMetadataSet()
- Returns:
- Returns the asset's metadata set
-
getMetadataSetId
java.lang.String getMetadataSetId()
-
getLinkingAssets
java.util.List<FolderContainedAsset> getLinkingAssets()
- Returns:
- Returns assets that link to this asset in their content through [system-asset] links, links in XML/XHTML and data definition chooser fields.
-
getLabel
java.lang.String getLabel()
- Specified by:
getLabel
in interfaceNamedAsset
- Returns:
- Returns asset's label, which is asset's display name, title or name, whichever one is first in that order
-
-