info.magnolia.module.templatingkit.dam
Interface DAMHandler

All Known Implementing Classes:
AbstractHandler, AbstractInternalContentDAMHandler, DMSDAMHandler, InternalContentDAMHandler

public interface DAMHandler

Author:
tmiyar

Method Summary
 Asset getAsset(info.magnolia.cms.core.Content node, String nodeDataPrefix)
          The descriptor will contain the link for the asset and whatever parameters you need
 Asset getAssetByKey(String key)
           
 Collection getControls()
          controls corresponding to each asset
 String getDamSelectorOptionLabel()
          Label defined for the container control (type dam)
 String getName()
           
 boolean isEnabled()
           
 void setDAMSupport(DAMSupport support)
          Set while a handler is added the DAMSupport object
 

Method Detail

getAsset

Asset getAsset(info.magnolia.cms.core.Content node,
               String nodeDataPrefix)
               throws AssetNotFoundException,
                      DAMException
The descriptor will contain the link for the asset and whatever parameters you need

Throws:
AssetNotFoundException
DAMException

getAssetByKey

Asset getAssetByKey(String key)
                    throws AssetNotFoundException,
                           DAMException
Throws:
AssetNotFoundException
DAMException

isEnabled

boolean isEnabled()

getControls

Collection getControls()
controls corresponding to each asset


getDamSelectorOptionLabel

String getDamSelectorOptionLabel()
Label defined for the container control (type dam)


getName

String getName()

setDAMSupport

void setDAMSupport(DAMSupport support)
Set while a handler is added the DAMSupport object



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