com.ibm.commerce.pagelayout.widget.management.impl

Class ProductRecommendationWidgetManager

  • All Implemented Interfaces:
    WidgetManager


    public class ProductRecommendationWidgetManager
    extends DefaultContentAndWebActivityWidgetManager

    This is the widget manager associates default marketing content of the catalog entry type for the catalog entry recommendation page composer widget.

    It creates, updates, deletes and gets default marketing content associated with an e-marketing spot belonging to a widget within a layout.

    If configured to use a web activity to populate this widget, this class will manage the e-marketing spot associated with the widget with its associated web activity.

    See Also:
    DefaultContentWidgetManager, DefaultContentAndWebActivityWidgetManager
    • Constructor Detail

      • ProductRecommendationWidgetManager

        public ProductRecommendationWidgetManager()
    • Method Detail

      • validateCreateExtendedData

        public java.util.List<ClientError> validateCreateExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType layout,
                                                                      com.ibm.commerce.pagelayout.facade.datatypes.WidgetType widget,
                                                                      com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType extendedData,
                                                                      com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
                                                               throws LayoutException

        This method will perform validation for this widget.

        Specified by:
        validateCreateExtendedData in interface WidgetManager
        Overrides:
        validateCreateExtendedData in class DefaultWidgetManager
        Parameters:
        layout - The layout object to which the widget is being upated.
        widget - The widget where the extended data is being deleted.
        extendedData - The extended data being deleted from the widget.
        aWidgetSDO - The physical data object object of the widget.
        Returns:
        A list of client errors that indicate validation errors. Null, if there are no errors.
        Throws:
        LayoutException - This exception is to provide the implementation classes the convenience of throwing an exception instead of returning a list of application errors.
        See Also:
        com.ibm.commerce.pagelayout.widget.management.spi.WidgetManager#validateCreateExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType, com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType)
      • validateDeleteExtendedData

        public java.util.List<ClientError> validateDeleteExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType layout,
                                                                      com.ibm.commerce.pagelayout.facade.datatypes.WidgetType widget,
                                                                      com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType extendedData,
                                                                      com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
                                                               throws LayoutException

        This method will perform validation for this widget.

        Specified by:
        validateDeleteExtendedData in interface WidgetManager
        Overrides:
        validateDeleteExtendedData in class DefaultWidgetManager
        Parameters:
        layout - The layout object to which the widget is being upated.
        widget - The widget where the extended data is being deleted.
        extendedData - The extended data being deleted from the widget.
        aWidgetSDO - The physical data object object of the widget.
        Returns:
        A list of client errors that indicate validation errors. Null, if there are no errors.
        Throws:
        LayoutException - This exception is to provide the implementation classes the convenience of throwing an exception instead of returning a list of application errors.
        See Also:
        com.ibm.commerce.pagelayout.widget.management.spi.WidgetManager#validateDeleteExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType, com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType)