AssetDecorator
instead - included here for backwards compatibility.@Deprecated public class LegacyAssetWrapper extends info.magnolia.dam.api.AssetDecorator implements Asset
Constructor and Description |
---|
LegacyAssetWrapper(info.magnolia.dam.api.Asset target)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getAssetProviderIdentifier()
Deprecated.
|
Object |
getCustomProperty(String propertyName)
Deprecated.
Give the ability to access a custom property from the Asset API.
|
String |
getFileExtension()
Deprecated.
|
String |
getIdentifier()
Deprecated.
This identifier is the key used by the
DamIdParser in order to be able to identify
both:the Asset the Asset Provider. |
String |
getMediaType()
Deprecated.
|
AssetMetadata |
getMetadata(String metaDataType)
Deprecated.
|
<M extends info.magnolia.dam.api.metadata.AssetMetadata> |
supports(Class<M> metaDataType)
Deprecated.
|
getAssetProvider, getCaption, getComment, getContentStream, getCopyright, getCreated, getDecorated, getDescription, getFileName, getFileSize, getItemKey, getLanguage, getLastModified, getLink, getMetadata, getMimeType, getName, getParent, getPath, getSubject, getTitle, isAsset, isFolder, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCaption, getComment, getContentStream, getCopyright, getDescription, getFileName, getFileSize, getLanguage, getLastModified, getLink, getMimeType, getName, getPath, getSubject, getTitle
public LegacyAssetWrapper(info.magnolia.dam.api.Asset target)
public String getIdentifier()
Asset
DamIdParser
in order to be able to identify
both:public String getMediaType()
MediaType
.public String getAssetProviderIdentifier()
public AssetMetadata getMetadata(String metaDataType) throws AssetMetadataTypeNotSupportedException
AssetMetadataTypeNotSupportedException
public String getFileExtension()
public Object getCustomProperty(String propertyName)
Asset
public <M extends info.magnolia.dam.api.metadata.AssetMetadata> boolean supports(Class<M> metaDataType)
supports
in interface info.magnolia.dam.api.Asset
supports
in class info.magnolia.dam.api.AssetDecorator
Copyright © 2017 Magnolia International Ltd.. All rights reserved.