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

Class ChangeMarketingContentPartMediator

    • Constructor Detail

      • ChangeMarketingContentPartMediator

        public ChangeMarketingContentPartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method performs no actions as marketing content creation is done by the change marketing content mediator.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object.
        aNounPart - The logical MarketingContentType SDO business object.
        Throws:
        AbstractApplicationException
      • update

        public void update(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method updates the physical data container with the modified Collateral object. It sets all the marketing content data, including any provided user data, from the logical marketing content noun.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object to update.
        aNounPart - The logical MarketingContentType SDO business object to update.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method performs no actions as marketing content deletion is done by the change marketing content mediator.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object.
        aNounPart - The logical MarketingContentType SDO business object.
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the xpath for the main marketing content noun part.
        Returns:
        The xpath for the main marketing content noun part.
      • validateCreate

        public java.util.List validateCreate(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method performs no checking as the validation is done by the Change Marketing Content mediator.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object.
        aNounPart - The logical MarketingContentType SDO business object.
        Returns:
        This method returns null.
        Throws:
        DataMediatorException
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method checks if the logical marketing content noun can be updated. If changing the name, it verifies that the name of the marketing content does not already exist in the store. It also checks if the required fields (template name, subject and content) are present, and that string fields are the appropriate length. If the noun cannot be updated, the appropriate error exception is added to the list of exceptions to be returned to the caller.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object.
        aNounPart - The logical MarketingContentType SDO business object.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise it returns an empty list.
        Throws:
        DataMediatorException
      • validateDelete

        public java.util.List validateDelete(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method performs no checking as the validation is done by the Change Marketing Content mediator.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object.
        aNounPart - The logical MarketingContentType SDO business object.
        Returns:
        This method returns null.
        Throws:
        DataMediatorException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun,
                                                   java.lang.Object aNounPart)
                                            throws DataMediatorException
        This method returns the Collateral physical SDO from the PhysicalDataContainer that was created in the ChangeMarketingContentMediator mediator.
        Parameters:
        aNoun - The logical MarketingContentType SDO.
        aNounPart - The logical MarketingContentType SDO.
        Returns:
        This method returns the Collateral object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException