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

Class ChangeMarketingSpotTitlePartMediator

    • Constructor Detail

      • ChangeMarketingSpotTitlePartMediator

        public ChangeMarketingSpotTitlePartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method populates the physical data container with the new DMEMSPOTCOLLDEF object to create.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object that is the parent of the object to create.
        aNounPart - The logical DefaultMarketingSpotTitleType SDO business object to create.
        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 DMEMSPOTCOLLDEF object. It sets the content unique identifier and display sequence, if provided.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object which is the parent of the object to update.
        aNounPart - The logical DefaultMarketingSpotTitleType SDO business object to update.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method populates the physical data container with the Dmemspotcolldef object to delete.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object that is the parent of the object to delete.
        aNounPart - The logical DefaultMarketingSpotTitleType SDO business object to delete.
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the xpath for the default title noun part that is part of the marketing spot noun.
        Returns:
        The xpath for the marketing spot default title noun part.
      • validateCreate

        public java.util.List validateCreate(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method checks if the logical marketing spot default title noun part can be created. If the noun part cannot be created, the appropriate error exception is added to the list of exceptions to be returned to the caller.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object which is the parent of the object to validate.
        aNounPart - The logical DefaultMarketingSpotTitleType SDO business object to validate.
        Returns:
        This method returns a list of ApplicationErrors if there are any errors, otherwise it returns an empty list.
        Throws:
        DataMediatorException
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method performs no actions as there are no fields in default title that can be updated.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object which is the parent of the object to validate.
        aNounPart - The logical DefaultMarketingSpotTitleType SDO business object to validate.
        Returns:
        This method returns a list of ApplicationErrors 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 determines whether the logical marketing spot default title noun part can be deleted. It checks that the default title 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 MarketingSpotType SDO business object which is the parent of the object to validate.
        aNounPart - The logical DefaultMarketingSpotTitleType 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
      • findPhysicalEntity

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