|
|||||||||||
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.PartItem
PartItem
is a model class for manipulating WTPart objects.
It contains helper methods for manipulating attributes and relationships
of the WTPart class.
It extends wt.clients.beans.WTBusinessObject to allow easy manipulation in the
wt.clients.beans.WTExplorer.
Supported API: true
Extendable: true
WTPart
,
Serialized FormField Summary | |
private BuildRuleList |
buildRule
A list of the build sources to this part. |
private ConfigSpecItem |
configSpecItem
The ConfigSpecItem used for navigation with this part. |
private Folder |
folder
The folder. |
private boolean |
isNew
If the part is new. |
private String |
iteration
|
private String |
iterationIdentifier
|
private String |
lifecycle
|
private String |
location
The location. |
private boolean |
modified
If the part has been modified. |
private String |
name
The Part name |
private String |
number
The Part number |
private ReferencesList |
references
A list of the references to this part. |
private static ResourceBundle |
resource
|
private static String |
RESOURCE
|
private String |
revision
The revision. |
private Source |
source
The source. |
private String |
state
The state. |
private String |
teamTemplate
|
private PartType |
type
The type. |
private UsedByList |
usedBy
A list of the parts this part uses. |
private UsesInterfaceList |
usesInterface
A list of the part masters this part 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 | |
PartItem()
Constructs a new PartItem. |
|
PartItem(Part part)
Deprecated. use the constructor taking a wt.part.WTPart object instead |
|
PartItem(WTPart part)
Constructs a new PartItem. |
Method Summary | |
void |
create()
Create a new contained part for this partitem. |
void |
delete()
Delete the contained part of this partitem. |
void |
dispatchRefresh()
Dispatch a RefeshEvent for modifications to the contained Part |
BuildRuleList |
getBuildRule()
Returns the a list of the build sources for thisPartItem. |
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 PartItem. |
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 PartItem. |
String |
getModifiedByPersonName()
Returns the Modified by person name. |
String |
getName()
Returns the current name of this PartItem. |
String |
getNumber()
Returns the current number of this PartItem. |
WTPart |
getPart()
Return the contained WTPart object. |
ReferencesList |
getReferences()
Returns the a list of the Parts this PartItem references. |
protected ResourceBundle |
getResource()
|
String |
getRevision()
Returns the current revision of this PartItem. |
Source |
getSource()
Returns the current source of this PartItem. |
String |
getState()
Returns the current state of this PartItem. |
String |
getStatusText()
Return a string indicating the checkout status of this object |
String |
getTeamTemplateName()
Get the teamTemplate name for this object |
PartType |
getType()
Returns the current type of this PartItem. |
String |
getUniqueIdentity()
Override the default behavior defined in wt.clients.beans.WTBusinessObject. |
UsedByList |
getUsedBy()
Returns the a list of the Parts this PartItem is used by. |
Explorable[] |
getUses()
Returns an array of Explorable objects this PartItem uses. |
UsesInterfaceList |
getUsesInterfaceList()
Returns the a list of the Parts 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 PartItem part without any side effect. |
private void |
initResources()
|
boolean |
isModified()
gets the modified flag for this partitem. |
boolean |
isNew()
gets the isNew flag for this partitem. |
void |
setConfigSpecItem(ConfigSpecItem configSpecItem)
Set the contained ConfigSpecItem |
void |
setFields()
Copies values from the PartItem to contained Part |
void |
setFolder(Folder folder)
Sets the folder of this partitem. |
void |
setIteration(String iteration)
|
void |
setLocation(String location)
Sets the location of this partitem. |
protected void |
setModified(boolean modified)
Sets the modified flag for this partitem. |
void |
setName(String name)
Sets the name of this partitem. |
void |
setNew(boolean isNew)
Sets the isNew flag for this partitem. |
void |
setNumber(String number)
Sets the number of this partitem. |
void |
setPart(WTPart part)
Sets the contained part. |
protected void |
setPartSimply(WTPart part)
Sets the contained part without any side effect. |
void |
setRevision(String revision)
Sets the revision of this partitem. |
void |
setSource(Source source)
Sets the source of this partitem. |
void |
setState(String state)
Sets the state of this partitem. |
void |
setStatusText(String value)
|
void |
setType(PartType type)
Sets the type of this partitem. |
void |
setView(View view)
Set the view for this object |
void |
setViewName(String viewname)
|
String |
toString()
Returns a string representation of the partitem. |
void |
update()
Save the contained part of this partitem. |
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 viewName
private View view
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 PartType type
private Source source
private String location
private Folder folder
private UsesInterfaceList usesInterface
private UsedByList usedBy
private ReferencesList references
private BuildRuleList buildRule
Constructor Detail |
public PartItem() throws WTException
WTException
public PartItem(Part part)
part
- the contained wt.part.Part.Part
public PartItem(WTPart part)
part
- the contained wt.part.WTPart.WTPart
Method Detail |
public void setPart(WTPart part)
part
- the contained wt.part.WTPart.WTPart
protected void setPartSimply(WTPart part)
part
- the contained wt.part.WTPart.WTPart
protected void init() throws WTException
WTException
VersionException
WTPart
public WTPart getPart()
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 partitem.public boolean isNew()
protected void setModified(boolean modified)
modified
- the new modified value of this partitem.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 partitem.public String getNumber()
public void setFolder(Folder folder)
folder
- the new folder of this partitem.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 partitem.public String getRevision()
public void setName(String name)
name
- the new name of this partitem.public String getName()
public void setState(String state)
state
- the new state of this partitem.public String getState()
public void setType(PartType type)
type
- the new type of this partitem.public PartType getType()
public void setSource(Source source)
source
- the new folder of this partitem.public Source getSource()
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 UsesInterfaceList getUsesInterfaceList() throws WTException
WTException
public Explorable[] getUses() throws WTException
getUses
in interface Explorable
getUses
in class WTBusinessObject
WTException
Explorable
public UsedByList getUsedBy()
public ReferencesList getReferences()
public BuildRuleList getBuildRule()
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |