|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.cnd.message.SessionChargingOperation
public class SessionChargingOperation
FOR INTERNAL USE ONLY - This Java class represents
a multiservice session operation request that is sent
to the connected SAP CC system to manage session-based charging services.
| Nested Class Summary | |
|---|---|
protected class |
SessionChargingOperation.SessionChargingOperationItem
|
static class |
SessionChargingOperation.SessionChargingOperationType
FOR INTERNAL USE ONLY - This enumeration lists the types of operations: START, UPDATE, and STOP. |
| Nested classes/interfaces inherited from interface com.highdeal.cnd.message.ISessionDefaultAttributeHolder |
|---|
ISessionDefaultAttributeHolder.TransactionSelectionCriteria |
| Nested classes/interfaces inherited from interface com.highdeal.cnd.message.ISessionReservation |
|---|
ISessionReservation.SessionReservationResolution |
| Constructor Summary | |
|---|---|
SessionChargingOperation(SessionChargingOperation.SessionChargingOperationType opType,
java.lang.String sessionId,
java.lang.String userServiceId,
java.lang.String serviceId,
java.util.Date consumptionDate)
Builds a new SessionChargingOperation |
|
| Method Summary | |
|---|---|
protected void |
enqueue(SessionChargingOperation.SessionChargingOperationItem item)
|
ISessionOperationResult |
execute()
Executes the operation to process an event of a session-based charging scenario. |
void |
execute(ISessionResultListener listener)
Executes the operation to process an event of a session-based charging scenario. |
ISessionDefaultAttributeHolder.TransactionSelectionCriteria |
getCleanUpResultType()
Returns the cleanUpResultType. |
java.util.Date |
getConsumptionDate()
Returns the consumption date. |
SessionChargingOperation.SessionChargingOperationType |
getOpType()
Returns the type of session-based charging operation: start, update, or stop. |
ISessionDefaultAttributeHolder.TransactionSelectionCriteria |
getResultType()
Indicates the selection criteria for the returned transactions. |
java.lang.String |
getServiceId()
Returns the service ID (SID): a technical ID for the customer service of a service provider |
java.lang.String |
getSessionId()
Returns the multiservice session identifier. |
java.lang.String |
getUserServiceId()
Returns the user service ID (USID): a technical ID for the end customer who uses (consumes) a customer service of a service provider |
boolean |
isFilterTransaction()
Indicates whether or not returned transactions are filtered |
void |
prepareCancel(java.lang.String reservationId)
This method allows you to cancel a reservation during a session-based charging. |
void |
prepareConfirm(java.lang.String reservationId,
ChargeableItem confirmationItem)
This method allows you to confirm a reservation in a charging session included in a multiservice session (or customer session). |
void |
prepareConfirmAndReserve(java.lang.String reservationId,
ChargeableItem confirmationItem,
ChargeableItem reservationItem)
This method allows you to confirm and extend a reservation during a session-based charging. |
void |
prepareReserve(java.lang.String reservationId,
ChargeableItem reservationItem,
ISessionReservation.SessionReservationResolution defaultResolution,
long ttl,
java.lang.String propertyToInverse)
This method allows you to create a reservation request during session-based charging operations. |
void |
setCleanUpResultType(ISessionDefaultAttributeHolder.TransactionSelectionCriteria cleanUpResultType)
Specifies the cleanUp result Type to the value of cleanUpResultType. |
void |
setExternalData(byte[] externalData)
Sets the external data that is included in the renew reservation notifications by the connected SAP CC system. |
void |
setFilterTransaction(boolean ft)
Defines whether or not returned transactions have to be filtered |
void |
setReservationRenewalListenerId(byte rrlId)
Sets the identifier of the reservation renewal listener (RRL). |
void |
setResultType(ISessionDefaultAttributeHolder.TransactionSelectionCriteria rt)
Specifies the selection criteria for the returned transactions: ISessionDefaultAttributeHolder.TransactionSelectionCriteria.ALL_TRANSACTION. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionChargingOperation(SessionChargingOperation.SessionChargingOperationType opType,
java.lang.String sessionId,
java.lang.String userServiceId,
java.lang.String serviceId,
java.util.Date consumptionDate)
SessionChargingOperation
opType - the operation typesessionId - the session identifier which has to be uniqueuserServiceId - the user service identifier (USID), which represents a technical identifier of the end customer consuming the serviceserviceId - the service identifier (SID), which represents a technical identifier of the service provided by the service providerconsumptionDate - the date the service was consumed by the end customer (this date is used as a consumption date for reservations)| Method Detail |
|---|
public java.lang.String getSessionId()
public java.lang.String getUserServiceId()
public java.lang.String getServiceId()
public java.util.Date getConsumptionDate()
public void setResultType(ISessionDefaultAttributeHolder.TransactionSelectionCriteria rt)
ISessionDefaultAttributeHolder.TransactionSelectionCriteria.ALL_TRANSACTION.
setResultType in interface ISessionDefaultAttributeHolderrt - The selection criteria for the returned transactionspublic ISessionDefaultAttributeHolder.TransactionSelectionCriteria getResultType()
ISessionDefaultAttributeHoldertransactions.
getResultType in interface ISessionDefaultAttributeHolderpublic ISessionDefaultAttributeHolder.TransactionSelectionCriteria getCleanUpResultType()
getCleanUpResultType in interface ISessionDefaultAttributeHolderpublic void setCleanUpResultType(ISessionDefaultAttributeHolder.TransactionSelectionCriteria cleanUpResultType)
setCleanUpResultType in interface ISessionDefaultAttributeHoldercleanUpResultType - The cleanUpResultType to setpublic void setFilterTransaction(boolean ft)
ISessionDefaultAttributeHoldertransactions have to be filtered
setFilterTransaction in interface ISessionDefaultAttributeHolderft - true if transactions must be filtered, false otherwisepublic boolean isFilterTransaction()
ISessionDefaultAttributeHoldertransactions are filtered
isFilterTransaction in interface ISessionDefaultAttributeHoldertrue if transactions are filtered, false otherwisepublic SessionChargingOperation.SessionChargingOperationType getOpType()
public void setReservationRenewalListenerId(byte rrlId)
throws java.lang.IllegalArgumentException
IReservationRenewalListenerIdSettable0 is kept for unset values.
setReservationRenewalListenerId in interface IReservationRenewalListenerIdSettablerrlId - The registration identifier of the reservation renewal listener (RRL)
java.lang.IllegalArgumentException - when the value is not an unsigned byte between 1 and 127public void setExternalData(byte[] externalData)
IExternalDataSettableNote
External data must not be null but it can be empty.
setExternalData in interface IExternalDataSettableexternalData - The external data
public void prepareReserve(java.lang.String reservationId,
ChargeableItem reservationItem,
ISessionReservation.SessionReservationResolution defaultResolution,
long ttl,
java.lang.String propertyToInverse)
ISessionReservationmethod allows you to create a reservation request during session-based charging operations.
It triggers in the connected SAP CC system, the rating (dynamic pricing) and reservation of the specified chargeable item by
performing the related counter reservations.
Note
If the reservation fails due to a low-credit, an inverse rating may be attempted if the property name of the property to inverse is specified. This mechanism is known as best effort reservation. This property name is saved in the charging session to avoid providing it again or changing it at update.
Options: You use the parameters ttl and defaultResolution
to set up an automated processing (reservation confirmation or reservation cancellation), when the time to live (TTL) has expired.
The SAP CC system manages the last counter or balance reservations accordingly.
prepareReserve in interface ISessionReservationreservationId - The reservation identifier that must be unique within a sessionreservationItem - The mandatory chargeable item that includes the service consumption informationdefaultResolution - The default resolution of the rating session at expiration time (ISessionReservation.SessionReservationResolution.CANCELLED or ISessionReservation.SessionReservationResolution.CONFIRMED)ttl - The time to live (TTL) expressed in secondspropertyToInverse - The name of the property in the reservationItem to inverse in case of best effort reservation
public void prepareConfirm(java.lang.String reservationId,
ChargeableItem confirmationItem)
ISessionConfirmationmethod allows you to confirm a reservation in a charging session included in a multiservice session (or customer session).
First, the SAP CC system retrieves the stored charging session and its data and re-rate the reservation item to compute a first rating result used
by your charging client to cancel the
previous balance reservation.
The transactions from this rating result are provided to the TIF.
Second, the SAP CC system consolidates a chargeable item for confirmation using both the reservation one from the rating
session and the confirmation one if present. This chargeable item is rated and previously reserved counters are
committed into the back-end database. A second rating result is then available for the client application to confirm the
balance reservation. The transactions from this rating result are also provided to the TIF.
Finally, the charging session is removed and the reservation identifier becomes available for next reservations.
prepareConfirm in interface ISessionConfirmationreservationId - The reservation identifier that must be unique within a multiservice session;
This ID identifies a charging session.confirmationItem - The reservation item; It is optional, null, or partially defined.public void prepareCancel(java.lang.String reservationId)
ISessionConfirmationmethod allows you to cancel a reservation during a session-based charging.
You add this reservation cancellation request in an update or stop operation of a multiservice session.
Once the session operation (update or stop) is received, the SAP CC system retrieves the charging session first and cancels the related counter reservations coming from either a previous reservation or a reservation extension. The rating result that is returned is empty in case of cancellation.
The charging session is removed and the reservation identifier becomes available for next reservations and new charging sessions.
prepareCancel in interface ISessionConfirmationreservationId - The reservation identifier that must be unique within a multiservice session;
This ID identifies a charging session.
public void prepareConfirmAndReserve(java.lang.String reservationId,
ChargeableItem confirmationItem,
ChargeableItem reservationItem)
ISessionConfirmAndReservemethod allows you to confirm and extend a reservation during a session-based charging.
First, the SAP CC system retrieves the charging session and re-rate the reservation item to compute a first rating result used by your client application to cancel the previous balance reservation. The transactions from this rating result are provided to the TIF.
Second, the SAP CC system consolidates a chargeable item for confirmation using both the reservation one from the charging session and the confirmation one if present. This chargeable item is rated and previously reserved counters are updated into the back-end database. A second rating result is then available for your client application to confirm the balance reservation. The transactions from this rating result are also provided to the TIF.
Third, the SAP CC system consolidates a chargeable item for reservation using both the old reservation item (from the charging session) and the provided one (if not present, the old one is used instead). It rates this new reservation item taking the update date into account and does the related counter reservations. A third rating result is available for balance reservation.
Finally, it updates the charging session with the new reservation chargeable item.
prepareConfirmAndReserve in interface ISessionConfirmAndReservereservationId - The reservation identifier that must be unique within a sessionconfirmationItem - The confirmation item (optional, null, or partially defined items are accepted)reservationItem - The reservation item (optional, null, or partially defined items are accepted)public void execute(ISessionResultListener listener)
ISessionAsyncOperation
execute in interface ISessionAsyncOperationlistener - The listener responsible for processing the results or exceptions of this operation request
public ISessionOperationResult execute()
throws ServerFailureException,
java.lang.IllegalArgumentException,
CommunicationFailureException,
ForbiddenChargeException,
SessionOperationException
ISessionOperation
execute in interface ISessionOperationresult to be handled
ServerFailureException - thrown if operation execution fails on server side
java.lang.IllegalArgumentException - thrown if operation is not correctly configured
CommunicationFailureException - thrown if operation execution fails on client side
ForbiddenChargeException - thrown if the guiding data does not correspond to a valid accessible charge
SessionOperationException - thrown if an error such as session does not exist or session already exists is raisedprotected void enqueue(SessionChargingOperation.SessionChargingOperationItem item)
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||