public class DefaultContentWidgetManager extends MarketingWidgetManager
This class provides methods to help create, update, delete and retrieve marketing default content based on the page composer widgets using them.
Each widget that requires marketing default content can make use of this superclass to create/read/update/delete default marketing content by referencing the associated content through the use of extended data from the widget.
The following widgets will be using a generated e-marketing spot as well as default content:
The e-marketing spot associated with the widget using default marketing content will managed by the default widget manager superclass.
Constructor and Description |
---|
DefaultContentWidgetManager() |
Modifier and Type | Method and Description |
---|---|
void | createExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aExtData, PageLayoutWidget aWidgetSDO)
This method will be invoked whenever a create action is performed within a widget.
|
void | deleteExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aExtData, PageLayoutWidget aWidgetSDO)
This method will be invoked whenever a delete action is performed within a widget.
|
void | retrieveExtendedData(LayoutType layout, WidgetType widget, PageLayoutWidget widgetSDO, java.lang.Integer[] storePath, java.lang.Integer[] languageIds, SelectionCriteria criteria, java.lang.Object... parameters)
This methods retrieves the URL links for the URL link widget.
|
void | updateExtendedData(LayoutType layout, WidgetType widget, ExtendedDataType extData, PageLayoutWidget aWidgetSDO)
This method will be invoked whenever an update action is performed within a widget.
|
public void createExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aExtData, PageLayoutWidget aWidgetSDO) throws LayoutException
This method will be invoked whenever a create action is performed within a widget. The widget logical object will be passed in from the request, along with it's noun part com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType.
The noun part will be checked to see if it has any references to marketing default content creation, meaning the request from the client has requested that marketing default content be associated with this widget.
If the widget needs to manage associated marketing default content, the noun part com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType passed in will contain a data type of IBM_DefaultMarketingContent. See com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getDataType() .
A marketing web service call will be made to associate the default marketing content based on the information provided, namely the e-marketing spot associated with the widget, the default content type, the internal identifier of the default content to be associated, the sequence of the default content (optional) as well as business context information (store, language, workspaces).
In summary a widget that needs to create an association to itself and marketing default content will need to pass the following information in |
Set the data type in the extended data logical object in com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getDataType()
In the list of name-value pair attributes in com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getAttributes() , which is a list of com.ibm.commerce.pagelayout.facade.datatypes.AttributesType representing a name-value pair.
|
public void updateExtendedData(LayoutType layout, WidgetType widget, ExtendedDataType extData, PageLayoutWidget aWidgetSDO) throws LayoutException
This method will be invoked whenever an update action is performed within a widget. The widget logical object will be passed in from the request, along with it's noun part com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType.
The noun part will be checked to see if it has any references to marketing default content creation, meaning the request from the client has requested that marketing default content be associated with this widget.
If the widget needs to manage associated marketing default content, the noun part com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType passed in will contain a data type of IBM_DefaultMarketingContent. See com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getDataType() .
A marketing web service call will be made to update the associated default marketing content based on the information provided, namely the e-marketing spot associated with the widget, the default content type, the internal identifier of the default content to be associated, the sequence of the default content (optional) as well as business context information (store, language, workspaces).
In summary a widget that needs to update an association to itself and marketing default content will need to pass the following information in |
Set the data type in the extended data logical object in com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getDataType()
In the list of name-value pair attributes in com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getAttributes() , which is a list of com.ibm.commerce.pagelayout.facade.datatypes.AttributesType representing a name-value pair.
|
public void deleteExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aExtData, PageLayoutWidget aWidgetSDO) throws LayoutException
This method will be invoked whenever a delete action is performed within a widget. The widget logical object will be passed in from the request, along with it's noun part com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType.
The noun part will be checked to see if it has any references to marketing default content creation, meaning the request from the client has requested that marketing default content be associated with this widget.
If the widget needs to manage associated marketing default content, the noun part com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType passed in will contain a data type of IBM_DefaultMarketingContent. See com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getDataType() .
A marketing web service call will be made to delete the associated default marketing content based on the information provided, namely the e-marketing spot associated with the widget, the default content type, the internal identifier of the default content to be associated, the sequence of the default content (optional) as well as business context information (store, language, workspaces).
In summary a widget that needs to create an association to itself and marketing default content will need to pass the following information in |
Set the data type in the extended data logical object in com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getDataType()
In the list of name-value pair attributes in com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType#getAttributes() , which is a list of com.ibm.commerce.pagelayout.facade.datatypes.AttributesType representing a name-value pair.
|
public void retrieveExtendedData(LayoutType layout, WidgetType widget, PageLayoutWidget widgetSDO, java.lang.Integer[] storePath, java.lang.Integer[] languageIds, SelectionCriteria criteria, java.lang.Object... parameters) throws LayoutException