wt.vc.config
Class SetConfigSpecDelegate.ConfigSpecHolder

java.lang.Object
  extended bywt.vc.config.SetConfigSpecDelegate.ConfigSpecHolder
Enclosing class:
SetConfigSpecDelegate

public class SetConfigSpecDelegate.ConfigSpecHolder
extends Object

Helper class for taking in the information passed in the form and converting it into a configuration specification.


Field Summary
private  String baselineName
           
private  String baselineRef
           
private  ConfigSpec configSpec
           
private  String configSpecType
           
private  String effectivityContextDisplayValue
           
private  String effectivityContextRef
           
private  String effectivityDate
           
private  String effectivityValue
           
private  String effectivityViewRef
           
private  String saved
           
private  String standardShowWip
           
private  String standardState
           
private  String standardViewRef
           
 
Constructor Summary
SetConfigSpecDelegate.ConfigSpecHolder()
           
 
Method Summary
 Baseline getBaseline()
          Returns the Baseline object used in the baseline configuration specification.
 ConfigSpec getConfigSpec()
          Returns the ConfigSpec associated with this ConfigSpecHolder.
 int getConfigSpecType()
          Returns an int value indicating the type of Configuration Specification which has been set.
 EffContext getEffectivityContext()
          Returns the Configuration Item associated with the effectivity configuration specification.
 Timestamp getEffectivityDate()
          Returns the effectivity date associated with the effectivity configuration specification.
 String getEffectivityValue()
           
 View getEffectivityView()
          Returns the View associated with the Effectivity configuration specification.
private  Object getObjectFromReference(String reference)
           
 State getStandardState()
          Returns the Life Cycle State which is associated with the standard configuration specification.
 View getStandardView()
          Return the View associated with the Standard Configuration Specification, if one has been set.
 boolean isSaved()
           
 boolean isShowWorkInProgress()
          Returns a boolean which indicates whether or not objects in the user's personal cabinet are included in the configuration specification.
 void setBaseline(String baseline_ref)
           
 void setBaselineName(String name)
          Sets the name of the baseline to the given String.
 void setConfigSpecType(String config_spec_type)
           
 void setEffectivityContext(String eff_context_ref)
           
 void setEffectivityContextDisplayValue(String eff_context_display_value)
           
 void setEffectivityDate(String date)
           
 void setEffectivityValue(String effectivity_value)
           
 void setEffectivityView(String effectivity_view_ref)
           
 void setSaved(String saved)
           
 void setShowWorkInProgress(String show)
           
 void setStandardState(String state)
           
 void setStandardView(String standard_view_ref)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

configSpecType

private String configSpecType

standardViewRef

private String standardViewRef

standardState

private String standardState

standardShowWip

private String standardShowWip

baselineRef

private String baselineRef

baselineName

private String baselineName

effectivityViewRef

private String effectivityViewRef

effectivityDate

private String effectivityDate

effectivityContextRef

private String effectivityContextRef

effectivityContextDisplayValue

private String effectivityContextDisplayValue

effectivityValue

private String effectivityValue

saved

private String saved

configSpec

private ConfigSpec configSpec
Constructor Detail

SetConfigSpecDelegate.ConfigSpecHolder

public SetConfigSpecDelegate.ConfigSpecHolder()
Method Detail

getConfigSpecType

public int getConfigSpecType()
Returns an int value indicating the type of Configuration Specification which has been set.

Returns:
an int indicating the type of configuration specification set.

setConfigSpecType

public void setConfigSpecType(String config_spec_type)

getStandardView

public View getStandardView()
Return the View associated with the Standard Configuration Specification, if one has been set. If no view has been set, this method returns null.

Returns:
the View associated with the Standard Configuration Specification, or null.

setStandardView

public void setStandardView(String standard_view_ref)

getStandardState

public State getStandardState()
Returns the Life Cycle State which is associated with the standard configuration specification. If no life cycle state has been set for the standard configuration specification, a null is returned.

Returns:
the life cycle state associated with the standard configuration specification, or null if no state has been set.

setStandardState

public void setStandardState(String state)

isShowWorkInProgress

public boolean isShowWorkInProgress()
Returns a boolean which indicates whether or not objects in the user's personal cabinet are included in the configuration specification.

Returns:
if true, objects in the user's personal cabinet will be included in the configuration specification.

setShowWorkInProgress

public void setShowWorkInProgress(String show)

getBaseline

public Baseline getBaseline()
                     throws WTException
Returns the Baseline object used in the baseline configuration specification. If no baseline has been set, this method returns null.

Returns:
the Baseline associated with the baseline configuration specification, or null if no baseline has been set.
Throws:
WTException

setBaseline

public void setBaseline(String baseline_ref)

setBaselineName

public void setBaselineName(String name)
Sets the name of the baseline to the given String.

Parameters:
name - the String name of the baseline

getEffectivityView

public View getEffectivityView()
Returns the View associated with the Effectivity configuration specification. If no view has been set, null is returned.

Returns:
the View associated with the effectivity configuration specification, or null if no view has been set.

setEffectivityView

public void setEffectivityView(String effectivity_view_ref)

getEffectivityDate

public Timestamp getEffectivityDate()
Returns the effectivity date associated with the effectivity configuration specification. If no date has been set, null is returned.

Returns:
the Timestamp specifying the effectivity date of the effectivity configuration specification, or null if no date has been set.

setEffectivityDate

public void setEffectivityDate(String date)

getEffectivityContext

public EffContext getEffectivityContext()
                                 throws WTException
Returns the Configuration Item associated with the effectivity configuration specification. If no configuration item has been set, null is returned.

Returns:
the ConfigurationItem associated with the effectivity configuration specification
Throws:
WTException

setEffectivityContext

public void setEffectivityContext(String eff_context_ref)

setEffectivityContextDisplayValue

public void setEffectivityContextDisplayValue(String eff_context_display_value)

getEffectivityValue

public String getEffectivityValue()

setEffectivityValue

public void setEffectivityValue(String effectivity_value)

isSaved

public boolean isSaved()

setSaved

public void setSaved(String saved)

toString

public String toString()

getConfigSpec

public ConfigSpec getConfigSpec()
                         throws WTPropertyVetoException,
                                WTException
Returns the ConfigSpec associated with this ConfigSpecHolder. If the actual ConfigSpec object doesn't currently exist, this method will create the ConfigSpec object.

Throws:
WTPropertyVetoException
WTException

getObjectFromReference

private Object getObjectFromReference(String reference)
                               throws WTException
Throws:
WTException