wt.doc
Class SetDocConfigSpecDelegate.ConfigSpecHolder

java.lang.Object
  extended bywt.doc.SetDocConfigSpecDelegate.ConfigSpecHolder
Enclosing class:
SetDocConfigSpecDelegate

public class SetDocConfigSpecDelegate.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 saved
           
private  String standardShowWip
           
private  String standardState
           
 
Constructor Summary
SetDocConfigSpecDelegate.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.
private  Object getObjectFromReference(String reference)
           
 State getStandardState()
          Returns the Life Cycle State which is associated with the standard configuration specification.
 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 setSaved(String saved)
           
 void setShowWorkInProgress(String show)
           
 void setStandardState(String state)
           
 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

standardState

private String standardState

standardShowWip

private String standardShowWip

baselineRef

private String baselineRef

baselineName

private String baselineName

saved

private String saved

configSpec

private ConfigSpec configSpec
Constructor Detail

SetDocConfigSpecDelegate.ConfigSpecHolder

public SetDocConfigSpecDelegate.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)

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

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