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

Class ChangeGiftListAnnouncementsPartMediator

    • Constructor Detail

      • ChangeGiftListAnnouncementsPartMediator

        public ChangeGiftListAnnouncementsPartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object noun,
                           java.lang.Object nounPart)
                    throws AbstractApplicationException
        Populates the physical data container with the new Grannhist and Gremllist objects to create.
        Parameters:
        noun - The logical GiftListType SDO business object to create.
        nounPart - The logical GiftListAnnouncementType SDO business object to create.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object noun,
                           java.lang.Object nounPart)
                    throws AbstractApplicationException
        No action is performed by this method since the delete operation is not supported by this mediator. Always throws the GiftCenterApplicationException when called.
        Parameters:
        noun - The logical GiftListType SDO business object.
        nounPart - The logical GiftListAnnouncementType SDO business object.
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object noun,
                                                   java.lang.Object nounPart)
                                            throws AbstractApplicationException
        No action is performed by this method since we do not perform an update operation on a persisted Grannhist physical object
        Parameters:
        noun - The logical GiftListType SDO business object.
        nounPart - The logical GiftListAnnouncementType SDO business object.
        Returns:
        null always
        Throws:
        AbstractApplicationException
      • update

        public void update(java.lang.Object noun,
                           java.lang.Object nounPart)
                    throws AbstractApplicationException
        No action is performed by this method since the update operation is not supported by this mediator. Always throws the GiftCenterApplicationException when called.
        Parameters:
        noun - The logical GiftListType SDO business object.
        nounPart - The logical GiftListAnnouncementType SDO business object.
        Throws:
        AbstractApplicationException
      • validateCreate

        public java.util.List validateCreate(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws AbstractApplicationException
        Checks if the logical gift list announcement object can be created. The methods checks if all the required fields are present in the logical objects that are required to create an announcement. If any required parameters are missing, the methods returns a list of ApplicationError objects indicating the error.
        Specified by:
        validateCreate in interface ChangeBusinessObjectPartMediator
        Overrides:
        validateCreate in class AbstractChangeGiftListPartMediator
        Parameters:
        noun - The logical GiftListType SDO business object.
        nounPart - The logical GiftListAnnouncementType SDO business object.
        Returns:
        A list of ApplicationError objects
        Throws:
        AbstractApplicationException
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        Returns the xpath which corresponds to the gift list announcement noun part that is a part of the gift list noun.
        Returns:
        The Xpath String