public class ChangeGiftListItemPartMediator extends AbstractChangeGiftListPartMediator
Item
noun part in the GiftList
noun.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 |
---|---|
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.
|
java.lang.String[] |
getNounPartXPaths()
Returns the noun part XPaths supported by the mediator.
|
void |
update(java.lang.Object noun,
java.lang.Object nounPart)
Updates the 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.
|
createAddress, findGiftListPhysicalEntity, updateAddress
applyChanges, convertToBigDecimal, convertToDate, convertToDouble, convertToInteger, convertToLong, getNounParts, getParentPhysicalDataContainer, getPhysicalDataContainer, initialize
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
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
public void create(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
noun
- - The gift list for which the item is created.nounPart
- - The gift list item to be created.AbstractApplicationException
- - when the create fails.public void delete(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
noun
- - The gift list from which the item is to be deleted.nounPart
- - The gift list item to delete.AbstractApplicationException
- - when the delete fails.public java.lang.Object findPhysicalEntity(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
noun
- - The gift list noun object.nounPart
- - The gift list item to be resolved.null
.AbstractApplicationException
- - when an exception occurspublic java.lang.String[] getNounPartXPaths()
public void update(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
noun
- - The gift list noun object.nounPart
- - The gift list item to be updated.AbstractApplicationException
- - when the new quantity becomes negative.public java.util.List validateChange(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
validateChange
in interface ChangeBusinessObjectPartMediator
validateChange
in class AbstractChangeGiftListPartMediator
noun
- - The gift list object.nounPart
- - The gift list item object.AbstractApplicationException
- - not thrown.public java.util.List validateCreate(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
GiftList
or WishList
, the following
fields are required to be passed.
validateCreate
in interface ChangeBusinessObjectPartMediator
validateCreate
in class AbstractChangeGiftListPartMediator
noun
- - The noun of type GiftListType
nounPart
- - The nounpart of type GiftListItemType
ApplicationError
objects
encountered during validation. The list will be empty if no
errors are encountered.AbstractApplicationException
- - when an exception occurs.public java.util.List validateDelete(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
validateDelete
in interface ChangeBusinessObjectPartMediator
validateDelete
in class AbstractChangeGiftListPartMediator
noun
- - The gift list for which the item is created.nounPart
- - The gift list item to be created.ApplicationError
objectsAbstractApplicationException
- - when the create fails.