info.magnolia.module.templatingkit.dam
Class STKAssetWrapper

java.lang.Object
  extended by info.magnolia.dam.asset.AssetWrapper
      extended by info.magnolia.module.templatingkit.dam.STKAssetWrapper
All Implemented Interfaces:
info.magnolia.dam.asset.Asset

public class STKAssetWrapper
extends info.magnolia.dam.asset.AssetWrapper

Asset wrapper used by STK.

 This wrapper override some Asset properties if they are defined on the Content node.
If the property is not present in the content node, return the-one defined on the Asset.
Overrided properties: - caption - title - description - copyright


Constructor Summary
STKAssetWrapper(info.magnolia.dam.asset.Asset asset, javax.jcr.Node referringNode)
           
 
Method Summary
 String getCaption()
           
 String getCopyright()
           
 String getDescription()
           
 String getTitle()
           
 
Methods inherited from class info.magnolia.dam.asset.AssetWrapper
getAssetProviderIdentifier, getComment, getContentStream, getCustomProperty, getFileExtension, getFileName, getFileSize, getIdentifier, getLanguage, getLastModified, getLink, getMediaType, getMetadata, getMimeType, getName, getPath, getSubject, getTarget, unwrapAsset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STKAssetWrapper

public STKAssetWrapper(info.magnolia.dam.asset.Asset asset,
                       javax.jcr.Node referringNode)
Parameters:
asset -
referringNode - the node that is referring to the asset.
Method Detail

getCaption

public String getCaption()
Specified by:
getCaption in interface info.magnolia.dam.asset.Asset
Overrides:
getCaption in class info.magnolia.dam.asset.AssetWrapper

getTitle

public String getTitle()
Specified by:
getTitle in interface info.magnolia.dam.asset.Asset
Overrides:
getTitle in class info.magnolia.dam.asset.AssetWrapper

getDescription

public String getDescription()
Specified by:
getDescription in interface info.magnolia.dam.asset.Asset
Overrides:
getDescription in class info.magnolia.dam.asset.AssetWrapper

getCopyright

public String getCopyright()
Specified by:
getCopyright in interface info.magnolia.dam.asset.Asset
Overrides:
getCopyright in class info.magnolia.dam.asset.AssetWrapper


Copyright © 2008-2014 Magnolia International Ltd.. All Rights Reserved.