com.softwareag.centrasite.appl.framework.lcm.impl
Class LCRegistryObjectStateImpl

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.lcm.impl.LCStateImpl
      extended by com.softwareag.centrasite.appl.framework.lcm.impl.LCRegistryObjectStateImpl
All Implemented Interfaces:
LCRegistryObjectState, LCState

public class LCRegistryObjectStateImpl
extends LCStateImpl
implements LCRegistryObjectState

An implementation class which adds the get and set pending state functionality to an existing LCState implementation


Constructor Summary
LCRegistryObjectStateImpl(com.centrasite.lcmapi.LCRegistryObjectState genericLCROState, RegistryProvider registryProvider)
          Constructor for creating LCRegistryObjectState objects from a LCState
 
Method Summary
 LCState getPendingState()
          Get the pending state
 boolean isPendingStateChange()
          Check if the registry bean is pending state change
 
Methods inherited from class com.softwareag.centrasite.appl.framework.lcm.impl.LCStateImpl
addNextStates, getDescription, getGenericState, getName, getNextStates, getPreferredNexState, getStateConcept, isTransitionAllowed, removeNextState, setDescription, setName, setPreferredNextState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softwareag.centrasite.appl.framework.lcm.LCState
addNextStates, getDescription, getName, getNextStates, getPreferredNexState, getStateConcept, isTransitionAllowed, removeNextState, setDescription, setName, setPreferredNextState
 

Constructor Detail

LCRegistryObjectStateImpl

public LCRegistryObjectStateImpl(com.centrasite.lcmapi.LCRegistryObjectState genericLCROState,
                                 RegistryProvider registryProvider)
                          throws CSAppFrameworkException
Constructor for creating LCRegistryObjectState objects from a LCState

Throws:
CSAppFrameworkException
Method Detail

getPendingState

public LCState getPendingState()
                        throws CSAppFrameworkException
Get the pending state

Specified by:
getPendingState in interface LCRegistryObjectState
Returns:
pending state as LCState, null if there is no pending state
Throws:
CSAppFrameworkException - - if the LCM provider encounters an internal error

isPendingStateChange

public boolean isPendingStateChange()
                             throws CSAppFrameworkException
Check if the registry bean is pending state change

Specified by:
isPendingStateChange in interface LCRegistryObjectState
Returns:
true if the above condition met, false otherwise
Throws:
CSAppFrameworkException - - if the LCM provider encounters an internal error