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

Class ChangeMarketingContentImageMapPartMediator

    • Constructor Detail

      • ChangeMarketingContentImageMapPartMediator

        public ChangeMarketingContentImageMapPartMediator()
    • 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 Collimgmaparea object to create when input option is 'Source'. It creates a row in COLLIMGMAPAREA with HTMLDEF column populated to store the HTML source code for image map.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object that is the parent of the object to create.
        aNounPart - The logical MarketingContentImageMapType 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 Collimgmaparea object. It sets all the marketing content image map data, including any provided user data, from the logical marketing content noun.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object which is the parent of the object to update.
        aNounPart - The logical MarketingContentImageMapType SDO business object to update.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method sets the HTML source code of image area to null.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object that is the parent of the object to delete.
        aNounPart - The logical MarketingContentImageMapType SDO business object to delete.
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the xpath for the imapge map noun part that is part of the marketing content noun.
        Returns:
        The xpath for the marketing content iamge map 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 content image map noun part can be created. It checks if the source is specified. 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 which is the parent of the object to validate.
        aNounPart - The logical MarketingContentImageMapType 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 validates changes to the logical marketing content image map noun part. It checks the following things:
      • Checks that the source field is empty.
      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 which is the parent of the object to validate.
aNounPart - The logical MarketingContentImageMapType 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 content image map noun part can be deleted. If the noun cannot be deleted, the appropriate error exception is added to the list of exceptions to be returned to the caller. This method is empty.
    Parameters:
    aNoun - The logical MarketingContentType SDO business object which is the parent of the object to validate.
    aNounPart - The logical MarketingContentImageMapType 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 Collimgmaparea physical SDO from the PhysicalDataContainer that was created in the initializePhysicalDataContainer method.
    Parameters:
    aNoun - The logical MarketingContentType SDO.
    aNounPart - The logical MarketingContentImageMapType SDO.
    Returns:
    This method returns the Collimgmaparea object if it is found, otherwise it returns null.
    Throws:
    DataMediatorException