org.cagrid.installer.model
Class CaGridInstallerModelImpl

java.lang.Object
  extended by org.pietschy.wizard.AbstractWizardModel
      extended by org.pietschy.wizard.models.DynamicModel
          extended by org.cagrid.installer.model.CaGridInstallerModelImpl
All Implemented Interfaces:
CaGridInstallerModel, WizardModel

public class CaGridInstallerModelImpl
extends DynamicModel
implements CaGridInstallerModel

Author:
Joshua Phillips

Field Summary
 
Fields inherited from class org.pietschy.wizard.models.DynamicModel
TRUE_CONDITION
 
Constructor Summary
CaGridInstallerModelImpl()
           
CaGridInstallerModelImpl(java.util.Map<java.lang.String,java.lang.String> state)
           
CaGridInstallerModelImpl(java.util.Map<java.lang.String,java.lang.String> state, java.util.ResourceBundle messages)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds a PropertyChangeListener to this model.
protected  java.lang.String getHomeDir(java.lang.String homeProp, java.lang.String envName)
           
 java.lang.String getInstallerDir()
           
 java.lang.String getMessage(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String propName)
           
 java.lang.String getProperty(java.lang.String propName, java.lang.String defaultValue)
           
 java.lang.String getServiceDestDir()
           
 java.util.Map<java.lang.String,java.lang.String> getStateMap()
           
 boolean isActiveBPELInstalled()
           
 boolean isAntInstalled()
           
 boolean isAuthnSvcServiceCredentialsPresent()
           
 boolean isCAGenerationRequired()
           
 boolean isCaGridInstalled()
           
 boolean isConfigureContainerSelected()
           
 boolean isConfigureGlobusRequired()
           
 boolean isDeployGlobusRequired()
           
 boolean isEmpty(java.lang.String value)
           
 boolean isEqual(java.lang.String value, java.lang.String propName)
           
 boolean isGlobusConfigured()
           
 boolean isGlobusContainer()
           
 boolean isGlobusDeployed()
           
 boolean isGlobusInstalled()
           
 boolean isPortalInstalled()
           
 boolean isSecureContainerRequired()
           
 boolean isSecurityConfigurationRequired()
           
 boolean isServiceCertGenerationRequired()
           
 boolean isSet(java.lang.String propName)
           
 boolean isSyncGTSInstalled()
           
 boolean isTomcatConfigurationRequired()
           
 boolean isTomcatContainer()
           
 boolean isTomcatInstalled()
           
 boolean isTrue(java.lang.String propName)
           
 void refreshModelState()
          Forces the model to re-evaluate it's current state.
 void setDeactivatePrevious(boolean b)
           
 void setProperty(java.lang.String propName, java.lang.String propValue)
           
 void unsetProperty(java.lang.String propName)
           
 
Methods inherited from class org.pietschy.wizard.models.DynamicModel
add, add, allStepsComplete, isLastStep, lastStep, nextStep, previousStep, reset, stepIterator
 
Methods inherited from class org.pietschy.wizard.AbstractWizardModel
addCompleteListener, addPropertyChangeListener, getActiveStep, isLastAvailable, isLastVisible, isNextAvailable, isPreviousAvailable, removePropertyChangeListener, removePropertyChangeListener, setActiveStep, setCancelAvailable, setLastAvailable, setLastVisible, setNextAvailable, setPreviousAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cagrid.installer.model.CaGridInstallerModel
add, add
 
Methods inherited from interface org.pietschy.wizard.WizardModel
addPropertyChangeListener, getActiveStep, isLastAvailable, isLastStep, isLastVisible, isNextAvailable, isPreviousAvailable, lastStep, nextStep, previousStep, removePropertyChangeListener, removePropertyChangeListener, reset, stepIterator
 

Constructor Detail

CaGridInstallerModelImpl

public CaGridInstallerModelImpl()

CaGridInstallerModelImpl

public CaGridInstallerModelImpl(java.util.Map<java.lang.String,java.lang.String> state)

CaGridInstallerModelImpl

public CaGridInstallerModelImpl(java.util.Map<java.lang.String,java.lang.String> state,
                                java.util.ResourceBundle messages)
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from class: AbstractWizardModel
Adds a PropertyChangeListener to this model.

Specified by:
addPropertyChangeListener in interface WizardModel
Overrides:
addPropertyChangeListener in class AbstractWizardModel
Parameters:
l - the listener to add.

getMessage

public java.lang.String getMessage(java.lang.String key)
Specified by:
getMessage in interface CaGridInstallerModel

isTomcatConfigurationRequired

public boolean isTomcatConfigurationRequired()
Specified by:
isTomcatConfigurationRequired in interface CaGridInstallerModel

isTrue

public boolean isTrue(java.lang.String propName)
Specified by:
isTrue in interface CaGridInstallerModel

