Class LifecycleStateMapper
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringstatic final Stringstatic final StringValues below represent configuration value namesFields inherited from class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
CONFIG_CLASS, M_BEAN_CATEGORY, NAME, POF_IMPL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleState(Integer state, String stateName) Add the Lifecycle state mapper configuration.oracle.communication.brm.charging.util.directevolution.DEvolvablebooleangetLifecycleState(String stateName) Get the state associated with the name.Get a map of lifecycle statesgetLifecycleStateName(Integer state) Get the state name associated with the state ID.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.voidsetLifecycleStateMappingGroup(List<LifecycleState> lifecycleStateList) Sets lifecycle state map from lifecycleStateList.toString()Methods 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, unRegisterBeanMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
POF_LIFECYCLE_MAP
public static final int POF_LIFECYCLE_MAP- See Also:
-
STATE_NAME
Values below represent configuration value names- See Also:
-
STATE
- See Also:
-
STATE_CONFIGURATION_NODE
- See Also:
-
-
Constructor Details
-
LifecycleStateMapper
public LifecycleStateMapper()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
-
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.
-
setLifecycleStateMappingGroup
Sets lifecycle state map from lifecycleStateList. This method is called when this object is loaded into theConfigurationBeanRepository. 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
Get a map of lifecycle states- Returns:
- a map of tax details keyed on tax code
-
addLifecycleState
Description copied from interface:LifecycleStateMapperMBeanAdd the Lifecycle state mapper configuration.- Specified by:
addLifecycleStatein interfaceLifecycleStateMapperMBean- Parameters:
state- lifecycle state IDstateName- lifecycle state name
-
getLifecycleStateName
Description copied from interface:LifecycleStateMapperMBeanGet the state name associated with the state ID.- Specified by:
getLifecycleStateNamein interfaceLifecycleStateMapperMBean- Parameters:
state- lifecycle state id- Returns:
- state Name of lifecycle state
-
getLifecycleState
Description copied from interface:LifecycleStateMapperMBeanGet the state associated with the name.- Specified by:
getLifecycleStatein interfaceLifecycleStateMapperMBean- Parameters:
stateName- Name of lifecycle state- Returns:
- state ID
-
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
-
equals
- Overrides:
equalsin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-
hashCode
public int hashCode()- Overrides:
hashCodein classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-
toString
- Overrides:
toStringin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-