info.magnolia.module.templatingkit.dam.assets
Class AssetWithOverridingMetaData

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

public class AssetWithOverridingMetaData
extends AssetWrapper

An asset reading meta data information like caption, description, .. from an other asset first.

Version:
$Id$
Author:
pbracher

Field Summary
 
Fields inherited from class info.magnolia.module.templatingkit.dam.assets.AssetWrapper
asset
 
Constructor Summary
AssetWithOverridingMetaData(Asset descriptor, Asset metaData)
           
 
Method Summary
 String getCaption()
           
 String getCopyright()
           
 String getDescription()
           
protected  Asset wrapVariation(Asset assetVariaton)
           
 
Methods inherited from class info.magnolia.module.templatingkit.dam.assets.AssetWrapper
getHeight, getLink, getMimeType, getName, getTitle, getVariation, getWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetWithOverridingMetaData

public AssetWithOverridingMetaData(Asset descriptor,
                                   Asset metaData)
Method Detail

getCaption

public String getCaption()
Specified by:
getCaption in interface Asset
Overrides:
getCaption in class AssetWrapper

getCopyright

public String getCopyright()
Specified by:
getCopyright in interface Asset
Overrides:
getCopyright in class AssetWrapper

getDescription

public String getDescription()
Specified by:
getDescription in interface Asset
Overrides:
getDescription in class AssetWrapper

wrapVariation

protected Asset wrapVariation(Asset assetVariaton)
Specified by:
wrapVariation in class AssetWrapper


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