java.lang.Object
java.util.Observable
oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
oracle.communication.brm.charging.appconfiguration.beans.productstate.LifecycleStateMapper
All Implemented Interfaces:
Cloneable, LifecycleStateMapperMBean, oracle.communication.brm.charging.appconfiguration.ConfigurationBean, oracle.communication.brm.charging.util.directevolution.DEvolvable

public class LifecycleStateMapper extends oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean implements LifecycleStateMapperMBean
This class represents configuration bean for lifecycle state mapping This class encapsulates information regarding lifecycle state with the name in ECE. This bean is constructed from the XML declaration corresponding to bean Id
  • Field Details

  • Constructor Details

    • LifecycleStateMapper

      public LifecycleStateMapper()
      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
    • 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.
    • setLifecycleStateMappingGroup

      public void setLifecycleStateMappingGroup(List<LifecycleState> lifecycleStateList)
      Sets lifecycle state map from lifecycleStateList. This method is called when this object is loaded into the ConfigurationBeanRepository. The values in the list are coming from the XML configuration. A map keyed on state name is constructed from the list passed and stored in the current bean.
      Parameters:
      lifecycleStateList - List containing state information
    • getLifecycleStateMapping

      public Map<Integer,LifecycleState> getLifecycleStateMapping()
      Get a map of lifecycle states
      Returns:
      a map of tax details keyed on tax code
    • addLifecycleState

      public void addLifecycleState(Integer state, String stateName)
      Description copied from interface: LifecycleStateMapperMBean
      Add the Lifecycle state mapper configuration.
      Specified by:
      addLifecycleState in interface LifecycleStateMapperMBean
      Parameters:
      state - lifecycle state ID
      stateName - lifecycle state name
    • getLifecycleStateName

      public String getLifecycleStateName(Integer state)
      Description copied from interface: LifecycleStateMapperMBean
      Get the state name associated with the state ID.
      Specified by:
      getLifecycleStateName in interface LifecycleStateMapperMBean
      Parameters:
      state - lifecycle state id
      Returns:
      state Name of lifecycle state
    • getLifecycleState

      public Integer getLifecycleState(String stateName)
      Description copied from interface: LifecycleStateMapperMBean
      Get the state associated with the name.
      Specified by:
      getLifecycleState in interface LifecycleStateMapperMBean
      Parameters:
      stateName - Name of lifecycle state
      Returns:
      state ID
    • 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
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean