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.
  • Field Details

  • Constructor Details

    • PolicyConfig

      public PolicyConfig()
      Constructor
  • Method Details

    • createInstance

      public oracle.communication.brm.charging.util.directevolution.DEvolvable createInstance()
      Specified by:
      createInstance in interface oracle.communication.brm.charging.util.directevolution.DEvolvable
    • giveInitializerTo

      public void giveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper evolvableHelper)
      Specified by:
      giveInitializerTo in interface oracle.communication.brm.charging.util.directevolution.DEvolvable
      Overrides:
      giveInitializerTo in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • setPolicyExtendedInfoGroup

      public void setPolicyExtendedInfoGroup(List<PolicyExtendedInfo> policyExtendedInfoGroup)
      Setter for policyExtendedInfoGroup
      Parameters:
      policyExtendedInfoGroup - policyExtendedInfoGroup
    • getPolicyExtendedInfoGroup

      public List<PolicyExtendedInfo> getPolicyExtendedInfoGroup()
      gets the extended into collection for pof serialization
      Returns:
      the extended into collection
    • setToleranceConfigMappingGroup

      public void setToleranceConfigMappingGroup(List<ToleranceConfig> toleranceMappingDetailsList)
      Setter for policy tolerance details
      Parameters:
      toleranceMappingDetailsList - toleranceMappingDetailsList
    • getToleranceMappings

      public List<ToleranceConfig> getToleranceMappings()
      Returns:
      the tolerance mapping details
    • getPolicyTolerance

      public BigDecimal getPolicyTolerance(Integer beId)
      Description copied from interface: PolicyConfigMBean
      Returns the tolerance value configured for a balance element
      Specified by:
      getPolicyTolerance in interface PolicyConfigMBean
      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: PolicyConfigMBean
      Sets the policy to use when no policy counters are available.
      Specified by:
      setSyRejectNoCounters in interface PolicyConfigMBean
      Parameters:
      reject - Boolean to indicate whether to return a successful SLA.
    • getSyRejectNoCounters

      public boolean getSyRejectNoCounters()
      Description copied from interface: PolicyConfigMBean
      Returns the policy to use when no policy counters are available.
      Specified by:
      getSyRejectNoCounters in interface PolicyConfigMBean
      Returns:
      Boolean to indicate whether to return a successful SLA.
    • setPolicyTolerance

      public void setPolicyTolerance(Integer beId, String tolerance)
      Description copied from interface: PolicyConfigMBean
      Sets the tolerance value for the given balance element id
      Specified by:
      setPolicyTolerance in interface PolicyConfigMBean
      Parameters:
      beId - Numeric Id of the balance element
      tolerance - Tolerance value to be set
    • getDslMappings

      public Map<String,String> getDslMappings()
      Description copied from interface: PolicyConfigMBean
      Get the complete mapping of extended info with extended info alias as key.
      Specified by:
      getDslMappings in interface PolicyConfigMBean
      Returns:
      the Map of extended info
    • getDsl

      public String getDsl(String alias)
      Description copied from interface: PolicyConfigMBean
      Get the dsl (abstract format) for a extended info alias.
      Specified by:
      getDsl in interface PolicyConfigMBean
      Parameters:
      alias - extended info alias
      Returns:
      dsl
    • setDsl

      public void setDsl(int dataReference, String alias, String dsl)
      Description copied from interface: PolicyConfigMBean
      Sets the extended info.
      Specified by:
      setDsl in interface PolicyConfigMBean
      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. customerId
      dsl - dsl (abstract format). eg. getobject(customer/customerInfo)
    • deleteDsl

      public String deleteDsl(String alias)
      Description copied from interface: PolicyConfigMBean
      Deletes a extended info.
      Specified by:
      deleteDsl in interface PolicyConfigMBean
      Parameters:
      alias - extended info alias
      Returns:
      alias if specified alias is present and deleted successfully else null
    • deletePolicyTolerance

      public Integer deletePolicyTolerance(Integer beId)
      Description copied from interface: PolicyConfigMBean
      Deletes the tolerance for a balance element
      Specified by:
      deletePolicyTolerance in interface PolicyConfigMBean
      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

      public String getAlias(int dataReference)
      Description copied from interface: PolicyConfigMBean
      Get the alias associated with the data reference
      Specified by:
      getAlias in interface PolicyConfigMBean
      Parameters:
      dataReference - number to fetch the alias for
      Returns:
      alias (name of preference) associated with the provided data reference
    • getPolicyExtendedInfo

      public PolicyExtendedInfo getPolicyExtendedInfo(int dataReference)
      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.ConfigurationBean
      Method used to persist and synchronize all app configuration beans to charging-settings.xml.
      Specified by:
      republishAll in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
    • handlePrintConfiguration

      protected void handlePrintConfiguration(org.apache.logging.log4j.Logger logger)
      Description copied from class: oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
      Method used by subclasses to dump their configuration settings to a log file.
      Specified by:
      handlePrintConfiguration in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
      Parameters:
      logger - the logger is provided to subclassers for writing their config values.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean