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

Class AbstractChangeGiftListPartMediator

    • Constructor Detail

      • AbstractChangeGiftListPartMediator

        public AbstractChangeGiftListPartMediator()
    • Method Detail

      • createAddress

        public long createAddress(PhysicalDataContainer physicalContainer,
                                  ContactInfoType contactInfoType)
        This method creates an address entry for the ContactInfoType type.
        Parameters:
        physicalContainer - the physical container
        contactInfoType - the ContactInfoType that contains the address.
        Returns:
        long - An address identifier of the newly created address
      • updateAddress

        public void updateAddress(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Graddr aPhysicalEventAddress,
                                  ContactInfoType contactInfoType)
        This method updates the address fields of physical gift list address using the passed logical ContactInfoType type.
        Parameters:
        aPhysicalEventAddress - the physical gift list event address
        contactInfoType - the ContactInfoType that contains the address.
      • validateChange

        public java.util.List validateChange(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws AbstractApplicationException
        Validates whether the GiftList noun can be edited. A gift list which is marked for deletion cannot be edited
        Parameters:
        noun - The GiftList noun to validate
        nounPart - The GiftList noun part to validate
        Returns:
        A list of ApplicationError objects
        Throws:
        AbstractApplicationException
      • validateCreate

        public java.util.List validateCreate(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws AbstractApplicationException
        Validates whether the GiftList noun can be updated. A gift list which is marked for deletion cannot be modified to add a noun part.
        Parameters:
        noun - The GiftList noun to validate
        nounPart - The GiftList noun part to validate
        Returns:
        A list of ApplicationError objects
        Throws:
        AbstractApplicationException
      • validateDelete

        public java.util.List validateDelete(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws AbstractApplicationException
        Validates whether the GiftList noun can be updated. A gift list which is marked for deletion cannot be modified to delete a nounpart.
        Parameters:
        noun - The GiftList noun to validate
        nounPart - The GiftList noun part to validate
        Returns:
        A list of ApplicationError objects
        Throws:
        AbstractApplicationException
      • findGiftListPhysicalEntity

        public java.lang.Object findGiftListPhysicalEntity(java.lang.Object aNoun)
                                                    throws DataMediatorException
        This method returns the physical SDO from the parent PhysicalDataContainer that was created in the ChangeGiftListMediator initializePhysicalDataContainer method that matches the provided noun.
        Parameters:
        aNoun - The logical GiftListType SDO.
        Returns:
        This method returns the physical SDO object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException