|
|||||||||||
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.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
Deprecated. this is being replaced by using a ConfigSpec |
private ConfigSpec |
configurationSpec
|
private Folder |
folder
The folder. |
private boolean |
isNew
If the part is new. |
private String |
iteration
|
private String |
iterationIdentifier
|
private Timestamp |
lastUpdatedDate
|
private String |
lifecycle
|
private LifeCycleTemplateReference |
lifeCycleTemplateRef
The life cycle template for this part. |
private String |
location
The location. |
private boolean |
modified
If the part has been modified. |
private PartExplorer |
myExplorer
The parent explorer this item belongs to. |
private String |
name
The Part name |
private String |
number
The Part number |
private WTOrganization |
organization
The organization for this part. |
private String |
organizationUniqueId
The organization Unique identifier for part |
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 TeamTemplateReference |
teamTemplateRef
The team template for this part. |
private PartType |
type
The type. |
private QuantityUnit |
unitOfMeasure
|
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()
Deprecated. use getConfigurationSpec instead Supported API: false |
ConfigSpec |
getConfigurationSpec()
|
String |
getCreatedByPersonName()
Returns the Created by person name. |
String |
getCreationDate()
Returns the creation date. |
QuantityUnit |
getDefaultUnit()
|
String |
getDisplayIdentity(Locale locale)
Returns the identity of this object. |
PartExplorer |
getExplorer()
Return the parent part explorer |
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. |
Timestamp |
getLastUpdatedDate()
Returns the date on which the part was last updated. |
String |
getLifecycleName()
Get the lifecycle name for this object |
LifeCycleTemplateReference |
getLifeCycleTemplateRef()
Returns the current lifeCycleTemplateRef of this PartItem. |
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. |
WTOrganization |
getOrganization()
Returns the current organization of this PartItem. |
String |
getOrganizationUniqueId()
Returns the current organizationUniqueId 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 |
TeamTemplateReference |
getTeamTemplateRef()
Returns the current teamTemplateRef of this PartItem. |
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. |
boolean |
isOccurrenceMode()
Return the occurrence mode |
void |
setConfigSpecItem(ConfigSpecItem configSpecItem)
Deprecated. use setConfigurationSpec instead Supported API: false |
void |
setConfigurationSpec(ConfigSpec config_spec)
Sets the configuration specification to be used when getting the child parts used by this part. |
void |
setDefaultUnit(QuantityUnit unit)
|
void |
setExplorer(PartExplorer explorer)
Set the parent part explorer |
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 |
setLifeCycleTemplateRef(LifeCycleTemplateReference lifeCycleTemplateRef)
Sets the lifeCycleTemplateRef of this PartItem. |
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 |
setOrganization(WTOrganization organization)
Sets the organization 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 |
setTeamTemplateRef(TeamTemplateReference teamTemplateRef)
Sets the teamTemplateRef of this PartItem. |
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 ConfigSpec configurationSpec
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 QuantityUnit unitOfMeasure
private PartType type
private Source source
private String location
private Folder folder
private Timestamp lastUpdatedDate
private UsesInterfaceList usesInterface
private UsedByList usedBy
private ReferencesList references
private BuildRuleList buildRule
private PartExplorer myExplorer
private WTOrganization organization
private LifeCycleTemplateReference lifeCycleTemplateRef
private TeamTemplateReference teamTemplateRef
private String organizationUniqueId
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 setOrganization(WTOrganization organization)
WTOrganization
public WTOrganization getOrganization()
public void setLifeCycleTemplateRef(LifeCycleTemplateReference lifeCycleTemplateRef)
lifeCycleTemplateRef
- the new lifeCycleTemplateRef of this PartItem.LifeCycleTemplateReference
public LifeCycleTemplateReference getLifeCycleTemplateRef()
public void setTeamTemplateRef(TeamTemplateReference teamTemplateRef)
teamTemplateRef
- the new teamTemplateRef of this PartItem.TeamTemplateReference
public TeamTemplateReference getTeamTemplateRef()
public String getOrganizationUniqueId()
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
public QuantityUnit getDefaultUnit()
public void setDefaultUnit(QuantityUnit unit)
public Timestamp getLastUpdatedDate()
Timestamp
public void setExplorer(PartExplorer explorer)
explorer
- the part explorerPartExplorer
public PartExplorer getExplorer()
public boolean isOccurrenceMode()
public void setConfigurationSpec(ConfigSpec config_spec)
config_spec
- the ConfigSpec used for selecting versions of this
part's childrenpublic ConfigSpec getConfigurationSpec()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |