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

Class ChangeMarketingContentMediator

    • Constructor Detail

      • ChangeMarketingContentMediator

        public ChangeMarketingContentMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun)
                    throws AbstractApplicationException
        This method populates the physical data container with the new Collateral object to create. 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 create.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun)
                    throws AbstractApplicationException
        This method updates the physical data container with the Collateral object to delete.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object to delete.
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun)
                                            throws DataMediatorException
        This method returns the Collateral physical SDO from the PhysicalDataContainer that was created in the initializePhysicalDataContainer method.
        Parameters:
        aNoun - The logical MarketingContentType SDO.
        Returns:
        This method returns the Collateral 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 content noun can be created. It checks the following things:
        • Whether the name of the marketing content does already exists in the store.
        • Whether the required fields (name and type) 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 MarketingContentType SDO business object to validate.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise it returns an empty list.
        Throws:
        DataMediatorException
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun)
                                      throws DataMediatorException
        This method checks if the logical marketing content noun can be updated. It checks that the marketing content 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 MarketingContentType SDO business object to validate.
        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)
                                      throws DataMediatorException
        This method checks if the logical marketing content noun can be deleted. It checks that the marketing content 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 MarketingContentType SDO business object to validate.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise it returns an empty list.
        Throws:
        DataMediatorException