|
|||||||||||
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.replication.unit.UnitItem
UnitItem
is a model class for manipulating WTUnit objects.
It contains helper methods for manipulating attributes and relationships
of the WTunit class.
It extends wt.clients.beans.WTBusinessObject to allow easy manipulation in the
wt.clients.beans.WTExplorer.
Supported API: true
Extendable: true
WTUnit
,
Serialized FormField Summary | |
private ConfigSpecItem |
configSpecItem
The ConfigSpecItem used for navigation with this unit. |
private Folder |
folder
The folder. |
private boolean |
isNew
If the unit is new. |
private String |
iteration
|
private String |
iterationIdentifier
|
private String |
lifecycle
|
private String |
location
The location. |
private boolean |
modified
If the unit has been modified. |
private String |
name
The unit name |
private String |
number
The unit number |
private static ResourceBundle |
resource
|
private static String |
RESOURCE
|
private String |
revision
The revision. |
private String |
state
The state. |
private String |
teamTemplate
|
private UsedByList |
usedBy
A list of the parts this part uses. |
private UnitUsesInterfaceList |
usesInterface
A list of the PART masters this unit uses. |
private String |
version
|
Fields inherited from class wt.clients.beans.explorer.WTBusinessObject |
|
Constructor Summary | |
UnitItem()
Constructs a new UnitItem. |
|
UnitItem(WTUnit unit)
Constructs a new UnitItem. |
Method Summary | |
void |
create()
Create a new contained part for this unititem. |
void |
delete()
Delete the contained unit of this unititem. |
void |
dispatchRefresh()
Dispatch a RefeshEvent for modifications to the contained WTUnit |
ConfigSpecItem |
getConfigSpecItem()
Return the contained ConfigSpecItem |
String |
getCreatedByPersonName()
Returns the Created by person name. |
String |
getCreationDate()
Returns the creation date. |
String |
getDisplayIdentity(Locale locale)
Returns the identity of this object. |
Folder |
getFolder()
Returns the current folder of this UnitItem. |
String |
getIdentity()
Deprecated. replaced with getDisplayIdentity |
String |
getIteration()
Returns the current Iteration. |
String |
getIterationIdentifier()
Returns the current IterationIdentifier. |
String |
getLastUpdated()
Returns the last updated date. |
String |
getLifecycleName()
Get the lifecycle name for this object |
String |
getLocation()
Returns the current location of this UnitItem. |
String |
getModifiedByPersonName()
Returns the Modified by person name. |
String |
getName()
Returns the current name of this UnitItem. |
String |
getNumber()
Returns the current number of this UnitItem. |
protected ResourceBundle |
getResource()
|
String |
getRevision()
Returns the current revision of this UnitItem. |
Source |
getSource()
JHB removed Returns the current source of this UnitItem. |
String |
getState()
Returns the current state of this UnitItem. |
String |
getStatusText()
Return a string indicating the checkout status of this object |
String |
getTeamTemplateName()
Get the teamTemplate name for this object |
PartType |
getType()
JHB removed Returns the current type of this UnitItem. |
String |
getUniqueIdentity()
Override the default behavior defined in wt.clients.beans.WTBusinessObject. |
WTUnit |
getUnit()
Return the contained WTUnit object. |
Explorable[] |
getUses()
Returns an array of Explorable objects this UnitItem uses. |
UnitUsesInterfaceList |
getUsesInterfaceList()
Returns the a list of the PARTS this UnitItem uses. |
String |
getVersion()
Returns the current Version. |
String |
getViewName()
JHB removed Returns the name of the view for this object. |
protected void |
init()
Initialize the UnitItem unit without any side effect. |
private void |
initResources()
|
boolean |
isModified()
gets the modified flag for this unititem. |
boolean |
isNew()
gets the isNew flag for this partitem. |
void |
setConfigSpecItem(ConfigSpecItem configSpecItem)
Set the contained ConfigSpecItem |
void |
setFields()
Copies values from the UnitItem to contained WTUnit |
void |
setFolder(Folder folder)
Sets the folder of this UnitItem. |
void |
setIteration(String iteration)
|
void |
setLocation(String location)
Sets the location of this partitem. |
void |
setModified(boolean modified)
Sets the modified flag for this unititem. |
void |
setName(String name)
Sets the name of this UnitItem. |
void |
setNew(boolean isNew)
Sets the isNew flag for this partitem. |
void |
setNumber(String number)
Sets the number of this unititem. |
void |
setRevision(String revision)
Sets the revision of this UnitItem. |
void |
setSource(Source source)
|
void |
setState(String state)
Sets the state of this UnitItem. |
void |
setStatusText(String value)
|
void |
setTeamTemplateName(String teamTemplateName)
|
void |
setType(PartType type)
Sets the type of this partitem. |
void |
setUnit(WTUnit unit)
Sets the contained unit. |
protected void |
setUnitSimply(WTUnit unit)
Sets the contained unit without any side effect. |
void |
setViewName(String viewname)
|
String |
toString()
Returns a string representation of the unititem. |
void |
update()
Save the contained unit of this unititem. |
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 number
private String name
private String revision
private String version
private String iteration
private String iterationIdentifier
private String state
private String teamTemplate
private String lifecycle
private String location
private Folder folder
private UnitUsesInterfaceList usesInterface
private UsedByList usedBy
Constructor Detail |
public UnitItem() throws WTException
WTException
public UnitItem(WTUnit unit)
unit
- the contained wt.replication.unit.WTUnit.WTUnit
Method Detail |
public void setUnit(WTUnit unit)
unit
- the contained wt.replication.unit.WTUnit.WTUnit
protected void setUnitSimply(WTUnit unit)
unit
- the contained wt.replication.unit.WTUnit.WTUnit
protected void init() throws WTException
WTException
VersionException
WTUnit
public WTUnit getUnit()
WTPart
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 unititem.public boolean isNew()
public void setModified(boolean modified)
modified
- the new modified value of this unititem.public boolean isModified()
public void create() throws WTException
WTException
public void setFields() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void update() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void delete() throws WTException
WTException
public void dispatchRefresh()
wt.clients.util.RefeshEvent
public void setNumber(String number)
number
- the new number of this unititem.public String getNumber()
public void setFolder(Folder folder)
folder
- the new folder of this UnitItem.Folder
public Folder getFolder()
Folder
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 UnitItem.public String getRevision()
public void setName(String name)
name
- the new name of this UnitItem.public String getName()
public void setState(String state)
state
- the new state of this UnitItem.public String getState()
public PartType getType()
public void setType(PartType type)
type
- the new type of this partitem.public Source getSource()
public void setSource(Source source)
public void setLocation(String location)
location
- the new location of this partitem.public String getLocation()
public String getCreatedByPersonName()
WTException
VersionException
public String getModifiedByPersonName()
WTException
VersionException
public String getCreationDate()
public String getLastUpdated()
public UnitUsesInterfaceList getUsesInterfaceList() throws WTException
WTException
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 String getTeamTemplateName()
public void setTeamTemplateName(String teamTemplateName)
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |