public class ServiceProviderProcessSubscriptionCmdImpl extends TaskCommandImpl implements ProcessSubscriptionCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ServiceProviderProcessSubscriptionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected boolean | activateDirectly()
Checks whether to activate subscription directly.
|
protected java.lang.String | calculateSubscriptionTotal(OrderItemAccessBean abOrderItem)
Calculate subscription total amount
|
protected void | callSubscriptionManager()
This method calls Subscription Manager to create the subscription template in it.
|
protected void | extensionForReverseInventory()
This method is to reserver inventory for subscriptions.
|
protected java.util.Map | generateSubscriptionItem(OrderItemAccessBean abOrderItem)
This method generate subscription item parameter.
Subscription item parameter is a Map and it contains below element. |
protected java.util.List | generateSubscriptionItems()
This method generate subscription items parameter.
Subscription items parameter is a list. |
protected java.util.Map | generateSubscriptionManagerParameter()
This method generate subscription manager parameter.
Subscription manager parameter is a Map and it contains two element. |
protected void | getCatalogEntryAttributeNames()
get catalog entry attribute names from subscription manager configuration
|
protected java.lang.String | getFfmAttributeName()
Get fulfillment frequency attribute name
|
protected boolean | getIsPermittedOrder()
Get whether the order is permitted to be submitted as Subscription
|
protected java.lang.String | getPaymentAttributeName()
Get payment attribute name
|
protected java.lang.String | getPeriodAttributeName()
Get period attribute name
|
protected java.util.Map | getSubscriptionAttributes()
Get Subscription attributes
|
protected void | getSubscriptionInfo()
This method gets subscription information
|
java.util.Vector | getSubscriptions()
Gets subscriptions
|
protected boolean | isSubscriptionEnabled()
This method determine whether subscription is enabled
|
void | performExecute()
This method performs the main business logic of the command.
|
protected void | setFfmAttributeName(java.lang.String iFfmAttributeName)
Set fulfillment frequency attribute name
|
protected void | setIsPermittedOrder(boolean iIsPermittedOrder)
Set whether order is permitted to be submitted as Subscription
|
protected void | setPaymentAttributeName(java.lang.String iPaymentAttributeName)
Set payment attribute name
|
protected void | setPeriodAttributeName(java.lang.String iPeriodAttributeName)
Set period attribute name
|
protected void | setSubscriptionAttributes(java.util.Map subscriptionAttributes)
Set Subscription attributes
|
void | setSubscriptions(java.util.Vector iSubscriptions)
Sets subscriptions
|
protected void | updateSubscriptions()
Update order items as subscription
|
protected boolean | validateOrderStatus(OrderAccessBean abOrder)
Validate order status.
|
void | validateParameters()
This method check whether there's subscription in order
|
public static final java.lang.String COPYRIGHT
public ServiceProviderProcessSubscriptionCmdImpl()
protected void setSubscriptionAttributes(java.util.Map subscriptionAttributes)
protected java.util.Map getSubscriptionAttributes()
protected void setIsPermittedOrder(boolean iIsPermittedOrder)
protected boolean getIsPermittedOrder()
protected void setPaymentAttributeName(java.lang.String iPaymentAttributeName)
protected java.lang.String getPaymentAttributeName()
protected void setFfmAttributeName(java.lang.String iFfmAttributeName)
protected java.lang.String getFfmAttributeName()
protected void setPeriodAttributeName(java.lang.String iPeriodAttributeName)
protected java.lang.String getPeriodAttributeName()
public void performExecute() throws ECException
protected boolean isSubscriptionEnabled() throws ECException
protected void getSubscriptionInfo() throws ECException
protected java.lang.String calculateSubscriptionTotal(OrderItemAccessBean abOrderItem) throws ECException
protected java.util.Map generateSubscriptionItem(OrderItemAccessBean abOrderItem) throws ECException
orderItemId: The order item ID to be submitted. totalCost: total cost of the order item. currency: The order item's currency. If order item's currency can't be retrieved, use order's currency. catalogEntryId: the catalog entry id of the order item. quantity: the quantity of catalog entry fulfillmentSchedule: Map of subscription fulfillment schedule The map contains the following keys: ffmFrequency, fulfillmentFrequencyUOM, timePeriod, timePeriodUOM, startDate,
ffmFrequency: fulfillment frequency of subscription fulfillmentFrequencyUOM: fulfillment frequency unit of measure timePeriod: time period of subscription timePeriofUOM: time period unit of measure startDate: start date of subscription
paymentSchedule: Map of subscription payment schedule The map contains the following keys: paymentFrequency, paymentFrequencyUOM,
paymentFrequency: payment frequency of subscription paymentFrequencyUOM: payment frequency unit of measure
subscriptionType: the type of subscription state: the state of subscription The following sample code demonstrates how to extend the API:
Map parameter = super.generateSubscriptionItem(); parameter.put("key", "value"); return parameter;
protected java.util.List generateSubscriptionItems() throws ECException
List parameter = super.generateSubscriptionItems(); parameter.add(element); return parameter;
protected java.util.Map generateSubscriptionManagerParameter() throws ECException
orderId: The order ID to be submitted. subscriptionItems: A list of subscription item parameterThe following sample code demonstrates how to extend the API:
Map parameter = super.generateSubscriptionManagerParameter(); parameter.put("key", "value"); return parameter;
protected void callSubscriptionManager() throws ECException
protected boolean activateDirectly()
protected boolean validateOrderStatus(OrderAccessBean abOrder) throws ECException
public void validateParameters() throws ECException
protected void getCatalogEntryAttributeNames()
public void setSubscriptions(java.util.Vector iSubscriptions)
public java.util.Vector getSubscriptions()
protected void updateSubscriptions() throws ECSystemException
protected void extensionForReverseInventory() throws ECException