|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.dam.asset.AssetWrapper
public class AssetWrapper
Wrapper used for decoration, delegates method calls to a target asset.
Constructor Summary | |
---|---|
AssetWrapper(Asset target)
|
Method Summary | |
---|---|
String |
getAssetProviderIdentifier()
|
String |
getCaption()
|
String |
getComment()
|
InputStream |
getContentStream()
|
String |
getCopyright()
|
Object |
getCustomProperty(String propertyName)
Give the ability to access a custom property from the Asset API. |
String |
getDescription()
|
String |
getFileExtension()
|
String |
getFileName()
|
long |
getFileSize()
|
String |
getIdentifier()
This identifier is the key used by the DamIdParser in order to be able to identify
both:the Asset the Asset Provider. |
String |
getLanguage()
|
Calendar |
getLastModified()
|
String |
getLink()
|
String |
getMediaType()
|
AssetMetadata |
getMetadata(String metaDataType)
|
String |
getMimeType()
|
String |
getName()
|
String |
getPath()
|
String |
getSubject()
|
Asset |
getTarget()
|
String |
getTitle()
|
static Asset |
unwrapAsset(Asset asset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetWrapper(Asset target)
Method Detail |
---|
public Asset getTarget()
public String getName()
getName
in interface Asset
public String getLanguage()
getLanguage
in interface Asset
public String getIdentifier()
Asset
DamIdParser
in order to be able to identify
both:
getIdentifier
in interface Asset
public String getTitle()
getTitle
in interface Asset
public String getMediaType()
getMediaType
in interface Asset
MediaType
.public String getSubject()
getSubject
in interface Asset
public String getDescription()
getDescription
in interface Asset
public String getCaption()
getCaption
in interface Asset
public String getCopyright()
getCopyright
in interface Asset
public String getMimeType()
getMimeType
in interface Asset
public long getFileSize()
getFileSize
in interface Asset
public InputStream getContentStream()
getContentStream
in interface Asset
InputStream
.public AssetMetadata getMetadata(String metaDataType) throws AssetMetadataTypeNotSupportedException
getMetadata
in interface Asset
AssetMetadataTypeNotSupportedException
public String getLink() throws DamException
getLink
in interface Asset
DamException
public String getPath()
getPath
in interface Asset
public Calendar getLastModified()
getLastModified
in interface Asset
public String getFileExtension()
getFileExtension
in interface Asset
public String getFileName()
getFileName
in interface Asset
public String getComment()
getComment
in interface Asset
public String getAssetProviderIdentifier()
getAssetProviderIdentifier
in interface Asset
public Object getCustomProperty(String propertyName)
Asset
getCustomProperty
in interface Asset
public static Asset unwrapAsset(Asset asset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |