com.ibm.commerce.pagelayout.facade.server.services.dataaccess.bom.mediator

Class ChangeLayoutWidgetPartMediator

    • Constructor Detail

      • ChangeLayoutWidgetPartMediator

        public ChangeLayoutWidgetPartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method creates the widget part for the layout.
        Parameters:
        aNoun - The logical LayoutType SDO business object to create.
        aNounPart - The logic AuthoringWidgetType SDO business object to create.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object noun,
                           java.lang.Object nounPart)
                    throws AbstractApplicationException
        This method deletes the widget from the layout by deleting the widget's properties, slots and removing it from the parent widget.
        Parameters:
        noun - The logical LayoutType SDO business object.
        nounPart - The logical AuthoringWidgetType SDO business object.
        Throws:
        AbstractApplicationException
      • update

        public void update(java.lang.Object noun,
                           java.lang.Object nounPart)
                    throws AbstractApplicationException
        This method updates the widget's properties. Based on the properties provided, the method identifies the properties to delete, the newly added properties and the properties that need to be updated.
        Parameters:
        noun - The logical LayoutType SDO business object to update.
        nounPart - The logical AuthoringWidgetType SDO business object to update.
        Throws:
        AbstractApplicationException
      • validateChange

        public java.util.List validateChange(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws AbstractApplicationException
        This method checks if the logical Widget noun part can be updated. If the noun cannot be updated, the appropriate error exception is added to the list of exceptions to be returned to the caller.
        Parameters:
        noun - The logical LayoutType SDO business object to validate.
        nounPart - The logical AuthoringWidgetType SDO business object.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        AbstractApplicationException
      • validateCreate

        public java.util.List validateCreate(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws AbstractApplicationException
        This method checks if the logical widget noun part can be created. If the noun cannot be created, the appropriate error exception is added to the list of exceptions to be returned to the caller.
        Parameters:
        noun - The logical LayoutType SDO business object to validate.
        nounPart - The logical AuthoringWidgetType SDO business object to validate.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        AbstractApplicationException
      • validateDelete

        public java.util.List validateDelete(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws AbstractApplicationException
        This method performs custom business logic validation when deleting a noun part. This implementation blocks the request from proceeding.
        Parameters:
        noun - The noun to perform the operation on.
        nounPart - The part of the noun to delete.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        AbstractApplicationException - A problem occurred while adding the noun part.