public class ChangeGiftListItemPartMediator extends AbstractChangeGiftListPartMediator
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.Integer | MAX_PERSONALIZATION_ATTRIBUTE_KEY_LENGTH
Integer constant defined for the maximum length of a personalization attribute key.
|
static java.lang.Integer | MAX_PERSONALIZATION_ATTRIBUTE_VALUE_LENGTH
Integer constant defined for the maximum length of a personalization attribute key.
|
static java.lang.String[] | xpaths
The XPath supported by the mediator.
|
Constructor and Description |
---|
ChangeGiftListItemPartMediator() |
Modifier and Type | Method and Description |
---|---|
protected void | addPersonalization(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftitm phyGiftItem, java.util.Map.Entry entry)
Adds a personalization attribute to the physical gift list item.
|
void | create(java.lang.Object noun, java.lang.Object nounPart)
Creates the physical gift list item to be persisted.
|
void | delete(java.lang.Object noun, java.lang.Object nounPart)
Deletes a gift list item from a gift list.
|
java.lang.Object | findPhysicalEntity(java.lang.Object noun, java.lang.Object nounPart)
Finds a physical gift list item entity from the initialized physical data container.
|
protected int | getMaximumLengthOfPersonalizationAttributeKey()
This method is a call back method used by the validatePersonalizationAttributes method to get the length of personalization attribute key.
|
protected int | getMaximumLengthOfPersonalizationAttributeValue()
This method is a call back method used by the validatePersonalizationAttributes method to get the length of personalization attribute value.
|
java.lang.String[] | getNounPartXPaths()
Returns the noun part XPaths supported by the mediator.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.Map mapNounPart)
Initializes the physical data container with the physical data objects based on the noun parts that are passed.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object noun, java.lang.Object nounPart)
Resolves the gift list item based on the part number and owner ID provided in the catalog entry identifier.
|
void | update(java.lang.Object noun, java.lang.Object nounPart)
Updates the gift list item.
|
protected void | updatePersonalization(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftitm phyGiftItem, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grperattr grperattr, java.util.Map.Entry entry)
Updates the personalization attribute for a physical gift list item.
|
protected void | updatePersonalizations(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftitm phyGiftItem, com.ibm.commerce.giftcenter.facade.datatypes.GiftListItemType giftListItem)
Updates the personalization attributes for a gift list item.
|
java.util.List | validateChange(java.lang.Object noun, java.lang.Object nounPart)
Validates if the change request for the gift list item can be performed or not.
|
java.util.List | validateCreate(java.lang.Object noun, java.lang.Object nounPart)
Validates if the item can be created successfully in the table.
|
java.util.List | validateDelete(java.lang.Object noun, java.lang.Object nounPart)
Validates if the item can be deleted or not.
|
protected java.util.List<ApplicationError> | validatePersonalizationAttributes(com.ibm.commerce.giftcenter.facade.datatypes.GiftListType aGiftList, com.ibm.commerce.giftcenter.facade.datatypes.GiftListItemType aGiftListItem)
Validates the personalization attributes.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String[] xpaths
public static final java.lang.Integer MAX_PERSONALIZATION_ATTRIBUTE_KEY_LENGTH
public static final java.lang.Integer MAX_PERSONALIZATION_ATTRIBUTE_VALUE_LENGTH
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.Map mapNounPart) throws java.lang.Exception
protected boolean resolveByExternalIdentifier(java.lang.Object noun, java.lang.Object nounPart) throws java.lang.Exception
public void create(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected void updatePersonalizations(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftitm phyGiftItem, com.ibm.commerce.giftcenter.facade.datatypes.GiftListItemType giftListItem)
protected void addPersonalization(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftitm phyGiftItem, java.util.Map.Entry entry)
protected void updatePersonalization(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftitm phyGiftItem, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grperattr grperattr, java.util.Map.Entry entry)
public void delete(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.lang.String[] getNounPartXPaths()
public void update(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.util.List validateChange(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.util.List validateCreate(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected java.util.List<ApplicationError> validatePersonalizationAttributes(com.ibm.commerce.giftcenter.facade.datatypes.GiftListType aGiftList, com.ibm.commerce.giftcenter.facade.datatypes.GiftListItemType aGiftListItem)
protected int getMaximumLengthOfPersonalizationAttributeValue()
protected int getMaximumLengthOfPersonalizationAttributeKey()
public java.util.List validateDelete(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException