public class ChangeGiftListEventInformationPartMediator extends AbstractChangeGiftListPartMediator
Constructor and Description |
---|
ChangeGiftListEventInformationPartMediator() |
Modifier and Type | Method and Description |
---|---|
void | create(java.lang.Object aNoun, java.lang.Object aNounPart)
This method saves the EventInformation into the physical data container.
|
protected void | createEventAddresses(com.ibm.commerce.giftcenter.facade.datatypes.GiftListType giftListType, com.ibm.commerce.giftcenter.facade.datatypes.GiftListEventInformationType giftListEventInformationType, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
This method creates the pre and post event address physical objects, based on the preference sent
|
protected void | createGiftListEventInformation(com.ibm.commerce.giftcenter.facade.datatypes.GiftListType giftListType, com.ibm.commerce.giftcenter.facade.datatypes.GiftListEventInformationType giftListEventInformationType, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
This method saves the gift list event information related elements to the physical objects.
|
protected long | createPostEventAddress(ContactInfoType contactInfo)
This method create a pre-event address.
|
protected long | createPreEventAddress(ContactInfoType contactInfo)
This method create a post-event address.
|
protected void | createWishListEventInformation(com.ibm.commerce.giftcenter.facade.datatypes.GiftListEventInformationType giftListEventInformationType, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
Populates the event information for a wish list.
|
void | delete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method removes the appropriate physical SDO from the physical data container.
|
java.lang.Object | findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart)
This method returns the physical SDO from the PhysicalDataContainer that matches the GiftListEventInformation noun part.
|
java.lang.String[] | getNounPartXPaths()
This method gets the XPATH for the noun part.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.Map aMapNounPart)
This method initializes the physical data container for this mediator.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart)
This method performs no actions as the resolve is done by the Change GiftList mediator.
|
void | update(java.lang.Object aNoun, java.lang.Object aNounPart)
This method updates the physical data container with the modified physical SDO object.
|
protected void | updateEventAddress(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Graddr physicalGiftListEventAddress, ContactInfoType contactInfo)
This method updates the event address fields in the passed physical gift list event address object with the values present in the logical contact info object.
|
java.util.List | validateChange(java.lang.Object aNoun, java.lang.Object aNounPart)
This method checks if the noun part can be updated.
|
protected java.util.List | validateChangeForGiftRegistry(java.lang.Object noun, java.lang.Object nounPart)
Validates a gift registry object on change event
|
protected java.util.List | validateChangeForWishList(java.lang.Object noun, java.lang.Object nounPart)
Validates a wishlist object on change event.
|
java.util.List | validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart)
This method checks if the noun part can be created.
|
protected java.util.List | validateCreateForGiftRegistry(java.lang.Object noun, java.lang.Object nounPart)
Validates a gift registry object on create event
|
protected java.util.List | validateCreateForWishList(java.lang.Object noun, java.lang.Object nounPart)
Validates a wishlist object on create event
|
java.util.List | validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method checks if the noun part can be deleted.
|
protected java.util.List | validateShippingPreferences(java.lang.Object noun, java.lang.Object nounPart, boolean addressMandatory)
Validates that pre and post event address is set and that shipping preference for pre and post event addresses are valid Shipping preference should be either R (Registrant), C (CoRegistrant) or O(Others)
|
public ChangeGiftListEventInformationPartMediator()
public void create(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
protected void createWishListEventInformation(com.ibm.commerce.giftcenter.facade.datatypes.GiftListEventInformationType giftListEventInformationType, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList) throws AbstractApplicationException
protected void createGiftListEventInformation(com.ibm.commerce.giftcenter.facade.datatypes.GiftListType giftListType, com.ibm.commerce.giftcenter.facade.datatypes.GiftListEventInformationType giftListEventInformationType, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList) throws AbstractApplicationException
protected void createEventAddresses(com.ibm.commerce.giftcenter.facade.datatypes.GiftListType giftListType, com.ibm.commerce.giftcenter.facade.datatypes.GiftListEventInformationType giftListEventInformationType, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
public void update(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public void delete(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.lang.String[] getNounPartXPaths()
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.Map aMapNounPart)
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart)
public java.util.List validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
protected java.util.List validateCreateForWishList(java.lang.Object noun, java.lang.Object nounPart)
protected java.util.List validateChangeForWishList(java.lang.Object noun, java.lang.Object nounPart)
protected java.util.List validateCreateForGiftRegistry(java.lang.Object noun, java.lang.Object nounPart) throws DataMediatorException
protected java.util.List validateChangeForGiftRegistry(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected java.util.List validateShippingPreferences(java.lang.Object noun, java.lang.Object nounPart, boolean addressMandatory)
public java.util.List validateChange(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.util.List validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
protected long createPreEventAddress(ContactInfoType contactInfo)
protected void updateEventAddress(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Graddr physicalGiftListEventAddress, ContactInfoType contactInfo)
protected long createPostEventAddress(ContactInfoType contactInfo)