isTomcatContainer

public boolean isTomcatContainer()
Specified by:
isTomcatContainer in interface CaGridInstallerModel

isGlobusContainer

public boolean isGlobusContainer()
Specified by:
isGlobusContainer in interface CaGridInstallerModel

getProperty

public java.lang.String getProperty(java.lang.String propName)
Specified by:
getProperty in interface CaGridInstallerModel

isSecurityConfigurationRequired

public boolean isSecurityConfigurationRequired()
Specified by:
isSecurityConfigurationRequired in interface CaGridInstallerModel

isSet

public boolean isSet(java.lang.String propName)
Specified by:
isSet in interface CaGridInstallerModel

isEmpty

public boolean isEmpty(java.lang.String value)

isCAGenerationRequired

public boolean isCAGenerationRequired()
Specified by:
isCAGenerationRequired in interface CaGridInstallerModel

isServiceCertGenerationRequired

public boolean isServiceCertGenerationRequired()
Specified by:
isServiceCertGenerationRequired in interface CaGridInstallerModel

isEqual

public boolean isEqual(java.lang.String value,
                       java.lang.String propName)
Specified by:
isEqual in interface CaGridInstallerModel

refreshModelState

public void refreshModelState()
Description copied from class: DynamicModel
Forces the model to re-evaluate it's current state. This method will re-evalute the conditional steps by calling Condition.evaluate(org.pietschy.wizard.WizardModel).

Subclasses that override this method must be sure to invoke super.refreshModelState().

Specified by:
refreshModelState in interface WizardModel
Overrides:
refreshModelState in class DynamicModel

isConfigureGlobusRequired

public boolean isConfigureGlobusRequired()
Specified by:
isConfigureGlobusRequired in interface CaGridInstallerModel

isDeployGlobusRequired

public boolean isDeployGlobusRequired()
Specified by:
isDeployGlobusRequired in interface CaGridInstallerModel

setDeactivatePrevious

public void setDeactivatePrevious(boolean b)
Specified by:
setDeactivatePrevious in interface CaGridInstallerModel

unsetProperty

public void unsetProperty(java.lang.String propName)
Specified by:
unsetProperty in interface CaGridInstallerModel

setProperty

public void setProperty(java.lang.String propName,
                        java.lang.String propValue)
Specified by:
setProperty in interface CaGridInstallerModel

getProperty

public java.lang.String getProperty(java.lang.String propName,
                                    java.lang.String defaultValue)
Specified by:
getProperty in interface CaGridInstallerModel

getServiceDestDir

public java.lang.String getServiceDestDir()
Specified by:
getServiceDestDir in interface CaGridInstallerModel

isSecureContainerRequired

public boolean isSecureContainerRequired()
Specified by:
isSecureContainerRequired in interface CaGridInstallerModel

getStateMap

public java.util.Map<java.lang.String,java.lang.String> getStateMap()
Specified by:
getStateMap in interface CaGridInstallerModel

isConfigureContainerSelected

public boolean isConfigureContainerSelected()
Specified by:
isConfigureContainerSelected in interface CaGridInstallerModel

isSyncGTSInstalled

public boolean isSyncGTSInstalled()
Specified by:
isSyncGTSInstalled in interface CaGridInstallerModel

isAntInstalled

public boolean isAntInstalled()
Specified by:
isAntInstalled in interface CaGridInstallerModel

getHomeDir

protected java.lang.String getHomeDir(java.lang.String homeProp,
                                      java.lang.String envName)

isTomcatInstalled

public boolean isTomcatInstalled()
Specified by:
isTomcatInstalled in interface CaGridInstallerModel

isGlobusInstalled

public boolean isGlobusInstalled()
Specified by:
isGlobusInstalled in interface CaGridInstallerModel

isCaGridInstalled

public boolean isCaGridInstalled()
Specified by:
isCaGridInstalled in interface CaGridInstallerModel

isActiveBPELInstalled

public boolean isActiveBPELInstalled()
Specified by:
isActiveBPELInstalled in interface CaGridInstallerModel

isGlobusConfigured

public boolean isGlobusConfigured()
Specified by:
isGlobusConfigured in interface CaGridInstallerModel

isGlobusDeployed

public boolean isGlobusDeployed()
Specified by:
isGlobusDeployed in interface CaGridInstallerModel

isPortalInstalled

public boolean isPortalInstalled()
Specified by:
isPortalInstalled in interface CaGridInstallerModel

isAuthnSvcServiceCredentialsPresent

public boolean isAuthnSvcServiceCredentialsPresent()
Specified by:
isAuthnSvcServiceCredentialsPresent in interface CaGridInstallerModel

getInstallerDir

public java.lang.String getInstallerDir()
Specified by:
getInstallerDir in interface CaGridInstallerModel