wt.clients.prodmgmt
Class ConfigurationItem

java.lang.Object
  extended bywt.clients.beans.explorer.WTBusinessObject
      extended bywt.clients.prodmgmt.ConfigurationItem
All Implemented Interfaces:
Explorable, Identifiable, ReferenceHolder, Serializable

public class ConfigurationItem
extends WTBusinessObject

ConfigurationItem is a model class for manipulating WTProductConfiguration objects. It contains helper methods for manipulating attributes and relationships of the WTProductConfiguration class. It extends wt.clients.beans.WTBusinessObject to allow easy manipulation in the wt.clients.beans.WTExplorer.

Supported API: false

Extendable: false

See Also:
WTProductConfiguration, Serialized Form

Field Summary
private  BuildRuleList buildRule
          A list of the build sources to this configuration.
private  ConfigSpecItem configSpecItem
          The ConfigSpecItem used for navigation with this configuration.
private  String configurationName
          The Configuration name
private  String description
          The Configuration description
private  boolean isNew
          If the configuration is new.
private  String lifecycle
           
private  boolean modified
          If the configuration has been modified.
private  PartExplorer myExplorer
          The parent explorer this item belongs to.
(package private)  WTProduct product
           
private  ReferencesList references
          A list of the references to this configuration.
private static ResourceBundle resource
           
private static String RESOURCE
           
private  String state
          The state.
private  String status_text
          The status text.
private  String teamTemplate
           
private  UsedByList usedBy
          A list of the configurations this configuration uses.
private  UsesInterfaceList usesInterface
          A list of the configuration masters this configuration uses.
 
Fields inherited from class wt.clients.beans.explorer.WTBusinessObject
 
Constructor Summary
ConfigurationItem(WTProduct product)
          Constructs a new ConfigurationItem.
ConfigurationItem(WTProductConfiguration configuration)
          Constructs a new ConfigurationItem.
 
Method Summary
 void create(WTProduct product, String name, String description)
          Create a new contained configuration for this configurationitem.
 void delete()
          Delete the contained configuration of this configurationitem.
 void dispatchRefresh()
          Dispatch a RefeshEvent for modifications to the contained Configuration
 ConfigSpecItem getConfigSpecItem()
          Return the contained ConfigSpecItem
 WTProductConfiguration getConfiguration()
          Return the contained WTProductConfiguration object.
 String getConfigurationName()
          Returns the current name of this ConfigurationItem.
 String getCreatedByPersonName()
          Returns the Created by person name.
 String getCreationDate()
          Returns the creation date.
 String getDescription()
          Returns the current descripiton of this ConfigurationItem.
 String getDisplayIdentity(Locale locale)
          Returns the identity of this object.
 PartExplorer getExplorer()
          Return the parent part explorer
 String getIdentity()
          Deprecated. replaced with getDisplayIdentity
 String getLastUpdated()
          Returns the last updated date.
 String getLifecycleName()
          Get the lifecycle name for this object
 String getModifiedByPersonName()
          Returns the Modified by person name.
 WTProduct getProduct()
          Returns the last updated date.
protected  ResourceBundle getResource()
           
 String getState()
          Returns the current state of this ConfigurationItem.
 String getStatusText()
          Return a string indicating the checkout status of this object
 String getTeamTemplateName()
          Get the teamTemplate name for this object
 String getUniqueIdentity()
          Override the default behavior defined in wt.clients.beans.WTBusinessObject.
 Explorable[] getUses()
          Returns an array of Explorable objects this PartItem uses.
protected  void init()
          Initialize the ConfigurationItem configuration without any side effect.
private  void initResources()
           
 boolean isModified()
          gets the modified flag for this configurationitem.
 boolean isNew()
          gets the isNew flag for this configurationitem.
 void setConfigSpecItem(ConfigSpecItem configSpecItem)
          Set the contained ConfigSpecItem
 void setConfiguration(WTProductConfiguration configuration)
          Sets the contained configuration.
 void setConfigurationName(String name)
          Sets the name of this configurationi tem.
