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

Class ChangeMarketingEmailTemplatePartMediator

    • Constructor Detail

      • ChangeMarketingEmailTemplatePartMediator

        public ChangeMarketingEmailTemplatePartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method performs no actions as the marketing e-mail template creation is done by the change marketing e-mail template mediator.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO business object.
        aNounPart - The logical MarketingEmailTemplateType 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 Emlmsg object. It sets all the e-mail template data, including any provided user data, from the logical marketing e-mail template noun.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO business object to update.
        aNounPart - The logical MarketingEmailTemplateType 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 the marketing e-mail template deletion is done by the change marketing e-mail template mediator.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO business object.
        aNounPart - The logical MarketingEmailTemplateType SDO business object.
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the xpath for the main marketing e-mail template noun part.
        Returns:
        The xpath for the main marketing e-mail template 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 E-mail Template mediator.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO business object.
        aNounPart - The logical MarketingEmailTemplateType 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 e-mail template noun can be updated. If changing the name, it verifies that the name of the e-mail template does not already exist in the store. It 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 MarketingEmailTemplateType SDO business object.
        aNounPart - The logical MarketingEmailTemplateType SDO business object.
        Returns:
        This method returns a list of ApplicationErrors if there are any errors, otherwise the list will be empty.
        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 E-mail Template mediator.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO business object.
        aNounPart - The logical MarketingEmailTemplateType 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 Emlmsg physical SDO from the PhysicalDataContainer that was created in the ChangeMarketingEmailTemplateMediator mediator.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO.
        aNounPart - The logical MarketingEmailTemplateType SDO.
        Returns:
        This method returns the Emlmsg object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException