Class PolicyConfig
java.lang.Object
java.util.Observable
oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
oracle.communication.brm.charging.appconfiguration.beans.policy.PolicyConfig
- All Implemented Interfaces:
Cloneable,PolicyConfigMBean,oracle.communication.brm.charging.appconfiguration.ConfigurationBean,oracle.communication.brm.charging.util.directevolution.DEvolvable
public class PolicyConfig
extends oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
implements PolicyConfigMBean
This class represents the configuration bean for the PolicyConfig.
The bean is populated with values that are present in an xml configuration file.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
CONFIG_CLASS, M_BEAN_CATEGORY, NAME, POF_IMPL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionoracle.communication.brm.charging.util.directevolution.DEvolvableDeletes a extended info.deletePolicyTolerance(Integer beId) Deletes the tolerance for a balance elementbooleangetAlias(int dataReference) Get the alias associated with the data referenceGet the dsl (abstract format) for a extended info alias.Get the complete mapping of extended info with extended info alias as key.getPolicyExtendedInfo(int dataReference) Returns the PolicyExtendedInfo associated with the data referencegets the extended into collection for pof serializationgetPolicyTolerance(Integer beId) Returns the tolerance value configured for a balance elementbooleanReturns the policy to use when no policy counters are available.voidgiveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper evolvableHelper) protected voidhandlePrintConfiguration(org.apache.logging.log4j.Logger logger) Method used by subclasses to dump their configuration settings to a log file.inthashCode()voidMethod used to persist and synchronize all app configuration beans to charging-settings.xml.voidSets the extended info.voidsetPolicyExtendedInfoGroup(List<PolicyExtendedInfo> policyExtendedInfoGroup) Setter for policyExtendedInfoGroupvoidsetPolicyTolerance(Integer beId, String tolerance) Sets the tolerance value for the given balance element idvoidsetSyRejectNoCounters(boolean reject) Sets the policy to use when no policy counters are available.voidsetToleranceConfigMappingGroup(List<ToleranceConfig> toleranceMappingDetailsList) Setter for policy tolerance detailsMethods inherited from class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
broadcast, clone, getBeanId, getEvolutionData, getFilename, getImpl, getModifyingClusterName, getModifyingMemberId, printConfiguration, publish, publish, publishArrayItem, publishClearArray, publishRemoveArrayItem, registerBean, setBeanId, setEvolutionData, setFilename, setModifyingClusterName, toBinary, toString, unRegisterBeanMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
POF_EXTENDED_INFO
public static final int POF_EXTENDED_INFO- See Also:
-
POF_TOLERANCE_CONFIG
public static final int POF_TOLERANCE_CONFIG- See Also:
-
POF_REJECT_NO_COUNTERS
public static final int POF_REJECT_NO_COUNTERS- See Also:
-
-
Constructor Details
-
PolicyConfig
public PolicyConfig()Constructor
-
-
Method Details
-
createInstance
public oracle.communication.brm.charging.util.directevolution.DEvolvable createInstance()- Specified by:
createInstancein interfaceoracle.communication.brm.charging.util.directevolution.DEvolvable
-
giveInitializerTo
public void giveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper evolvableHelper) - Specified by:
giveInitializerToin interfaceoracle.communication.brm.charging.util.directevolution.DEvolvable- Overrides:
giveInitializerToin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-
setPolicyExtendedInfoGroup
Setter for policyExtendedInfoGroup- Parameters:
policyExtendedInfoGroup- policyExtendedInfoGroup
-
getPolicyExtendedInfoGroup
gets the extended into collection for pof serialization- Returns:
- the extended into collection
-
setToleranceConfigMappingGroup
Setter for policy tolerance details- Parameters:
toleranceMappingDetailsList- toleranceMappingDetailsList
-
getToleranceMappings
- Returns:
- the tolerance mapping details
-
getPolicyTolerance
Description copied from interface:PolicyConfigMBeanReturns the tolerance value configured for a balance element- Specified by:
getPolicyTolerancein interfacePolicyConfigMBean- Parameters:
beId- Balance Element Numeric Id- Returns:
- The tolerance value configured for the balance element
-
setSyRejectNoCounters
public void setSyRejectNoCounters(boolean reject) Description copied from interface:PolicyConfigMBeanSets the policy to use when no policy counters are available.- Specified by:
setSyRejectNoCountersin interfacePolicyConfigMBean- Parameters:
reject- Boolean to indicate whether to return a successful SLA.
-
getSyRejectNoCounters
public boolean getSyRejectNoCounters()Description copied from interface:PolicyConfigMBeanReturns the policy to use when no policy counters are available.- Specified by:
getSyRejectNoCountersin interfacePolicyConfigMBean- Returns:
- Boolean to indicate whether to return a successful SLA.
-
setPolicyTolerance
Description copied from interface:PolicyConfigMBeanSets the tolerance value for the given balance element id- Specified by:
setPolicyTolerancein interfacePolicyConfigMBean- Parameters:
beId- Numeric Id of the balance elementtolerance- Tolerance value to be set
-
getDslMappings
Description copied from interface:PolicyConfigMBeanGet the complete mapping of extended info with extended info alias as key.- Specified by:
getDslMappingsin interfacePolicyConfigMBean- Returns:
- the Map of extended info
-
getDsl
Description copied from interface:PolicyConfigMBeanGet the dsl (abstract format) for a extended info alias.- Specified by:
getDslin interfacePolicyConfigMBean- Parameters:
alias- extended info alias- Returns:
- dsl
-
setDsl
Description copied from interface:PolicyConfigMBeanSets the extended info.- Specified by:
setDslin interfacePolicyConfigMBean- Parameters:
dataReference- value of the data reference AVP associated with this preference. Set this value to -1 if this number is not applicable.alias- extended info alias. eg. customerIddsl- dsl (abstract format). eg. getobject(customer/customerInfo)
-
deleteDsl
Description copied from interface:PolicyConfigMBeanDeletes a extended info.- Specified by:
deleteDslin interfacePolicyConfigMBean- Parameters:
alias- extended info alias- Returns:
- alias if specified alias is present and deleted successfully else null
-
deletePolicyTolerance
Description copied from interface:PolicyConfigMBeanDeletes the tolerance for a balance element- Specified by:
deletePolicyTolerancein interfacePolicyConfigMBean- Parameters:
beId- Numeric Id of the Balance Element- Returns:
- Numeric Id of the Balance Element if the given id is present and deleted successful, null otherwise
-
getAlias
Description copied from interface:PolicyConfigMBeanGet the alias associated with the data reference- Specified by:
getAliasin interfacePolicyConfigMBean- Parameters:
dataReference- number to fetch the alias for- Returns:
- alias (name of preference) associated with the provided data reference
-
getPolicyExtendedInfo
Returns the PolicyExtendedInfo associated with the data reference- Parameters:
dataReference- number to fetch the PolicyExtendedInfo for- Returns:
- PolicyExtendedInfo associated with the data reference
-
republishAll
public void republishAll()Description copied from interface:oracle.communication.brm.charging.appconfiguration.ConfigurationBeanMethod used to persist and synchronize all app configuration beans to charging-settings.xml.- Specified by:
republishAllin interfaceoracle.communication.brm.charging.appconfiguration.ConfigurationBean
-
handlePrintConfiguration
protected void handlePrintConfiguration(org.apache.logging.log4j.Logger logger) Description copied from class:oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBeanMethod used by subclasses to dump their configuration settings to a log file.- Specified by:
handlePrintConfigurationin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean- Parameters:
logger- the logger is provided to subclassers for writing their config values.
-
equals
- Overrides:
equalsin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-
hashCode
public int hashCode()- Overrides:
hashCodein classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-