Package com.highdeal.pnr.hci
Class ChargeExecutionContext
java.lang.Object
com.highdeal.pnr.hci.ChargeExecutionContext
This
Java class defines the conditions under which a charge operation is executed.
The conditions are defined as properties. The properties are grouped by domains.
The list of the available domains is:
ChargingResultContextDomainChargingResultOnErrorContextDomainChargingOutputContextDomainSenderContextDomain
Implementation in Your Client Application
Use the domains and related get methods to set up this class.
Setting up a Property in the Context
Code Snippet
The following snippet shows how to set up the value of a property of the charging result domain:
ChargeExecutionContext context = new ChargeExecutionContext();
context.getChargingResultDomain().setChargedItemReturned(true);
Viewing a Property in the Context
Code Snippet
The following snippet shows how to read the value of a property of the charging result domain:
ChargeExecutionContext context = ...;
...
boolean isChargedItemReturned = context.getChargingOutputDomain().isChargedItemReturned();
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a charge execution context with an emptyOperationExecutionContext.ChargeExecutionContext(OperationExecutionContext innerContext) Creates a charge execution context using the content of the specifiedOperationExecutionContext. -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this context, containing a copy of each of its properties.Gets the domain used to configure the output of the charging operation.Gets the domain used to configure the content of the result of the charging operation.Gets the domain used to configure the content of the result of the charging operation when an error occurs.This method is reserved for SAP internal use only.Gets the domain used to specify information about the sender of the operation.booleanGets whether the properties ofnotificationmust be returned formatted in the result of the charging operation.voidsetNotificationPropertiesFormatted(boolean isNotificationPropertiesFormatted) Sets whether the properties ofnotificationmust be returned formatted in the result of the charging operation.
-
Constructor Details
-
ChargeExecutionContext
public ChargeExecutionContext()Creates a charge execution context with an emptyOperationExecutionContext. -
ChargeExecutionContext
Creates a charge execution context using the content of the specifiedOperationExecutionContext.- Parameters:
innerContext- TheOperationExecutionContextto use
-
-
Method Details
-
getInnerContext
This method is reserved for SAP internal use only. -
getChargingResultDomain
Gets the domain used to configure the content of the result of the charging operation.- Returns:
- The domain used to configure the content of the result of the charging operation
-
getChargingResultOnErrorDomain
Gets the domain used to configure the content of the result of the charging operation when an error occurs.- Returns:
- The domain used to configure the content of the result of the charging operation when an error occurs
-
getChargingOutputDomain
Gets the domain used to configure the output of the charging operation.- Returns:
- The domain used to configure the output of the charging operation
-
getSenderDomain
Gets the domain used to specify information about the sender of the operation.- Returns:
- The domain used to specify information about the sender of the operation
-
isNotificationPropertiesFormatted
public boolean isNotificationPropertiesFormatted()Gets whether the properties ofnotificationmust be returned formatted in the result of the charging operation.- Returns:
trueif the properties ofnotificationmust be returned formatted,falseotherwise
-
setNotificationPropertiesFormatted
public void setNotificationPropertiesFormatted(boolean isNotificationPropertiesFormatted) Sets whether the properties ofnotificationmust be returned formatted in the result of the charging operation.- Parameters:
isNotificationPropertiesFormatted-trueto format the properties ofnotificationreturned,falseotherwise
-
duplicate
Returns a copy of this context, containing a copy of each of its properties.- Returns:
- A copy of this context
-