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

Class ChangeMarketingEmailTemplateMediator

    • Constructor Detail

      • ChangeMarketingEmailTemplateMediator

        public ChangeMarketingEmailTemplateMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun)
                    throws AbstractApplicationException
        This method populates the physical data container with the new Emlmsg object to create. It sets all the marketing e-mail template data, including any provided user data, from the logical e-mail template noun.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO business object to create.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun)
                    throws AbstractApplicationException
        This method updates the physical data container with the modified Emlmsg object to delete. It sets the marketing e-mail template data's mark for delete property.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO business object to delete.
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun)
                                            throws DataMediatorException
        This method returns the Emlmsg physical SDO from the PhysicalDataContainer that was created in the initializePhysicalDataContainer method.
        Parameters:
        aNoun - The logical MarketingEmailTemplateType SDO.
        Returns:
        This method returns the Emlmsg object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException
      • validateCreate

        public java.util.List validateCreate(java.lang.Object aNoun)
                                      throws DataMediatorException
        This method checks if the logical marketing e-mail template noun can be created. 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 created, 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 to validate.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        DataMediatorException
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun)
                                      throws DataMediatorException
        This method checks if the logical marketing e-mail template noun can be updated. It checks that the e-mail template exists in the physical data container. 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 to validate.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        DataMediatorException
      • validateDelete

        public java.util.List validateDelete(java.lang.Object aNoun)
                                      throws DataMediatorException
        This method checks if the logical marketing e-mail template noun can be deleted. It checks that the e-mail template exists in the physical data container. If the noun cannot be deleted, 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 to validate.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        DataMediatorException