com.softwareag.centrasite.appl.framework.lcm.beans
Class LCAwareDynamicRegistryBean

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.beans.DynamicRegistryBean
      extended by com.softwareag.centrasite.appl.framework.lcm.beans.LCAwareDynamicRegistryBean
All Implemented Interfaces:
RegistryBean, RevisionBean, LifeCycleAware
Direct Known Subclasses:
LCAwareRegistryObjectImpl

public class LCAwareDynamicRegistryBean
extends DynamicRegistryBean
implements LifeCycleAware

Implementation class for derivation of concrete Life Cycle Aware subclasses.


Constructor Summary
LCAwareDynamicRegistryBean()
           
 
Method Summary
 void approveStateChange()
          Approves the state change
 boolean equals(java.lang.Object other)
           
 LCModel findLCModel()
          Find the LCModel that is assigned to the registryBean
 LCRegistryObjectState getLCState()
          Returns the current state of the registryBean
 int hashCode()
           
 void rejectStateChange()
          Rejects the state change
 void setBeanPool(BeanPool beanPool)
          Sets the BeanPool
 LCStateChangeStatus setLCState(LCState targetState)
          Set the registry bean to the given state
 void setRegistryProvider(RegistryProvider registryProvider)
          Sets the RegistryProvider
 
Methods inherited from class com.softwareag.centrasite.appl.framework.beans.DynamicRegistryBean
getCheckpointName, getDescription, getIdentity, getKey, getName, isRevision, setCheckpointName, setDescription, setIdentity, setKey, setName, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.softwareag.centrasite.appl.framework.beans.RegistryBean
getDescription, getKey, getName, setDescription, setName
 

Constructor Detail

LCAwareDynamicRegistryBean

public LCAwareDynamicRegistryBean()
Method Detail

getLCState

public LCRegistryObjectState getLCState()
                                 throws CSAppFrameworkException
Description copied from interface: LifeCycleAware
Returns the current state of the registryBean

Specified by:
getLCState in interface LifeCycleAware
Returns:
state as a LCRegistryObjectState, null if no state defined
Throws:
CSAppFrameworkException - - if the LCM provider encounters an internal error

setLCState

public LCStateChangeStatus setLCState(LCState targetState)
                               throws CSAppFrameworkException
Description copied from interface: LifeCycleAware
Set the registry bean to the given state

Specified by:
setLCState in interface LifeCycleAware
Parameters:
targetState - to which the registryBean is to be set
Returns:
LCStateChangeStatus with possible values LCStateChangeStatus.OK / LCStateChangeStatus.PENDING / LCStateChangeStatus.FAILED
Throws:
CSAppFrameworkException - - if the LCM provider encounters an internal error

approveStateChange

public void approveStateChange()
                        throws CSAppFrameworkException
Description copied from interface: LifeCycleAware
Approves the state change

Specified by:
approveStateChange in interface LifeCycleAware
Throws:
CSAppFrameworkException - - if the LCM provider encounters an internal error

rejectStateChange

public void rejectStateChange()
                       throws CSAppFrameworkException
Description copied from interface: LifeCycleAware
Rejects the state change

Specified by:
rejectStateChange in interface LifeCycleAware
Throws:
CSAppFrameworkException - - if the LCM provider encounters an internal error

findLCModel

public LCModel findLCModel()
                    throws CSAppFrameworkException
Description copied from interface: LifeCycleAware
Find the LCModel that is assigned to the registryBean

Specified by:
findLCModel in interface LifeCycleAware
Returns:
LCModel of the registryBean, null if no LCModel found
Throws:
CSAppFrameworkException - - If the LCM provider encounters an internal error

setRegistryProvider

public void setRegistryProvider(RegistryProvider registryProvider)
                         throws CSAppFrameworkException
Sets the RegistryProvider

Parameters:
registryProvider -
Throws:
CSAppFrameworkException

setBeanPool

public void setBeanPool(BeanPool beanPool)
                 throws CSAppFrameworkException
Sets the BeanPool

Parameters:
beanPool -
Throws:
CSAppFrameworkException

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class DynamicRegistryBean

hashCode

public int hashCode()
Overrides:
hashCode in class DynamicRegistryBean