com.highdeal.batchgroup.contract
Interface IContractBatchRatingGroupAssignmentPolicy


public interface IContractBatchRatingGroupAssignmentPolicy

This Java interface describes the Contract Batch Rating Group Assignment Policy Framework.

Implementation in Your Client Application

Customizing

You can customize your own batch rating group assignment policy by implementing this interface in a Java class plugged to the SAP CC system.

You design and implement the getBatchRatingGroupAssignment(..) method. This method is automatically called by the SAP CC system during the creation of provider contracts (see charging contract).

System Configuration

When you develop a Java class implementing this Java interface, you must configure the SAP CC system by specifying the name of your own Java class in the BATCH_RATING_GROUP_ASSIGNMENT_POLICY_CLASS system parameter.

You must deploy your customized Java class in the production system landscape. It must be in the classpath of the SAP CC system.

Note

Consult the SAP CC System Parameter Reference for more information about the BATCH_RATING_GROUP_ASSIGNMENT_POLICY_CLASS system parameter.

See Also:
BatchRatingGroupIdentifier, IBatchRatingGroupsAccessor

Method Summary
 BatchRatingGroupIdentifier getBatchRatingGroupAssignment(com.highdeal.contract.hci.ChargingContractRevisionModel chargingContract, IBatchRatingGroupsAccessor batchRatingGroupsAccessor)
          Invoked to retrieve the batch rating group identifier of a new contract.
 

Method Detail

getBatchRatingGroupAssignment

BatchRatingGroupIdentifier getBatchRatingGroupAssignment(com.highdeal.contract.hci.ChargingContractRevisionModel chargingContract,
                                                         IBatchRatingGroupsAccessor batchRatingGroupsAccessor)
                                                         throws BatchRatingGroupIdentifierException
Invoked to retrieve the batch rating group identifier of a new contract.

Parameters:
chargingContract - The charging contract to create
batchRatingGroupsAccessor - The batch rating groups accessor used to get information about the batch rating groups
Returns:
The batch rating group identifier of the contract to create. Cannot return null, otherwise if there is no batch rating group identifier for the new contract returned a BatchRatingGroupException exception is returned.
Throws:
BatchRatingGroupIdentifierException - if an error occurs during the assignment of a batch rating group identifier for the specified charging contract

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)