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

Class ChangeGiftListMediator

    • Constructor Detail

      • ChangeGiftListMediator

        public ChangeGiftListMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun)
                    throws AbstractApplicationException
        This method populates the physical data container with the physical SDO object to create. It sets all the GiftList data, including any provided user data from the logical GiftList noun.
        Parameters:
        aNoun - The logical GiftListType SDO business object to create.
        Throws:
        AbstractApplicationException
      • createUserAuthentication

        public void createUserAuthentication(GiftListType logicalGiftList,
                                             com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
        This method is for creating the authentication details for the gift list that is being created.
        Parameters:
        logicalGiftList - the logical gift list object
        physicalGiftList - the physical gift list object
        See Also:
        #createDefaultUserAuthentication(Long, String, Integer)}
      • delete

        public void delete(java.lang.Object aNoun)
                    throws AbstractApplicationException
        This method updates the physical data container with the physical SDO object to delete.
        Parameters:
        aNoun - The logical GiftListType SDO business object to delete.
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun)
                                            throws DataMediatorException
        This method returns the physical SDO from the PhysicalDataContainer that was created in the 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
      • validateCreate

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