public class ChangeSubscriptionMediator extends AbstractChangeBusinessObjectMediatorImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ChangeSubscriptionMediator() |
Modifier and Type | Method and Description |
---|---|
protected void | activate(java.lang.Object aNoun, java.lang.Object aPhysicalEntity)
This method activates a subscription.
|
protected void | cancel(java.lang.Object aNoun, java.lang.Object aPhysicalEntity)
This method processes a cancel subscription request.
|
void | change(java.lang.Object aNoun)
This method is called when a Process service with a custom action is called on the subscription.
|
void | create(java.lang.Object aNoun)
This method populates the physical data container with the physical SDO object to create.
|
java.lang.Long | createSchedulerJob(java.lang.Object noun, java.lang.String scheduledActionName, java.util.Date actionDate, java.lang.Integer jobStatus, TypedProperty parameters)
This method creates a scheduled action on the SUBSCRSCHJOBS table using the parameters specified.
|
void | delete(java.lang.Object aNoun)
This method updates the physical data container with the physical SDO object to delete.
|
java.lang.Object | findPhysicalEntity(java.lang.Object aNoun)
This method returns the physical SDO from the PhysicalDataContainer that was created in the initializePhysicalDataContainer method that matches the provided noun.
|
protected CommerceFoundationFactory | getCommerceFoundationFactory()
This method returns the default instance of the Commerce Foundation Factory.
|
protected TypedProperty | getJobParameterForCancelJob(java.lang.Object noun)
This method retrieves the parameters to use for the cancel scheduled action.
|
protected TypedProperty | getJobParametersForCreateChildOrder(java.lang.Object noun)
This method retrieves the parameters to use for the create child order scheduled action.
|
protected TypedProperty | getJobParametersForExpire(java.lang.Object noun)
This method retrieves the parameters to use for the expire subscription scheduled action.
|
protected com.ibm.commerce.subscription.facade.datatypes.SubscriptionFactory | getSubscriptionFactory()
Returns the default instance of the Subscription Factory.
|
protected void | immediateCancel(java.lang.Object aNoun, java.lang.String uniqueId, java.util.Date cancelDate)
This method is used to immediately cancel a subscription.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.List aListNoun)
This method initializes the physical data container for this mediator.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object aNoun)
This method resolves the unique ID of the Subscription noun if it is not already set.
|
protected void | scheduleCancelJob(java.lang.Object subscriptionNoun, java.lang.String uniqueId, java.util.Date cancelDate, java.util.Date nextFFMDate)
This method is used to schedule a cancel job This creates a CANCEL job in the SUBSCRSCHJOBS table and sets the status of the subscription to PENDING CANCEL
|
protected void | setFulfillmentSchedule(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription)
This method sets the fulfillment schedule information in the physical SDO.
|
protected void | setPaymentInfo(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription)
This method sets the payment information in the physical SDO.
|
protected void | setPaymentSchedule(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription)
This method sets the payment schedule information in the physical SDO.
|
protected void | setPurchaseDetails(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription)
This method sets the purchase details in the physical SDO.
|
protected void | setSubscriptionInfo(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription)
This method sets the subscription information in the physical SDO.
|
java.util.List | validateChange(java.lang.Object aNoun)
This method checks if the logical Subscription noun can be updated.
|
java.util.List | validateCreate(java.lang.Object aNoun)
This method checks if the logical Subscription noun can be created.
|
java.util.List | validateDelete(java.lang.Object aNoun)
This method checks if the logical Subscription noun can be deleted.
|
public static final java.lang.String COPYRIGHT
public void create(java.lang.Object aNoun) throws AbstractApplicationException
protected TypedProperty getJobParametersForCreateChildOrder(java.lang.Object noun)
protected TypedProperty getJobParametersForExpire(java.lang.Object noun)
public java.lang.Long createSchedulerJob(java.lang.Object noun, java.lang.String scheduledActionName, java.util.Date actionDate, java.lang.Integer jobStatus, TypedProperty parameters) throws AbstractApplicationException
public java.util.List validateCreate(java.lang.Object aNoun) throws AbstractApplicationException
public void change(java.lang.Object aNoun) throws AbstractApplicationException
protected void activate(java.lang.Object aNoun, java.lang.Object aPhysicalEntity) throws AbstractApplicationException
protected void cancel(java.lang.Object aNoun, java.lang.Object aPhysicalEntity) throws AbstractApplicationException
protected void scheduleCancelJob(java.lang.Object subscriptionNoun, java.lang.String uniqueId, java.util.Date cancelDate, java.util.Date nextFFMDate) throws AbstractApplicationException
protected TypedProperty getJobParameterForCancelJob(java.lang.Object noun)
protected void immediateCancel(java.lang.Object aNoun, java.lang.String uniqueId, java.util.Date cancelDate) throws DataMediatorException, AbstractApplicationException
public java.util.List validateChange(java.lang.Object aNoun) throws AbstractApplicationException
public void delete(java.lang.Object aNoun) throws AbstractApplicationException
public java.util.List validateDelete(java.lang.Object aNoun) throws AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun) throws AbstractApplicationException
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.List aListNoun) throws DataMediatorException
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun) throws DataMediatorException
protected CommerceFoundationFactory getCommerceFoundationFactory()
protected com.ibm.commerce.subscription.facade.datatypes.SubscriptionFactory getSubscriptionFactory()
protected void setPurchaseDetails(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription) throws AbstractApplicationException
protected void setSubscriptionInfo(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription) throws AbstractApplicationException
protected void setPaymentInfo(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription) throws AbstractApplicationException
protected void setFulfillmentSchedule(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription) throws AbstractApplicationException
protected void setPaymentSchedule(Subscription phySubscription, com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription) throws AbstractApplicationException