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

Class ChangeMarketingContentImageMapAreaPartMediator

    • Field Detail

      • COMMA_DELIMITER

        public static final java.lang.String COMMA_DELIMITER
        The delimitor which is used in coordinates of image map area.
        See Also:
        Constant Field Values
      • PARAM_CONTENT_UNIQUE_ID

        public static final java.lang.String PARAM_CONTENT_UNIQUE_ID
        The query parameter name for the unique id.
        See Also:
        Constant Field Values
      • PARAM_CONTENT_LANGUAGE_ID

        public static final java.lang.String PARAM_CONTENT_LANGUAGE_ID
        The query parameter name for the language id.
        See Also:
        Constant Field Values
      • PARAM_CONTENT_COORDINATES

        public static final java.lang.String PARAM_CONTENT_COORDINATES
        The query parameter name for the iamge map coordinates.
        See Also:
        Constant Field Values
      • COLUMN_NAME_COLLIMGMAPAREA_ID

        public static final java.lang.String COLUMN_NAME_COLLIMGMAPAREA_ID
        The column name for the primary key of the COLLIMGMAPAREA table.
        See Also:
        Constant Field Values
      • QUERY_SELECT_IMAGE_MAP_AREA_BY_CONTENT_UNIQUE_ID_LANGUAGE_ID_AND_COORDINATES

        public static final java.lang.String QUERY_SELECT_IMAGE_MAP_AREA_BY_CONTENT_UNIQUE_ID_LANGUAGE_ID_AND_COORDINATES
        Select the image map area of a marketing content by content unique id, language id and coordinates. parameters: UniqueID
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChangeMarketingContentImageMapAreaPartMediator

        public ChangeMarketingContentImageMapAreaPartMediator()
    • 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. It sets all the marketing content image map area data, including any provided user data.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object that is the parent of the object to create.
        aNounPart - The logical AreaType 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 imagea map ara 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 AreaType 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 Collimgmaparea object to delete.
        Parameters:
        aNoun - The logical MarketingContentType SDO business object that is the parent of the object to delete.
        aNounPart - The logical AreaType SDO business object to delete.
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the xpath for the image map area noun part that is part of the marketing content noun.
        Returns:
        The xpath for the marketing content image map area 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 area noun part can be created. It checks if the mandatory fields are specified and if the shape and coordinates of the image map area are valid. It also checks if 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 which is the parent of the object to validate.
        aNounPart - The logical AreaType 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 area noun part. It checks the following things:
        • Verifies that the area exists in the physical data container.
        • Checks that the string fields are the appropriate length.
        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 AreaType 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 area noun part can be deleted. It checks that the area 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 which is the parent of the object to validate.
        aNounPart - The logical AreaType 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 AreaType SDO.
        Returns:
        This method returns the Collimgmaparea object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException