public class ChangePromotionMediator extends AbstractChangeBusinessObjectMediatorImpl
Constructor and Description |
---|
ChangePromotionMediator() |
Modifier and Type | Method and Description |
---|---|
void | change(java.lang.Object aNoun)
This method is called when activate or deactivate promotion service is called.
|
void | create(java.lang.Object aNoun)
Creates the physical entity corresponding to the logical noun
|
void | delete(java.lang.Object aNoun)
Deletes the logical noun.
|
java.lang.Object | findPhysicalEntity(java.lang.Object aNoun)
Find physical entity in the physical data container
|
java.lang.Object | findPhysicalEntityWithSameAdminName(java.lang.Object aNoun)
Find a physical entity in the physical data container which has the same administrative name as the passed logical noun.
|
protected CommerceFoundationFactory | getCommerceFoundationFactory()
This method will return the default instance of the Commerce Foundation Factory.
|
protected com.ibm.commerce.promotion.facade.datatypes.PromotionFactory | getPromotionFactory()
Getter method which returns the PromotionFactory.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.List aListNoun)
Initialize the physical data container for this mediator.
|
protected void | postInvoke()
On Oracle 9i, this method updates the CLOB columns.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object aNoun)
Resolve the noun part which has only the external identifier.
|
java.util.List | validateChange(java.lang.Object aNoun)
Checks if the object to be changed is present in the physical data container.
|
java.util.List | validateCreate(java.lang.Object aNoun)
Checks if the object to be created is present in the physical data container.
|
java.util.List | validateDelete(java.lang.Object aNoun)
Checks if the object to be removed is present in the physical data container.
|
protected java.util.List | validatePromotionCodes(PromotionType aPromotionType)
Check the length of the promotion codes to be saved.
|
protected static java.util.List | validatePublicPromotionCodes(PromotionType aPromotionType)
Check the length of the promotion codes to be saved.
|
void | validationForActivePromotionsWithSameCode(Px_promotion promotion)
This method is used to check that for the passed promotion parameter, its public promotion codes (manually entered by the business user) are not currently being used in any other active promotions in the store path.
|
void | validationForActivePromotionsWithSamePriority(Px_promotion promotion)
This method is used to check that for the passed promotion parameter, its priority is not currently being used in any other active promotions in the store path belonging to the same promotion group.
|
protected com.ibm.commerce.promotion.facade.datatypes.PromotionFactory getPromotionFactory()
public void create(java.lang.Object aNoun) throws AbstractApplicationException
public void change(java.lang.Object aNoun) throws AbstractApplicationException
public void validationForActivePromotionsWithSameCode(Px_promotion promotion) throws AbstractApplicationException
public void validationForActivePromotionsWithSamePriority(Px_promotion promotion) throws AbstractApplicationException
public void delete(java.lang.Object aNoun) throws AbstractApplicationException
public java.lang.Object findPhysicalEntityWithSameAdminName(java.lang.Object aNoun) throws DataMediatorException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun) throws DataMediatorException
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.List aListNoun) throws DataMediatorException
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun) throws AbstractApplicationException
protected java.util.List validatePromotionCodes(PromotionType aPromotionType)
protected static java.util.List validatePublicPromotionCodes(PromotionType aPromotionType)
public java.util.List validateCreate(java.lang.Object aNoun) throws AbstractApplicationException
public java.util.List validateChange(java.lang.Object aNoun) throws DataMediatorException
public java.util.List validateDelete(java.lang.Object aNoun) throws DataMediatorException
protected CommerceFoundationFactory getCommerceFoundationFactory()
protected void postInvoke() throws AbstractApplicationException