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

Class ChangeGiftListEventInformationPartMediator

    • Constructor Detail

      • ChangeGiftListEventInformationPartMediator

        public ChangeGiftListEventInformationPartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method saves the EventInformation into the physical data container. if GiftListType is a type registry, createGiftListEventInformation is invoked, otherwise createWishListEventInformation would be invoked.
        Parameters:
        aNoun - The logical GiftListType SDO business object.
        aNounPart - The logical EventInformationType SDO business object.
        Throws:
        AbstractApplicationException
        See Also:
        GiftListType#isRegistry()}, #createGiftListEventInformation(GiftListType, Grgftreg), #createWishListEventInformation(GiftListType, Grgftreg)
      • 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 GiftListEventInformation part data, including any provided user data
        Parameters:
        aNoun - The logical GiftListType SDO business object to update.
        aNounPart - The logical GiftListEventInformationType 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 does nothing.
        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 GiftListEventInformationType 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 GiftListEventInformationType 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 DataMediatorException
        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.
        Specified by:
        validateDelete in interface ChangeBusinessObjectPartMediator
        Overrides:
        validateDelete in class AbstractChangeGiftListPartMediator
        Parameters:
        aNoun - The logical GiftListType SDO business object.
        aNounPart - The logical GiftListEventInformationType 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 matches the GiftListEventInformation noun part.
        Parameters:
        aNoun - The logical GiftListType SDO.
        aNounPart - The logical GiftListEventInformationType SDO.
        Returns:
        This method returns the physical SDO object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException