wt.clients.prodmgmt
Class ConfigSpecItem

java.lang.Object
  extended bywt.clients.prodmgmt.ConfigSpecItem

public class ConfigSpecItem
extends Object

ConfigSpecItem is a wrapper class for manipulating wt.vc.config.ConfigSpec objects. It provides useful methods for creating, displaying, and modifying ConfigSpec objects.

Supported API: false

Extendable: false

See Also:
ConfigSpec

Field Summary
private  Baseline baseline
           
private  boolean checkedOut
           
private  WTPartConfigSpec configSpec
           
private  View realView
           
private  State state
           
private  String view
           
 
Constructor Summary
ConfigSpecItem()
          Construct a default ConfigSpecItem.
ConfigSpecItem(WTPartConfigSpec spec)
          Construct a ConfigSpecItem to contain the specified ConfigSpec.
 
Method Summary
 Baseline getBaseline()
          Return the Baseline specified in the BaselineQualification
 WTPartConfigSpec getConfigSpec()
          Return the contained ConfigSpec.
 String getDisplayIdentity(Locale locale)
          Returns a String representation of the identity of the Configuration Specification.
 EffContext getEffContext()
           
 WTPartBaselineConfigSpec getPartBaselineConfigSpec()
           
 WTPartEffectivityConfigSpec getPartEffectivityConfigSpec()
           
 WTPartStandardConfigSpec getPartStandardConfigSpec()
           
 State getState()
          Return the State specified in the LifeCycleQualification
 View getView()
          Get the name of the view specified in the ViewQualification.
 boolean isBaselineActive()
           
 boolean isCheckedOut()
          Return the checkout flag from the WorkInProgressQualification
 boolean isEffectivityActive()
           
 boolean isStandardActive()
           
 void save(boolean persistChanges)
          Save the contained ConfigSpec.
 void setBaseline(Baseline a_baseline)
          Set the Baseline specified in the BaselineQualification
 void setBaselineActive()
           
 void setCheckedOut(boolean a_checkedOut)
          Set the checkout flag for the WorkInProgressQualification
 void setConfigSpec(WTPartConfigSpec spec)
          Set the contained ConfigSpec
 void setEffContext(EffContext ec)
           
 void setEffectivityActive()
           
 void setPartBaselineConfigSpec(WTPartBaselineConfigSpec a_PartBaselineConfigSpec)
           
 void setPartEffectivityConfigSpec(WTPartEffectivityConfigSpec a_PartEffectivityConfigSpec)
           
 void setPartStandardConfigSpec(WTPartStandardConfigSpec a_PartStandardConfigSpec)
           
 void setStandardActive()
           
 void setState(State a_state)
          Set the State specified in the LifeCycleQualification
 void setView(View a_view)
          Set the View name specified in the ViewQualification
 String toString()
          Return a string used for debugging.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

configSpec

private WTPartConfigSpec configSpec

view

private String view

realView

private View realView

checkedOut

private boolean checkedOut

state

private State state

baseline

private Baseline baseline
Constructor Detail

ConfigSpecItem

public ConfigSpecItem()
               throws WTException
Construct a default ConfigSpecItem.

Throws:
WTException - if there is an error creating the contained ConfigSpec

ConfigSpecItem

public ConfigSpecItem(WTPartConfigSpec spec)
Construct a ConfigSpecItem to contain the specified ConfigSpec.

Parameters:
spec - the ConfigSpec to contain.
Method Detail

getConfigSpec

public WTPartConfigSpec getConfigSpec()
Return the contained ConfigSpec.

Returns:
the contained ConfigSpec.

setConfigSpec

public void setConfigSpec(WTPartConfigSpec spec)
Set the contained ConfigSpec


getEffContext

public EffContext getEffContext()

setEffContext

public void setEffContext(EffContext ec)
                   throws WTPropertyVetoException
Throws:
WTPropertyVetoException

getBaseline

public Baseline getBaseline()
Return the Baseline specified in the BaselineQualification

Returns:
the Baseline specified in the BaselineQualification

setBaseline

public void setBaseline(Baseline a_baseline)
                 throws WTPropertyVetoException
Set the Baseline specified in the BaselineQualification

Throws:
WTPropertyVetoException

getState

public State getState()
Return the State specified in the LifeCycleQualification

Returns:
the State specified in the LifeCycleQualification

setState

public void setState(State a_state)
Set the State specified in the LifeCycleQualification


getView

public View getView()
Get the name of the view specified in the ViewQualification.

Returns:
the name of the view specified in the ViewQualification.

setView

public void setView(View a_view)
             throws WTPropertyVetoException
Set the View name specified in the ViewQualification

Parameters:
a_view - the view name to specify in the ViewQualification
Throws:
WTPropertyVetoException

isCheckedOut

public boolean isCheckedOut()
Return the checkout flag from the WorkInProgressQualification

Returns:
the checkout flag from the WorkInProgressQualification

setCheckedOut

public void setCheckedOut(boolean a_checkedOut)
                   throws WTPropertyVetoException
Set the checkout flag for the WorkInProgressQualification

Parameters:
a_checkedOut - the checkout flag to use in the WorkInProgressQualification
Throws:
WTPropertyVetoException

save

public void save(boolean persistChanges)
          throws WTException
Save the contained ConfigSpec.

Parameters:
persistChanges - if true, persist the ConfigSpec to the database. Otherwise, save for use in the current PartExplorer.
Throws:
WTException

toString

public String toString()
Return a string used for debugging.

Returns:
a string for debugging

setPartBaselineConfigSpec

public void setPartBaselineConfigSpec(WTPartBaselineConfigSpec a_PartBaselineConfigSpec)

getPartBaselineConfigSpec

public WTPartBaselineConfigSpec getPartBaselineConfigSpec()

setPartEffectivityConfigSpec

public void setPartEffectivityConfigSpec(WTPartEffectivityConfigSpec a_PartEffectivityConfigSpec)

getPartEffectivityConfigSpec

public WTPartEffectivityConfigSpec getPartEffectivityConfigSpec()

setPartStandardConfigSpec

public void setPartStandardConfigSpec(WTPartStandardConfigSpec a_PartStandardConfigSpec)

getPartStandardConfigSpec

public WTPartStandardConfigSpec getPartStandardConfigSpec()

setBaselineActive

public void setBaselineActive()

isBaselineActive

public boolean isBaselineActive()

setStandardActive

public void setStandardActive()

isStandardActive

public boolean isStandardActive()

setEffectivityActive

public void setEffectivityActive()

isEffectivityActive

public boolean isEffectivityActive()

validate

public void validate()
              throws WTException
Throws:
WTException

getDisplayIdentity

public String getDisplayIdentity(Locale locale)
Returns a String representation of the identity of the Configuration Specification. This method uses the IdentityFactory to get a display identity for the object.