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

Class ChangeMarketingSpotDefaultContentPartMediator

    • Constructor Detail

      • ChangeMarketingSpotDefaultContentPartMediator

        public ChangeMarketingSpotDefaultContentPartMediator()
    • 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 Dmemspotdef object to create.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object that is the parent of the object to create.
        aNounPart - The logical DefaultContent 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 Dmemspotdef object. It sets the content type and content identifier, if provided.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object which is the parent of the object to update.
        aNounPart - The logical DefaultContent 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 Dmemspotdef object to delete.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object that is the parent of the object to delete.
        aNounPart - The logical DefaultContent SDO business object to delete.
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the xpath for the default content noun part that is part of the marketing spot noun.
        Returns:
        The xpath for the marketing spot default content 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 content 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 DefaultContent 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 content that can be updated.
        Parameters:
        aNoun - The logical MarketingSpotType SDO business object which is the parent of the object to validate.
        aNounPart - The logical DefaultContent 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 content noun part can be deleted. It checks that the default 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 MarketingSpotType SDO business object which is the parent of the object to validate.
        aNounPart - The logical DefaultContent 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 Dmemspotdef physical SDO from the PhysicalDataContainer that was created in the initializePhysicalDataContainer method.
        Parameters:
        aNoun - The logical MarketingSpotType SDO.
        aNounPart - The logical DefaultContent SDO.
        Returns:
        This method returns the Dmemspotdef object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException