public class SubscriptionCancelOrderCmdImpl extends TaskCommandImpl implements SubscriptionCancelOrderCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
SubscriptionCancelOrderCmdImpl()
Default constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSubscriptionIdentifier()
Returns the subscription ID.
|
void |
performExecute()
This method invokes the
processRecurringOrderParentOrderCancel method to cancel
parent orders of recurring orders or the
processSubscriptionParentOrderItemCancel method to cancel
parent order item of subscriptions |
void |
processRecurringOrderParentOrderCancel(java.lang.String orderId,
java.lang.String subscriptionId,
Subscription phySubscription)
This method is used to cancel the parent order of a recurring order
|
void |
processSubscriptionParentOrderItemCancel(java.lang.String orderId,
java.lang.String orderItemId,
java.lang.String subscriptionId,
Subscription phySubscription)
This method is used to cancel the parent order item of a subscription
|
void |
setSubscriptionIdentifier(java.lang.String subscriptionId)
Sets the ID of the subscription whose parent order or parent order item
is to be canceled.
|
void |
validateParameters()
This method checks if the subscription ID provided is valid.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public SubscriptionCancelOrderCmdImpl()
public void processSubscriptionParentOrderItemCancel(java.lang.String orderId, java.lang.String orderItemId, java.lang.String subscriptionId, Subscription phySubscription) throws OrderException
processSubscriptionParentOrderItemCancel
in interface SubscriptionCancelOrderCmd
orderId
- The ID of the order being cancelledorderItemId
- The ID of the order item being cancelledsubscriptionId
- The ID of the subscription being cancelledphySubscription
- The subscription physical data objectOrderException
public void processRecurringOrderParentOrderCancel(java.lang.String orderId, java.lang.String subscriptionId, Subscription phySubscription) throws OrderException
processRecurringOrderParentOrderCancel
in interface SubscriptionCancelOrderCmd
orderId
- The order ID to be cancelledsubscriptionId
- The ID of the subscription being cancelledphySubscription
- The subscription physical data objectOrderException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
processRecurringOrderParentOrderCancel
method to cancel
parent orders of recurring orders or the
processSubscriptionParentOrderItemCancel
method to cancel
parent order item of subscriptionsperformExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public java.lang.String getSubscriptionIdentifier()
public void setSubscriptionIdentifier(java.lang.String subscriptionId)
setSubscriptionIdentifier
in interface SubscriptionCancelOrderCmd
subscriptionId
- The subscription ID.