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

Class ChangeGiftListAccessSpecifierPartMediator

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • xpaths

        public static java.lang.String[] xpaths
        The XPath supported by the mediator.
    • Constructor Detail

      • ChangeGiftListAccessSpecifierPartMediator

        public ChangeGiftListAccessSpecifierPartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object noun,
                           java.lang.Object nounPart)
                    throws AbstractApplicationException
        Creates the physical Gruserauth objects for the guest user password and registrant password to be persisted. The access specifier element in the the GiftListAccessSpecifierType noun part is persisted by the ChangeGiftListMediator.
        Parameters:
        noun - - The GiftListType object.
        nounPart - - The GiftListAccessSpecifierType object.
        Throws:
        AbstractApplicationException - - when an error occurs.
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method performs no actions as GiftList deletion is done by the change GiftList mediator.
        Parameters:
        aNoun - The logical GiftListType SDO business object.
        aNounPart - The logical GiftListType SDO business object.
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun,
                                                   java.lang.Object aNounPart)
                                            throws DataMediatorException
        This method is not used by default and always returns null. Use findUserAuthenticationByType method instead.
        Parameters:
        aNoun - The logical GiftListType SDO.
        aNounPart - The logical GiftListType SDO.
        Returns:
        This method returns the PhysicalGiftList object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException
        See Also:
        ChangeGiftListAccessSpecifierPartMediator#findUserAuthenticationByType(Long, int)}
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the XPath for the main GiftList noun part.
        Returns:
        The XPath for the main GiftList noun part.
      • update

        public void update(java.lang.Object noun,
                           java.lang.Object nounPart)
                    throws AbstractApplicationException
        This method updates the gift list access options as well the user authentication entries. For Public and Private gift lists, the method removes all previous Gruserauth entries. For Protected gift lists, the method updates the existing user authentication entries if they exist. If not, new entries are created in the Gruserauth table.
        Parameters:
        noun - The logical GiftListType SDO business object.
        nounPart - The logical GiftListAccessSpecifierType SDO business object.
        Throws:
        AbstractApplicationException
      • findUserAuthenticationByType

        public com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Gruserauth findUserAuthenticationByType(java.lang.Long uniqueID,
                                                                                                                  int accessType)
                                                                                                           throws DataMediatorException
        Finds the active Gruserauth physical object based on the gift list unique ID and the access type.
        Parameters:
        uniqueID - The unique ID of the gift list.
        accessType - The access type based on which the Gruserauth entry is retrieved.
        Returns:
        The Gruserauth physical object.
        Throws:
        DataMediatorException
        See Also:
        GiftListServerConstants#AUTH_TYPE_GIFTGIVER_ACCESS} {@link GiftListServerConstants#AUTH_TYPE_MANAGE_ACCESS}