public interface ContentSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
ContentState |
getContent(java.lang.String pElementID,
java.lang.String pElementType,
java.lang.String pPromoType)
This will populate an
ContentState object with all the
necessary information required based on the elemntID, ElementType. |
ContentState |
getContentWithObjectParam(java.lang.String pElementID,
java.lang.String pElementType,
java.lang.String pPromoType,
java.lang.Object pAdditionalParams)
This will populate an
ContentState object with all the
necessary information required based on the elemntID, ElementType, promotionType
and any additional information contained in pAdditionalParams. |
static final java.lang.String CLASS_VERSION
ContentState getContent(java.lang.String pElementID, java.lang.String pElementType, java.lang.String pPromoType) throws atg.repository.editingtemplate.TemplateException
ContentState
object with all the
necessary information required based on the elemntID, ElementType. These
params are not necessary but can be used if the content source object is
to be reused for multiple elements or a specific element with a specific IDthe
- ID of the element requesting contentthe
- element type of the element requesting contenta
- PromotionTemplateException
if there is a problem
obtaining the necessary information.atg.repository.editingtemplate.TemplateException
ContentState getContentWithObjectParam(java.lang.String pElementID, java.lang.String pElementType, java.lang.String pPromoType, java.lang.Object pAdditionalParams) throws atg.repository.editingtemplate.TemplateException
ContentState
object with all the
necessary information required based on the elemntID, ElementType, promotionType
and any additional information contained in pAdditionalParams. These
params are not necessary but can be used if the content source object is
to be reused for multiple elements or a specific element with a specific IDpElementID
- the ID of the element requesting contentpElementType
- the element type of the element requesting contentpPromoType
- the promotion typepAdditionalParams
- object containing any additional info required
to build the content.a
- PromotionTemplateException
if there is a problem
obtaining the necessary information.atg.repository.editingtemplate.TemplateException