Package com.highdeal.pnr.hci
Interface RatingContextDescription
- All Known Implementing Classes:
RatingContextDescriptionProvider
public interface RatingContextDescription
FOR INTERNAL USE ONLY -
This
Java interface allows to put/get properties from a rating context.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe allowance flag defined if the charge component is an allowance component, a shared allowance component or not an allowance.static interfaceAllows to filterPropertyDescriptionModel -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for default property account event datestatic final StringConstant for the property that represents the state of a prepaid accountstatic final StringConstant for default property activation date, that is the activation date for a recurring ratestatic final StringConstant for default property agreement cancellation datestatic final StringConstant for default property agreement subscription datestatic final StringConstant for default property agreement resumption datestatic final StringConstant for default property agreement resumption datestatic final StringConstant for default property agreement suspension datestatic final StringConstant for the property that represents the unique identifier of an allowance.static final StringConstant for the property that represents the end date of an allowance.static final StringConstant for the property that represents the end date of an allowance.static final StringConstant for the property that represents the start date of an allowance.static final StringConstant for the property that represents the share identifier of an allowance.static final StringConstant for the property that represents the start date of an allowance.static final StringConstant for the property that represents the unique identifier of an allowance.static final StringConstant for the property that represents the amount of a prepaid balancestatic final StringConstant for the property that represents the amount from a previous ratingstatic final StringConstant for the property that represents the currency code from a previous ratingstatic final StringConstant for the property that represents the currency code from a previous ratingstatic final StringConstant for the property that represents the blocked date of a prepaid balancestatic final StringConstant for the property that represents the description of the chargestatic final StringConstant for name of the chargeable itemstatic final StringConstant for the property that represents the closed date of a prepaid balancestatic final StringConstant for default property consumption datestatic final StringConstant for default property contract IDstatic final StringConstant for default property contract item external IDstatic final StringConstant for default property contract item IDstatic final StringConstant for the property that represents the currency code of a prepaid accountstatic final DateConstant for the maximum usable date in the system:9999-01-01T00:00:00.000 UTC.static final StringConstant for dependent relation typestatic final StringConstant for the property that represents the empty limit amount of a prepaid accountstatic final StringA possible value forRESTRICTIONstatic final StringTheenumclass that represents allowed values inENUMERATIONstatic final StringThe name of additional info that defines the type of enumeration applied on a Property.static final StringA possible value forENUMERATION_TYPEstatic final StringConstant for the property that represents the currency code of a prepaid accountstatic final StringConstant for the property that represents the locked date of a prepaid balancestatic final StringConstant for master relation typestatic final StringConstant for when a recurring rate is not prorated.static final StringConstant for when a recurring rate is not refunded.static final StringConstant for name of the price planstatic final StringConstant for pricing macro relation typestatic final StringConstant for name of the productstatic final StringConstant for when a recurring rate is prorated.static final Stringstatic final StringConstant for the property that tells if the amount was prorated or notstatic final StringConstant for the property that tells if the amount was refunded or notstatic final StringConstant for the property that represents the period start in case of a recurring ratestatic final StringConstant for the property that represents the reference period start in case of a recurring ratestatic final StringConstant for the property that represents the period end in case of a recurring rate.static final StringConstant for the property that represents the reference period end in case of a recurring ratestatic final StringConstant for the property describing the amount of the refill processstatic final StringConstant for the property describing the currency code of the refill logicstatic final StringConstant for default property refill datestatic final StringConstant for the property describing the ISO currency code of the refill processstatic final StringConstant for when a recurring rate is refunded.static final StringThe name of additional info that defines the type of restriction applied on a Property.static final StringConstant for default property service IDstatic final StringConstant for the property that represents the threshold amount of an account eventstatic final StringConstant for default property triggering contract IDstatic final StringConstant for default property triggering contract item external IDstatic final StringConstant for the property that represents the unrounded amount of a transactionstatic final StringConstant for default property user service ID -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidavailableCINamesForCharging(String ciName) Returns all available Chargeable item description of the context.availableCINamesForRating(String ciName) Returns all available Chargeable item description of the context.voidclean()Cleans the context.voidClean the cache of Chargeable Item Description or Class used by the methodgetAllChargeableItemClassCodes().Gets all properties from all categories.com.highdeal.allowance.allowanceeventclass.hci.AllowanceEventClassModelgetAllowanceEventClass(String ecName) Gets the use allowance flag.Returns all available event names of the context.Gets all property descriptions that matches the filter.getAvailablePropertyNames(int propertyType) Gets all properties of the specified type.getAvailablePropertyNames(int propertyType, boolean strict) Gets all properties of the specified type.getAvailablePropertyNames(int propertyType, String category) Gets all properties of the specified type and category.getAvailablePropertyNames(int propertyType, String category, List<AdditionalInfoModel> criteria) Gets the name of all properties of the specified type and category of which the additional information matches the given one.getAvailablePropertyNames(int propertyType, List<AdditionalInfoModel> criteria) Gets all properties of the specified type and matching the given criteria.Gets all property names that matches the filter.getAvailablePropertyNames(String category) Gets all property names from a category.getCIDescriptionFor(Object objectCode) Gets the currency code.Returns the descriptions for the default properties used by the rating process.Returns the descriptions for the default properties used by the refill process.booleanReturns true if charge component is an allowance logic (shared or not).booleanReturns true if charge component uses charging contract.getObjectCodeFor(UsageChargeModel model) getObjectCodeFor(UsageRateModel model) getObjectCodeForCI(String ciName, List<ProductModel> products) getPropertyByName(String longPropertyName) Returns the description of the property by this full name.Gets the relation type.booleanisAllowanceEventClassValid(String ecName) Returns true if the Allowance Event Class exists.booleanisChargeableItemClassValid(Object objectCode) Returns true if the Chargeable item is a valid one.booleanReturns true if the Chargeable item is a valid one.booleanisEventValid(String eventName) Returns true if the event name is a valid one.booleanReturns true if the charge component is managed by Cockpit.booleanbooleanisPropertyValid(String longPropertyName, int type) Test if a property from a category is valid, without taking any restriction into account.booleanisPropertyValid(String longPropertyName, int type, boolean strict) Test if a property from a category is valid.booleanisPropertyValid(String propertyName, DetailCategory category) Tests if a property from a category is valid.booleanisRefillItemValid(String riName) Returns true if the Refill Item Class exists.voidSets the use allowance flag.voidsetCurrencyCode(String code) Sets the currency code.voidsetIsContractFlag(boolean flag) Sets the use charging contract flag.voidsetManagedByCockpit(boolean isManagedByCockpit) Sets the managed by cockpit flag.voidsetObjectCodeFor(UsageChargeModel model, Object objectCode) voidsetObjectCodeFor(UsageRateModel model, Object objectCode) voidsetOneShotTriggerName(String oneShotTriggerName) voidsetPropertyDescription(PropertyDescriptionModel pd, DetailCategory category) Adds a property with its description to the context.voidsetPropertyDescription(String name, int type, DetailCategory category) Adds a property with its description to the context.voidsetPropertyDescription(String name, int type, DetailCategory category, List<AdditionalInfoModel> additionalInfo) Adds a property with its description to the context.voidsetRelationType(String type) Sets the relation type.voidsetSharedObjectsRetriever(SharedObjectsRetriever retriever)
-
Field Details
-
MASTER_TYPE
Constant for master relation type- See Also:
-
DEPENDENT_TYPE
Constant for dependent relation type- See Also:
-
PRICING_MACRO_TYPE
Constant for pricing macro relation type- See Also:
-
AGREEMENT_EFFECTIVE_DATE
Constant for default property agreement subscription date- See Also:
-
AGREEMENT_CANCELLATION_DATE
Constant for default property agreement cancellation date- See Also:
-
AGREEMENT_SUSPENSION_DATE
Constant for default property agreement suspension date- See Also:
-
AGREEMENT_RESUMPTION_DATE
Constant for default property agreement resumption date- See Also:
-
AGREEMENT_ENDCOMMITMENT_DATE
Constant for default property agreement resumption date- See Also:
-
PRICE_PLAN_NAME
Constant for name of the price plan- See Also:
-
CHARGE_DESCRIPTION
Constant for the property that represents the description of the charge- See Also:
-
BASE_AMOUNT
Constant for the property that represents the amount from a previous rating- See Also:
-
BASE_CURRENCY_CODE
Constant for the property that represents the currency code from a previous rating- See Also:
-
BASE_ISO_CURRENCY_CODE
Constant for the property that represents the currency code from a previous rating- See Also:
-
PRODUCT_CODE
Constant for name of the product- See Also:
-
CI_NAME
Constant for name of the chargeable item- See Also:
-
CONSUMPTION_DATE
Constant for default property consumption date- See Also:
-
USER_SERVICE_ID
Constant for default property user service ID- See Also:
-
CONTRACT_ID
Constant for default property contract ID- See Also:
-
CONTRACT_ITEM_ID
Constant for default property contract item ID- See Also:
-
CONTRACT_ITEM_EXTERNAL_ID
Constant for default property contract item external ID- See Also:
-
TRIGGERING_CONTRACT_ID
Constant for default property triggering contract ID- See Also:
-
TRIGGERING_CONTRACT_ITEM_EXTERNAL_ID
Constant for default property triggering contract item external ID- See Also:
-
SERVICE_ID
Constant for default property service ID- See Also:
-
RECURRING_START
Constant for the property that represents the period start in case of a recurring rate- See Also:
-
RECURRING_STOP
Constant for the property that represents the period end in case of a recurring rate.- See Also:
-
RECURRING_START_REF
Constant for the property that represents the reference period start in case of a recurring rate- See Also:
-
RECURRING_STOP_REF
Constant for the property that represents the reference period end in case of a recurring rate- See Also:
-
RECURRING_PRORATA
Constant for the property that tells if the amount was prorated or not- See Also:
-
RECURRING_PREPAID_TYPE
- See Also:
-
ACTIVATION_DATE
Constant for default property activation date, that is the activation date for a recurring rate- See Also:
-
RECURRING_REFUND
Constant for the property that tells if the amount was refunded or not- See Also:
-
UNROUNDED_AMOUNT
Constant for the property that represents the unrounded amount of a transaction- See Also:
-
CURRENCY_CODE
Constant for the property that represents the currency code of a prepaid account- See Also:
-
ISO_CURRENCY_CODE
Constant for the property that represents the currency code of a prepaid account- See Also:
-
EMPTY_LIMIT
Constant for the property that represents the empty limit amount of a prepaid account- See Also:
-
BALANCE_AMOUNT
Constant for the property that represents the amount of a prepaid balance- See Also:
-
ACCOUNT_STATE
Constant for the property that represents the state of a prepaid account- See Also:
-
RESTRICTION
The name of additional info that defines the type of restriction applied on a Property. Currently (version 3.0 of SAP CC) restriction is used only with propertyACCOUNT_STATE.- See Also:
-
ENUMERATION
A possible value forRESTRICTION- See Also:
-
ENUMERATION_CLASS
Theenumclass that represents allowed values inENUMERATION- See Also:
-
ENUMERATION_TYPE
The name of additional info that defines the type of enumeration applied on a Property. Currently (version 5.0 of SAP CC) restriction is used only with propertyACCOUNT_STATE.- See Also:
-
INTERNAL_ENUMERATION
A possible value forENUMERATION_TYPE- See Also:
-
REFILL_DATE
Constant for default property refill date- See Also:
-
ACCOUNT_EVENT_DATE
Constant for default property account event date- See Also:
-
THRESHOLD_AMOUNT
Constant for the property that represents the threshold amount of an account event- See Also:
-
REFILL_AMOUNT_PROPERTY_NAME
Constant for the property describing the amount of the refill process- See Also:
-
REFILL_CURRENCY_PROPERTY_NAME
Constant for the property describing the currency code of the refill logic- See Also:
-
REFILL_ISO_CURRENCY_PROPERTY_NAME
Constant for the property describing the ISO currency code of the refill process- See Also:
-
LOCKED_DATE
Constant for the property that represents the locked date of a prepaid balance- See Also:
-
BLOCKED_DATE
Constant for the property that represents the blocked date of a prepaid balance- See Also:
-
CLOSED_DATE
Constant for the property that represents the closed date of a prepaid balance- See Also:
-
ALLOWANCE_START_DATE
Constant for the property that represents the start date of an allowance.- See Also:
-
ALLOWANCE_END_DATE
Constant for the property that represents the end date of an allowance.- See Also:
-
ALLOWANCE_PRE_START_DATE
Constant for the property that represents the start date of an allowance.- See Also:
-
ALLOWANCE_PRE_END_DATE
Constant for the property that represents the end date of an allowance.- See Also:
-
ALLOWANCE_UNIQUE_IDENTIFIER
Constant for the property that represents the unique identifier of an allowance.- See Also:
-
ALLOWANCE_SHARE_IDENTIFIER
Constant for the property that represents the share identifier of an allowance.- See Also:
-
ALLOWANCE_CREATION_DATE
Constant for the property that represents the unique identifier of an allowance.- See Also:
-
DATE_MAX_VALUE
Constant for the maximum usable date in the system:9999-01-01T00:00:00.000 UTC. -
PRORATED
Constant for when a recurring rate is prorated.- See Also:
-
NOT_PRORATED
Constant for when a recurring rate is not prorated.- See Also:
-
REFUNDED
Constant for when a recurring rate is refunded.- See Also:
-
NOT_REFUNDED
Constant for when a recurring rate is not refunded.- See Also:
-
-
Method Details
-
clean
void clean()Cleans the context. -
getCurrencyCode
String getCurrencyCode()Gets the currency code.- Returns:
- The currency code
-
setCurrencyCode
Sets the currency code.- Parameters:
code- The currency code
-
getIsContractFlag
boolean getIsContractFlag()Returns true if charge component uses charging contract.- Returns:
trueif charge component uses charging contract, false otherwise.
-
setIsContractFlag
void setIsContractFlag(boolean flag) Sets the use charging contract flag.- Parameters:
flag- The flag to define if charge component uses charging contract
-
getIsAllowanceFlag
boolean getIsAllowanceFlag()Returns true if charge component is an allowance logic (shared or not).- Returns:
- true if charge component is an allowance logic (shared or not), false otherwise.
-
setAllowanceFlag
Sets the use allowance flag.- Parameters:
flag- the flag to define if charge component is an allowance component.
-
setManagedByCockpit
void setManagedByCockpit(boolean isManagedByCockpit) Sets the managed by cockpit flag.- Parameters:
isManagedByCockpit- the flag to define if the charge component is managed by Cockpit or not
-
isManagedByCockpit
boolean isManagedByCockpit()Returns true if the charge component is managed by Cockpit.- Returns:
- true if the charge component is managed by Cockpit, false otherwise
-
getAllowanceFlag
RatingContextDescription.AllowanceFlag getAllowanceFlag()Gets the use allowance flag.- Returns:
- the flag that define if charge component is an allowance component, a shared allowance component or not an allowance.
-
setPropertyDescription
Adds a property with its description to the context.- Property name can be any string or predefined one:
agreement_creation_date,agreement_cancellation_date,agreement_suspension_date,agreement_cancellation_date,agreement_end_commitment_date,price_plan_name,charge_description,base_amount,base_currency_code,product_code,ci_name,consumption_date,access_login,service_identifier,recurring_start,recurring_stop,recurring_start_ref,recurring_stop_ref,recurring_prorata,activation_date,unrounded_amount- Allowed property types are:
number,string,date- Parameters:
name- The property nametype- The property typecategory- Thecategoryof the property
- Property name can be any string or predefined one:
-
setPropertyDescription
void setPropertyDescription(String name, int type, DetailCategory category, List<AdditionalInfoModel> additionalInfo) Adds a property with its description to the context.- Property name can be any string or predefined one:
agreement_creation_date,agreement_cancellation_date,agreement_suspension_date,agreement_cancellation_date,agreement_end_commitment_date,price_plan_name,charge_description,base_amount,base_currency_code,product_code,ci_name,consumption_date,access_login,service_identifier,recurring_start,recurring_stop,recurring_start_ref,recurring_stop_ref,recurring_prorata,activation_date,unrounded_amount- Allowed property types are:
number,string,date- Parameters:
name- The property nametype- The property typecategory- Thecategoryof the propertyadditionalInfo- Theadditional informationof the property. Passing innullis equivalent to passing in an empty list.
- Property name can be any string or predefined one:
-
setPropertyDescription
Adds a property with its description to the context. SeesetPropertyDescriptionfor allowed categories.- Parameters:
pd- The property descriptioncategory- The category of the property
-
getAvailablePropertyNames
Gets all property names that matches the filter.- Parameters:
filter- The filter that describes the constraints to check- Returns:
- A list of property name
-
getAvailableFullNamedProperties
List<PropertyDescriptionModel> getAvailableFullNamedProperties(RatingContextDescription.IPropertyFilter filter) Gets all property descriptions that matches the filter.- Parameters:
filter- The filter that describes the constraints to check- Returns:
- A list of property descriptions
-
getAvailablePropertyNames
Gets all properties of the specified type. SeesetPropertyDescriptionfor allowed types.- Parameters:
propertyType- The type of the property- Returns:
- A list of String
-
getAvailablePropertyNames
Gets all properties of the specified type and matching the given criteria. SeesetPropertyDescriptionfor allowed types.- Parameters:
propertyType- The type of the propertycriteria- The additional information that must be present in the returnedproperty description models- Returns:
- A list of String
-
getAvailablePropertyNames
Gets all properties of the specified type. seesetPropertyDescriptionfor allowed types.- Parameters:
propertyType- the type of the property.strict- true if the types must be strictly equal.- Returns:
- a list of String.
-
getAvailablePropertyNames
Gets all property names from a category. seesetPropertyDescriptionfor allowed categories.- Parameters:
category- the category of the property.- Returns:
- a list of String.
-
getAvailablePropertyNames
Gets all properties of the specified type and category. seesetPropertyDescriptionfor allowed types. seesetPropertyDescriptionfor allowed categories.- Parameters:
propertyType- the type of the property.category- the category of the property.- Returns:
- a list of String.
-
getAvailablePropertyNames
List<String> getAvailablePropertyNames(int propertyType, String category, List<AdditionalInfoModel> criteria) Gets the name of all properties of the specified type and category of which the additional information matches the given one. seesetPropertyDescriptionfor allowed types. seesetPropertyDescriptionfor allowed categories.- Parameters:
propertyType- the type of the property.category- the category of the property.criteria- the additional information that must be present in the returnedproperty description models.- Returns:
- a list of names of
property description models.
-
getAllAvailableFullNamedProperties
List<PropertyDescriptionModel> getAllAvailableFullNamedProperties()Gets all properties from all categories.- Returns:
- a List of
property description model.
-
isPropertyValid
Tests if a property from a category is valid. seesetPropertyDescriptionfor allowed categories and names.- Parameters:
propertyName- the property name.category- the category of the property.- Returns:
- true if the property is valid, false otherwise.
-
isPropertyValid
Test if a property from a category is valid. seesetPropertyDescriptionfor allowed types and names.- Parameters:
longPropertyName- the property name.type- the property type.strict- true if the types must be strictly equal.- Returns:
- true if the property is valid, false otherwise.
-
isPropertyValid
Test if a property from a category is valid, without taking any restriction into account. seesetPropertyDescriptionfor allowed types and names.- Parameters:
longPropertyName- the property name.type- the property type.- Returns:
- true if the property is valid, false otherwise.
-
getPropertyByName
Returns the description of the property by this full name. Only one occurrence can be found, since each new declaration overwrites the previous one.nullis returned if there is no property by this name.- Parameters:
longPropertyName- full name of the property looked for- Returns:
- the description of the property whose name is specified, or
nullif there is none
-
availableCINamesForRating
Returns all available Chargeable item description of the context.- Parameters:
ciName- a Chargeable item name if filtering is desired.- Returns:
- a list of
Chargeable item description.
-
availableCINamesForCharging
Returns all available Chargeable item description of the context.- Parameters:
ciName- a Chargeable item name if filtering is desired.- Returns:
- a list of
Chargeable item description.
-
getAvailableEventNames
Returns all available event names of the context.- Returns:
- a list of event names (string).
-
isEventValid
Returns true if the event name is a valid one.- Parameters:
eventName- the name of the event.- Returns:
- true if the event name is valid, false otherwise.
-
isCIValid
Returns true if the Chargeable item is a valid one.- Parameters:
ciName- a Chargeable item name.- Returns:
- true if the Chargeable item name is valid, false otherwise.
-
isChargeableItemClassValid
Returns true if the Chargeable item is a valid one.- Parameters:
objectCode- the code of a Chargeable item .- Returns:
- true if the Chargeable item name is valid, false otherwise.
-
isRefillItemValid
Returns true if the Refill Item Class exists.- Parameters:
riName- a Refill Item Class name.- Returns:
- true if the Refill Item Class exists, false otherwise.
-
isPropagationSensitive
boolean isPropagationSensitive() -
getRelationType
String getRelationType()Gets the relation type. Returned values are :- Returns:
- the relation type.
-
setRelationType
Sets the relation type.- Parameters:
type- the relation type. Allowed values are :
-
getDefaultPropertyDescriptions
List<PropertyDescriptionModel> getDefaultPropertyDescriptions()Returns the descriptions for the default properties used by the rating process. The vector containsPropertyDescriptionModel.- Returns:
- a list of
property description models.
-
getDefaultPropertyDescriptionsForRefill
List<PropertyDescriptionModel> getDefaultPropertyDescriptionsForRefill()Returns the descriptions for the default properties used by the refill process. The vector containsPropertyDescriptionModel.- Returns:
- a list of
property description models.
-
addProductCIDescription
-
addUsedCIDescriptionForRating
-
addUsedCIDescriptionForCharging
-
isAllowanceEventClassValid
Returns true if the Allowance Event Class exists.- Parameters:
ecName- a Allowance Event Class name.- Returns:
- true if the Allowance Event Class exists, false otherwise.
-
getObjectCodeForCI
- Parameters:
ciName-products-- Returns:
- an ObjectCode
-
getObjectCodeFor
- Parameters:
model-- Returns:
- an ObjectCode
-
setObjectCodeFor
- Parameters:
model-objectCode- is an ObjectCode
-
getObjectCodeFor
- Parameters:
model-- Returns:
- an ObjectCode
-
setObjectCodeFor
- Parameters:
model-objectCode- Is an ObjectCode
-
getCIDescriptionFor
- Parameters:
objectCode- Is an ObjectCode (of a Chargeable Item Description or Class)- Returns:
- A ChargeableItemDescriptionModel
-
getAllChargeableItemClassCodes
- Returns:
- All the ObjectCode of Chargeable Item Description or Class
-
cleanAllChargeableItemClassCodes
void cleanAllChargeableItemClassCodes()Clean the cache of Chargeable Item Description or Class used by the methodgetAllChargeableItemClassCodes(). -
getOneShotTriggerName
String getOneShotTriggerName() -
setOneShotTriggerName
-
getAllowanceEventClass
com.highdeal.allowance.allowanceeventclass.hci.AllowanceEventClassModel getAllowanceEventClass(String ecName) - Parameters:
ecName- a Allowance Event Class name.- Returns:
- a AllowanceEventRateModel
-