protected  void setConfigurationSimply(WTProductConfiguration configuration)
          Sets the contained configuration without any side effect.
 void setDescription(String description)
          Sets the description of this configurationItem
 void setExplorer(PartExplorer explorer)
          Set the parent part explorer
 void setFields()
          Copies values from the ConfigurationItem to contained Configuration
protected  void setModified(boolean modified)
          Sets the modified flag for this configurationitem.
 void setNew(boolean isNew)
          Sets the isNew flag for this configurationitem.
 void setState(String state)
          Sets the state of this configurationitem.
 void setStatusText(String value)
           
 String toString()
          Returns a string representation of the configurationitem.
 void update()
          Save the contained configuration of this configurationitem.
 
Methods inherited from class wt.clients.beans.explorer.WTBusinessObject
getAttributeValue, getAttributeValue, getContents, getObject, getOpenIcon, getStandardIcon, setIdentity, setObject, setObject, setStandardIcon, setStandardIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resource

private static ResourceBundle resource

RESOURCE

private static String RESOURCE

configSpecItem

private ConfigSpecItem configSpecItem
The ConfigSpecItem used for navigation with this configuration.


modified

private boolean modified
If the configuration has been modified.


isNew

private boolean isNew
If the configuration is new.


configurationName

private String configurationName
The Configuration name


description

private String description
The Configuration description


state

private String state
The state.


teamTemplate

private String teamTemplate

lifecycle

private String lifecycle

status_text

private String status_text
The status text.


usesInterface

private UsesInterfaceList usesInterface
A list of the configuration masters this configuration uses.


usedBy

private UsedByList usedBy
A list of the configurations this configuration uses.


references

private ReferencesList references
A list of the references to this configuration.


buildRule

private BuildRuleList buildRule
A list of the build sources to this configuration.


myExplorer

private PartExplorer myExplorer
The parent explorer this item belongs to.


product

WTProduct product
Constructor Detail

ConfigurationItem

public ConfigurationItem(WTProduct product)
                  throws WTException
Constructs a new ConfigurationItem.

Throws:
WTException

ConfigurationItem

public ConfigurationItem(WTProductConfiguration configuration)
Constructs a new ConfigurationItem.

See Also:
WTProductConfiguration
Method Detail

setConfiguration

public void setConfiguration(WTProductConfiguration configuration)
Sets the contained configuration. This will initialize many of the attributes in the ConfigurationItem class.

Parameters:
configuration - the contained wt.part.WTProductConfiguration.
See Also:
WTProductConfiguration

setConfigurationSimply

protected void setConfigurationSimply(WTProductConfiguration configuration)
Sets the contained configuration without any side effect.

Parameters:
configuration - the contained wt.part.WTProductConfiguration.
See Also:
WTProductConfiguration

init

protected void init()
             throws WTException
Initialize the ConfigurationItem configuration without any side effect.

Throws:
WTException
VersionException
See Also:
WTProductConfiguration

getConfiguration

public WTProductConfiguration getConfiguration()
Return the contained WTProductConfiguration object.

Returns:
the contained wt.part.WTProductConfiguration.
See Also:
WTProductConfiguration

getProduct

public WTProduct getProduct()
Returns the last updated date.

Returns:
the last updated date.

setConfigSpecItem

public void setConfigSpecItem(ConfigSpecItem configSpecItem)
Set the contained ConfigSpecItem

Parameters:
configSpecItem - the contained ConfigSpecItem
See Also:
ConfigSpecItem

getConfigSpecItem

public ConfigSpecItem getConfigSpecItem()
Return the contained ConfigSpecItem

Returns:
the contained ConfigSpecItem
See Also:
ConfigSpecItem

setNew

public void setNew(boolean isNew)
Sets the isNew flag for this configurationitem.

Parameters:
isNew - the new isNew value of this configurationitem.

isNew

public boolean isNew()
gets the isNew flag for this configurationitem.

Returns:
boolean the isNew value of this configurationitem.

setModified

protected void setModified(boolean modified)
Sets the modified flag for this configurationitem.

Parameters:
modified - the new modified value of this configurationitem.

isModified

public boolean isModified()
gets the modified flag for this configurationitem.

