|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.beans.explorer.WTBusinessObject
wt.clients.prodmgmt.InstanceItem
InstanceItem
is a model class for manipulating WTProductInstance objects.
It contains helper methods for manipulating attributes and relationships
of the WTProductInstance class.
It extends wt.clients.beans.WTBusinessObject to allow easy manipulation in the
wt.clients.beans.WTExplorer.
Supported API: false
Extendable: true
WTProductInstance2
,
Serialized FormField Summary | |
private BuildRuleList |
buildRule
A list of the build sources to this instance. |
private ConfigSpecItem |
configSpecItem
The ConfigSpecItem used for navigation with this instance. |
private WTProductConfiguration |
configuration
|
private boolean |
isNew
If the instance is new. |
private String |
iteration
|
private String |
iterationIdentifier
|
private String |
lifecycle
|
private boolean |
modified
If the instance has been modified. |
private PartExplorer |
myExplorer
The parent explorer this item belongs to. |
private ReferencesList |
references
A list of the references to this instance. |
private static ResourceBundle |
resource
|
private static String |
RESOURCE
|
private String |
revision
The revision. |
private String |
sn
The Instance serial number |
private String |
state
The state. |
private String |
status_text
The status text. |
private String |
teamTemplate
|
private UsedByList |
usedBy
A list of the instances this instance uses. |
private UsesInterfaceList |
usesInterface
A list of the instance masters this instance uses. |
private String |
version
|
private View |
view
The view |
private String |
viewName
The view name |
Fields inherited from class wt.clients.beans.explorer.WTBusinessObject |
|
Constructor Summary | |
InstanceItem(WTProductConfiguration configuration)
Constructs a new InstanceItem. |
|
InstanceItem(WTProductInstance2 instance)
Constructs a new InstanceItem. |
Method Summary | |
void |
create(WTProduct product,
String sn)
Create a new contained instance for this instanceitem. |
void |
delete()
Delete the contained instance of this instanceitem. |
void |
dispatchRefresh()
Dispatch a RefeshEvent for modifications to the contained Instance |
void |
duplicate(WTProductInstance2 original)
Save the contained instance of this instanceitem. |
ConfigSpecItem |
getConfigSpecItem()
Return the contained ConfigSpecItem |
WTProductConfiguration |
getConfiguration()
Returns the configuration. |
String |
getCreatedByPersonName()
Returns the Created by person name. |
String |
getCreationDate()
Returns the creation date. |
String |
getDisplayIdentity(Locale locale)
Returns the identity of this object. |
PartExplorer |
getExplorer()
Return the parent part explorer |
String |
getIdentity()
Deprecated. replaced with getDisplayIdentity |
WTProductInstance2 |
getInstance()
Return the contained WTProductInstance2 object. |
String |
getIteration()
Returns the current Iteration. |
String |
getIterationIdentifier()
Returns the current IterationIdentifier. |
private String |
getIterationIdentifierString()
|
String |
getLastUpdated()
Returns the last updated date. |
String |
getLifecycleName()
Get the lifecycle name for this object |
String |
getModifiedByPersonName()
Returns the Modified by person name. |
protected ResourceBundle |
getResource()
|
String |
getRevision()
Returns the current revision of this InstanceItem. |
String |
getSerialNumber()
Returns the current name of this InstanceItem. |
String |
getState()
Returns the current state of this InstanceItem. |
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. |
String |
getVersion()
Returns the current Version. |
View |
getView()
Get the view for this object |
String |
getViewName()
Returns the name of the view for this object. |
protected void |
init()
Initialize the InstanceItem instance without any side effect. |
private void |
initResources()
|
boolean |
isModified()
gets the modified flag for this instanceitem. |
boolean |
isNew()
gets the isNew flag for this instanceitem. |
void |
setConfigSpecItem(ConfigSpecItem configSpecItem)
Set the contained ConfigSpecItem |
void |
setExplorer(PartExplorer explorer)
Set the parent part explorer |
void |
setFields()
Copies values from the ConfigurationItem to contained Configuration |
void |
setFields(WTProduct product)
Copies values from the InstanceItem to contained Instance |
void |
setInstance(WTProductInstance2 instance)
Sets the contained instance. |
protected void |
setInstanceSimply(WTProductInstance2 instance)
Sets the contained instance without any side effect. |
void |
setIteration(String iteration)
|
protected void |
setModified(boolean modified)
Sets the modified flag for this instanceitem. |
void |
setNew(boolean isNew)
Sets the isNew flag for this instanceitem. |
void |
setRevision(String revision)
Sets the revision of this instanceitem. |
void |
setSerialNumber(String sn)
Sets the serial number of this instanceitem. |
void |
setState(String state)
Sets the state of this instanceitem. |
void |
setStatusText(String value)
|
void |
setView(View view)
Set the view for this object |
void |
setViewName(String viewname)
|
String |
toString()
Returns a string representation of the instanceitem. |
void |
update()
Save the contained instance of this instanceitem. |
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 |
private static ResourceBundle resource
private static String RESOURCE
private ConfigSpecItem configSpecItem
private boolean modified
private boolean isNew
private String viewName
private View view
private String sn
private String revision
private String version
private String iteration
private String iterationIdentifier
private String state
private String teamTemplate
private String lifecycle
private String status_text
private UsesInterfaceList usesInterface
private UsedByList usedBy
private ReferencesList references
private BuildRuleList buildRule
private WTProductConfiguration configuration
private PartExplorer myExplorer
Constructor Detail |
public InstanceItem(WTProductConfiguration configuration) throws WTException
WTException
public InstanceItem(WTProductInstance2 instance)
WTProductInstance2
Method Detail |
public void setInstance(WTProductInstance2 instance)
instance
- the contained wt.part.WTProductInstance2.WTProductInstance2
protected void setInstanceSimply(WTProductInstance2 instance)
instance
- the contained wt.part.WTProductInstance2.WTProductInstance2
protected void init() throws WTException
WTException
VersionException
WTProductInstance2
public WTProductInstance2 getInstance()
WTProductInstance2
public void setConfigSpecItem(ConfigSpecItem configSpecItem)
configSpecItem
- the contained ConfigSpecItemConfigSpecItem
public ConfigSpecItem getConfigSpecItem()
ConfigSpecItem
public void setNew(boolean isNew)
isNew
- the new isNew value of this instanceitem.public boolean isNew()
protected void setModified(boolean modified)
modified
- the new modified value of this instanceitem.public boolean isModified()
public WTProductConfiguration getConfiguration()
public void create(WTProduct product, String sn) throws WTException
WTException
public void setFields(WTProduct product) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void setFields() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void update() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void duplicate(WTProductInstance2 original) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void delete() throws WTException
WTException
public void dispatchRefresh()
wt.clients.util.RefeshEvent
public String getIterationIdentifier()
public String getVersion()
public void setIteration(String iteration)
public String getIteration()
public void setRevision(String revision)
revision
- the new revision of this instanceitem.public String getRevision()
public void setSerialNumber(String sn)
public String getSerialNumber()
public void setState(String state)
state
- the new state of this instanceitem.public String getState()
public String getCreatedByPersonName()
WTException
VersionException
public String getModifiedByPersonName()
WTException
VersionException
public String getCreationDate()
public String getLastUpdated()
public Explorable[] getUses() throws WTException
getUses
in interface Explorable
getUses
in class WTBusinessObject
WTException
Explorable
public String toString()
public String getDisplayIdentity(Locale locale)
public String getIdentity()
getIdentity
in interface Identifiable
getIdentity
in class WTBusinessObject
String
public String getViewName()
public void setViewName(String viewname)
public void setView(View view)
View
public View getView()
View
public String getTeamTemplateName()
public String getLifecycleName()
public void setStatusText(String value)
public String getStatusText()
private void initResources()
protected ResourceBundle getResource()
public String getUniqueIdentity()
getUniqueIdentity
in interface Identifiable
getUniqueIdentity
in class WTBusinessObject
public void setExplorer(PartExplorer explorer)
explorer
- the part explorerPartExplorer
public PartExplorer getExplorer()
private String getIterationIdentifierString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |