public class ChangePromotionBasePartMediator extends AbstractChangeBusinessObjectPartMediatorImpl
Constructor and Description |
---|
ChangePromotionBasePartMediator() |
Modifier and Type | Method and Description |
---|---|
void | create(java.lang.Object aNoun, java.lang.Object aNounPart)
This method performs no actions as creating noun is done by the ChangePromotionMediator.
|
void | delete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method performs no actions as the deleting noun is done by the ChangePromotionMediator.
|
java.lang.Object | findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart)
This method returns the Promotion physical SDO from the PhysicalDataContainer that was created in the ChangePromotionMediator mediator.
|
java.lang.Object | findPhysicalEntityWithSameAdminName(java.lang.Object aNoun)
This method is used to find a promotion physical entity in the physical data container which has the same administrative name as the passed logical promotion noun.
|
protected CommerceFoundationFactory | getCommerceFoundationFactory()
This method will return the default instance of the Commerce Foundation Factory.
|
java.lang.String[] | getNounPartXPaths()
This method gets the xpath for the noun part.
|
protected com.ibm.commerce.promotion.facade.datatypes.PromotionFactory | getPromotionFactory()
Getter method which returns the PromotionFactory.
|
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 resolves the uniqueId of the noun part by the ExternalIdentifier of the noun.
|
void | update(java.lang.Object aNoun, java.lang.Object aNounPart)
This method updates the physical data container with the modified Promotion object.
|
java.util.List | validateChange(java.lang.Object aNoun, java.lang.Object aNounPart)
This method checks if the logical PromotionType noun part can be updated.
|
java.util.List | validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart)
This method performs no checking as the validation is done by the ChangePromotionMediator.
|
java.util.List | validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method performs no checking as the validation is done by the ChangePromotionMediator.
|
protected java.util.List | validatePromotionCodes(PromotionType aPromotionType)
Check the length of the promotion codes to be saved.
|
public java.lang.String[] getNounPartXPaths()
protected com.ibm.commerce.promotion.facade.datatypes.PromotionFactory getPromotionFactory()
protected CommerceFoundationFactory getCommerceFoundationFactory()
public void create(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
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
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.Map aMapNounPart) throws DataMediatorException
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.util.List validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
public java.util.List validateChange(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
protected java.util.List validatePromotionCodes(PromotionType aPromotionType)
public java.util.List validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
public java.lang.Object findPhysicalEntityWithSameAdminName(java.lang.Object aNoun) throws DataMediatorException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException