public class ProcessSubscriptionCancelActionCmdImpl extends AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl implements ProcessSubscriptionActionCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ProcessSubscriptionCancelActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected long | getDifferenceBasedOnUOM(java.util.Date nextFFMDate, java.util.Date cancelDate, ScheduleEvaluateCmd.UnitOfMeasure noticePeriodUOM)
This method calculate the difference between the two dates based on the UnitOfMeasure specified.
|
void | performExecute()
Performs the business logic to cancel the subscription.
|
protected void | processCancelNoticePeriod(com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription)
This method fetches the cancel notice period configuration specified in the subscription component configuration file It sets the state of the subscription to PendingCancel if the notice period is insufficient or sets the state to Cancelled if it is sufficient
|
void | validate()
This method validates the request parameters.
|
protected java.util.Collection<? extends ApplicationError> | validateCancel(com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription, Subscription phySubscription)
This method validates the cancel action on a recurring order or a subscription This method validates the state of the subscription.
|
public static final java.lang.String COPYRIGHT
public ProcessSubscriptionCancelActionCmdImpl()
public void performExecute() throws java.lang.Exception
protected void processCancelNoticePeriod(com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription) throws AbstractApplicationException
protected long getDifferenceBasedOnUOM(java.util.Date nextFFMDate, java.util.Date cancelDate, ScheduleEvaluateCmd.UnitOfMeasure noticePeriodUOM)
public void validate() throws AbstractApplicationException
protected java.util.Collection<? extends ApplicationError> validateCancel(com.ibm.commerce.subscription.facade.datatypes.SubscriptionType logicalSubscription, Subscription phySubscription) throws AbstractApplicationException