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

Class ChangeGiftListRegistrantPartMediator

    • Constructor Detail

      • ChangeGiftListRegistrantPartMediator

        public ChangeGiftListRegistrantPartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method saves the GiftListRegistrantType into the physical object.
        Parameters:
        aNoun - The logical GiftListType SDO business object.
        aNounPart - The logical GiftListRegistrantType noun part.
        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. It sets all the GiftListRegistrant part data, including any provided user data.
        Parameters:
        aNoun - The logical GiftListType SDO business object to update.
        aNounPart - The logical GiftListRegistrantType SDO business object to update.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method removes the appropriate physical SDO from the physical data container. By default, this method doesn't do anything
        Parameters:
        aNoun - The logical GiftListType SDO business object.
        aNounPart - The logical GiftCenterType SDO business object.
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the xpath for the noun part.
        Returns:
        The xpath for the noun part.
      • validateCreate

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

        public java.util.List validateChange(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws AbstractApplicationException
        This method checks if the noun part can be updated. If the noun part 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 GiftListRegistrantType SDO business object.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        AbstractApplicationException
      • validateDelete

        public java.util.List validateDelete(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws AbstractApplicationException
        This method checks if the noun part can be deleted. If the noun part cannot be deleted, the appropriate error exception is added to the list of exceptions and returned to the caller. By default, this method doesn't do anything and returns empty list
        Specified by:
        validateDelete in interface ChangeBusinessObjectPartMediator
        Overrides:
        validateDelete in class AbstractChangeGiftListPartMediator
        Parameters:
        aNoun - The logical GiftListType SDO business object.
        aNounPart - The logical GiftListRegistrantType SDO business object.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun,
                                                   java.lang.Object aNounPart)
                                            throws AbstractApplicationException
        This method returns the physical SDO from the PhysicalDataContainer that matches the GiftListRegistrant noun part.
        Parameters:
        aNoun - The logical GiftListType SDO.
        aNounPart - The logical GiftListRegistrantType SDO.
        Returns:
        This method returns the physical SDO object if it is found, otherwise it returns null.
        Throws:
        AbstractApplicationException