public class MarketingWidgetManager extends DefaultWidgetManager
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger | LOGGER
The logger for this class.
|
Constructor and Description |
---|
MarketingWidgetManager() |
Modifier and Type | Method and Description |
---|---|
void | create(LayoutType aLayout, WidgetType aWidget)
This method creates E-Marketing spot for widget if requireEMS widget property is set to true.
|
protected java.lang.String | createEMarketingSpotForWidget(java.lang.String layoutId, java.lang.String widgetId, java.lang.String widgetDefId, java.util.List widgetPropertyList, boolean createVisibleEmarketingSpot)
Creates a E-Marketing Spot for the widget.
|
protected java.lang.String | createEMarketingSpotNameForWidget(java.lang.String widgetIdentifier, java.lang.String widgetId)
Generates the unique name of the E-Marketing Spot created for the widget.
|
void | createExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aExtendedData, PageLayoutWidget aWidgetSDO)
This method creates the widget display title if display title extended data is passed in.
|
protected java.lang.String | createLocalEMarketingSpotForWidgetInExtendedSite(java.lang.String eSpotName, java.lang.String widgetId, java.lang.String widgetDefId, java.util.List widgetPropertyList)
Creates a E-Marketing Spot for the widget for an extended site.
|
void | delete(LayoutType aLayout, WidgetType aWidget, PageLayoutWidget aWidgetSDO)
This method deletes the corresponding marketing spot of the widget if requireEMS property of the widget is set to true.
|
protected void | deleteEMarketingSpotForWidget(WidgetType aWidget, PageLayoutWidget aWidgetSDO)
Deletes the E-Marketing Spot for the widget.
|
void | deleteExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aextendedData, PageLayoutWidget aWidgetSDO)
This method deletes the extended data which is common to all widgets with marketing implementation.
|
protected java.lang.String | generateMarketingContentName(java.lang.String widgetId)
Generates a unique name of the marketing content used by the widget.
|
protected java.lang.String | getActivityId(ExtendedDataType aExtData)
This method will check the extended data passed in for the activity ID of the activity being managed.
|
protected java.lang.String | getEMSOverrideId(PageLayoutWidget aWidgetSDO)
This method will return the local e-marketing spot ID for the extended site being managed.
|
protected boolean | isInheritedLayout(ExtendedDataType aExtData)
This method will check for a flag passed in from the client whether this is an inherited layout being managed.
|
void | retrieveExtendedData(LayoutType aLayout, WidgetType aWidget, PageLayoutWidget aWidgetSDO, java.lang.Integer[] aStorePath, java.lang.Integer[] aLanguageIds, SelectionCriteria aCriteria, java.lang.Object... parameters)
This methods retrieves display title extended data.
|
protected void | retrieveWidgetDisplayTitle(WidgetType aWidget, PageLayoutWidget aWidgetSDO, java.lang.Integer[] aStoreIds, java.lang.Integer[] aLanguageIds)
Populates the extended data for widget display title.
|
void | undo(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager)
This method is called when undo is invoked.
|
protected void | undoDeleteWidget(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager)
This method is called to undo the specified widget which has been deleted in the layout for this task group.
|
protected void | undoNewWidget(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager)
This method is called to undo the specified widget which is NEW in the layout for this task group.
|
protected void | undoUpdateInheritedLayout(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager)
This method is called to undo the specified widget when the inherited layout is UPDATED for this task group.
|
protected void | undoUpdateLayout(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager)
This method is called to undo the specified widget when the layout is update for this task group.
|
void | updateExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aExtendedData, PageLayoutWidget aWidgetSDO)
This method updates the widget display title extended data.
|
protected java.lang.String | updateWidgetDisplayTitle(WidgetType widget, ExtendedDataType extendedData, PageLayoutWidget widgetSDO)
This methods creates or updates the display title for the widget.
|
protected boolean | useLocalEspotForExtendedSite(ExtendedDataType aExtData)
This method will check the extended data passed in for a flag indicating whether the web activity was managed from the local web activity grid or the inherited web activity grid.
|
protected static final java.util.logging.Logger LOGGER
public void create(LayoutType aLayout, WidgetType aWidget) throws LayoutException
public void createExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aExtendedData, PageLayoutWidget aWidgetSDO) throws LayoutException
protected java.lang.String createEMarketingSpotForWidget(java.lang.String layoutId, java.lang.String widgetId, java.lang.String widgetDefId, java.util.List widgetPropertyList, boolean createVisibleEmarketingSpot) throws LayoutException
protected void deleteEMarketingSpotForWidget(WidgetType aWidget, PageLayoutWidget aWidgetSDO) throws LayoutException
protected java.lang.String createEMarketingSpotNameForWidget(java.lang.String widgetIdentifier, java.lang.String widgetId)
public void updateExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aExtendedData, PageLayoutWidget aWidgetSDO) throws LayoutException
public void deleteExtendedData(LayoutType aLayout, WidgetType aWidget, ExtendedDataType aextendedData, PageLayoutWidget aWidgetSDO) throws LayoutException
public void delete(LayoutType aLayout, WidgetType aWidget, PageLayoutWidget aWidgetSDO) throws LayoutException
public void retrieveExtendedData(LayoutType aLayout, WidgetType aWidget, PageLayoutWidget aWidgetSDO, java.lang.Integer[] aStorePath, java.lang.Integer[] aLanguageIds, SelectionCriteria aCriteria, java.lang.Object... parameters) throws LayoutException
protected void retrieveWidgetDisplayTitle(WidgetType aWidget, PageLayoutWidget aWidgetSDO, java.lang.Integer[] aStoreIds, java.lang.Integer[] aLanguageIds)
protected java.lang.String generateMarketingContentName(java.lang.String widgetId)
protected java.lang.String updateWidgetDisplayTitle(WidgetType widget, ExtendedDataType extendedData, PageLayoutWidget widgetSDO) throws LayoutException
protected boolean useLocalEspotForExtendedSite(ExtendedDataType aExtData)
This method will check the extended data passed in for a flag indicating whether the web activity was managed from the local web activity grid or the inherited web activity grid.
protected java.lang.String getActivityId(ExtendedDataType aExtData)
This method will check the extended data passed in for the activity ID of the activity being managed.
protected boolean isInheritedLayout(ExtendedDataType aExtData)
This method will check for a flag passed in from the client whether this is an inherited layout being managed.
protected java.lang.String getEMSOverrideId(PageLayoutWidget aWidgetSDO)
This method will return the local e-marketing spot ID for the extended site being managed.
public void undo(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager) throws LayoutException
protected void undoNewWidget(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager) throws LayoutException
protected void undoDeleteWidget(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager) throws LayoutException
protected void undoUpdateLayout(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager) throws LayoutException
protected void undoUpdateInheritedLayout(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager) throws LayoutException
protected java.lang.String createLocalEMarketingSpotForWidgetInExtendedSite(java.lang.String eSpotName, java.lang.String widgetId, java.lang.String widgetDefId, java.util.List widgetPropertyList) throws LayoutException