Returns:
boolean the modified value of this configurationitem.

create

public void create(WTProduct product,
                   String name,
                   String description)
            throws WTException
Create a new contained configuration for this configurationitem.

Throws:
WTException

setFields

public void setFields()
               throws WTException,
                      WTPropertyVetoException
Copies values from the ConfigurationItem to contained Configuration

Throws:
WTException
WTPropertyVetoException

update

public void update()
            throws WTException,
                   WTPropertyVetoException
Save the contained configuration of this configurationitem.

Throws:
WTException
WTPropertyVetoException

delete

public void delete()
            throws WTException
Delete the contained configuration of this configurationitem.

Throws:
WTException

dispatchRefresh

public void dispatchRefresh()
Dispatch a RefeshEvent for modifications to the contained Configuration

See Also:
wt.clients.util.RefeshEvent

setConfigurationName

public void setConfigurationName(String name)
Sets the name of this configurationi tem.

Parameters:
name - the new name of this configurationitem.

getConfigurationName

public String getConfigurationName()
Returns the current name of this ConfigurationItem.

Returns:
the current name of this ConfigurationItem.

setDescription

public void setDescription(String description)
Sets the description of this configurationItem

Parameters:
description - the new name of this partitem.

getDescription

public String getDescription()
Returns the current descripiton of this ConfigurationItem.

Returns:
the current description of this ConfigurationItem.

setState

public void setState(String state)
Sets the state of this configurationitem.

Parameters:
state - the new state of this configurationitem.

getState

public String getState()
Returns the current state of this ConfigurationItem.

Returns:
the current state of this ConfigurationItem.

getCreatedByPersonName

public String getCreatedByPersonName()
Returns the Created by person name.

Returns:
the Created by person name.
Throws:
WTException
VersionException

getModifiedByPersonName

public String getModifiedByPersonName()
Returns the Modified by person name.

Returns:
the Modified by person name.
Throws:
WTException
VersionException

getCreationDate

public String getCreationDate()
Returns the creation date.

Returns:
the creation date.

getLastUpdated

public String getLastUpdated()
Returns the last updated date.

Returns:
the last updated date.

getUses

public Explorable[] getUses()
                     throws WTException
Returns an array of Explorable objects this PartItem uses.

Specified by:
getUses in interface Explorable
Overrides:
getUses in class WTBusinessObject
Returns:
an array of Explorable objects this PartItem uses.
Throws:
WTException
See Also:
Explorable

toString

public String toString()
Returns a string representation of the configurationitem.

Returns:
a string representation of the configurationitem.

getDisplayIdentity

public String getDisplayIdentity(Locale locale)
Returns the identity of this object. Replaces the deprecated getIdentity.

Returns:
the identity of this object.

getIdentity

public String getIdentity()
Deprecated. replaced with getDisplayIdentity

Returns the identity of this object.

Specified by:
getIdentity in interface Identifiable
Overrides:
getIdentity in class WTBusinessObject
Returns:
athe identity of this object.
See Also:
String

getTeamTemplateName

public String getTeamTemplateName()
Get the teamTemplate name for this object

Returns:
the teamTemplate name for this object

getLifecycleName

public String getLifecycleName()
Get the lifecycle name for this object

Returns:
the lifecycle name for this object

setStatusText

public void setStatusText(String value)

getStatusText

public String getStatusText()
Return a string indicating the checkout status of this object

Returns:
a string indicating the checkout status of this object

initResources

private void initResources()

getResource

protected ResourceBundle getResource()

getUniqueIdentity

public String getUniqueIdentity()
Override the default behavior defined in wt.clients.beans.WTBusinessObject. Use the branch identifier instead of the oid to uniquely identify the contained WTProductConfiguration object.

Specified by:
getUniqueIdentity in interface Identifiable
Overrides:
getUniqueIdentity in class WTBusinessObject
Returns:
the unique identity of the object.

setExplorer

public void setExplorer(PartExplorer explorer)
Set the parent part explorer

Parameters:
explorer - the part explorer
See Also:
PartExplorer

getExplorer

public PartExplorer getExplorer()
Return the parent part explorer