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, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic 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 SubscriptionCancelOrderCmdorderId - 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 objectOrderExceptionpublic void processRecurringOrderParentOrderCancel(java.lang.String orderId,
java.lang.String subscriptionId,
Subscription phySubscription)
throws OrderException
processRecurringOrderParentOrderCancel in interface SubscriptionCancelOrderCmdorderId - The order ID to be cancelledsubscriptionId - The ID of the subscription being cancelledphySubscription - The subscription physical data objectOrderExceptionpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECExceptionpublic 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 ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic java.lang.String getSubscriptionIdentifier()
public void setSubscriptionIdentifier(java.lang.String subscriptionId)
setSubscriptionIdentifier in interface SubscriptionCancelOrderCmdsubscriptionId - The subscription ID.