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

Class ChangeGiftListDescriptionPartMediator

    • Constructor Detail

      • ChangeGiftListDescriptionPartMediator

        public ChangeGiftListDescriptionPartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method creates a noun part Description for a GiftListType.
        Parameters:
        aNoun - The logical GiftListType SDO business object.
        aNounPart - The logical Description SDO business object.
        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 physical SDO object.
        Parameters:
        aNoun - The logical GiftListType SDO business object to update.
        aNounPart - The logical GiftListType SDO business object to update.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method performs no actions as GiftList deletion is done by the change GiftList mediator.
        Parameters:
        aNoun - The logical GiftListType SDO business object.
        aNounPart - The logical GiftListType SDO business object.
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the XPath for the main GiftList noun part.
        Returns:
        The XPath for the main GiftList noun part.
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws AbstractApplicationException
        This method checks if the logical GiftList noun can be updated. If the noun cannot be updated, the appropriate error exception is added to the list of exceptions to be returned to the caller.
        Specified by:
        validateChange in interface ChangeBusinessObjectPartMediator
        Overrides:
        validateChange in class AbstractChangeGiftListPartMediator
        Parameters:
        aNoun - The logical GiftListType SDO business object to validate.
        aNounPart - The logical GiftListType SDO business object.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        AbstractApplicationException
      • validateParameters

        public java.util.List validateParameters(java.lang.Object aNoun,
                                                 java.lang.Object aNounPart)
                                          throws DataMediatorException
        This method checks if the logical GiftList noun can be updated. 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 GiftListType SDO business object to validate.
        aNounPart - The logical GiftListType SDO business object.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        DataMediatorException
      • findPhysicalEntity

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