Package wt.clients.folderexplorer
Class FolderedBusinessObject
java.lang.Object
wt.clients.beans.explorer.WTBusinessObject
wt.clients.folderexplorer.FolderedBusinessObject
- All Implemented Interfaces:
Serializable,Explorable,Identifiable,ReferenceHolder
Class
Supported API: true
Extendable: false
FolderedBusinessObject provides a wrapper class for
objects that appear in the WindchillExplorer. This class
is used as a wrapper for all objects that live inside of a
Folder. This class is necessary because the
WTExplorer, which is the basis for the WindchillExplorer,
manipulates WTBusinessObjects.
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFolderedBusinessObject(String identity, String name, String numr, String vid, String lcs, String type, String modDate, String teamTemplate, wt.util.IconSelector icon, ObjectReference ref) Constructor for classFolderedBusinessObject.FolderedBusinessObject(String identity, FolderEntry folder_entry) Constructor for classFolderedBusinessObject. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAttributeValue(Object aDetail, String anAttributeName) MethodgetAttributeValueis a convenience method for attempting to get aStringvalue of the given attribute from the given object.MethodgetDetailsis invoked by theWTExplorerin response to a node in theWTTreebeing selected.Returns theFolderEntryobject being wrapped by this object.Returns theStringfolder path of theFolderEntryobject wrapped by this object.Returns the identity of theFolderEntryobject wrapped by this object.Returns aStringrepresentation of the current Life Cycle State of theFolderEntryobject being wrapped by this object.Gets theStringlocation of theFolderEntrywrapped by this object.Returns aStringrepresentation of the date on which theFolderEntryobject wrapped by this object was last modified.getName()Returns theStringname of theFolderEntryobject wrapped by this object.Returns aStringrepresentation of the number associated with theFolderEntryobject being wrapped by this object.Returns aStringwhich identifies the current organizationUniqueIdentifier of theFolderEntryobject wrapped by this object.Returns aStringrepresentation of the current team name of theFolderEntryobject being wrapped by this object.getType()Returns the particular type of theFolderEntryobject being wrapped by this object.Returns aStringwhich identifies the current Version of theFolderEntryobject wrapped by this object.booleanisEqual(FolderEntry folder_entry) MethodisEqualis a convenience method to determine if a givenFolderEntryobject is the same object as theFolderEntryobject being wrapped by this object.voidsetFolderEntry(FolderEntry folder_entry) Sets theFolderEntryobject to be wrapped by this object.
-
Constructor Details
-
FolderedBusinessObject
Constructor for classFolderedBusinessObject.- Parameters:
identity- theStringused to identify thisFolderEntryobjectfolder_entry- theFolderEntryobject this object is wrapping
Supported API: true
-
FolderedBusinessObject
public FolderedBusinessObject(String identity, String name, String numr, String vid, String lcs, String type, String modDate, String teamTemplate, wt.util.IconSelector icon, ObjectReference ref) Constructor for classFolderedBusinessObject.- Parameters:
identity- theStringused to identify thisFolderEntryobjectname- the object's namenumr- the object's numbervid- the object's VersionIdentifierlcs- the object's LifeCycle Statetype- the object's typemodDate- the object's Modification DateteamTemplate- the object's TeamTemplateicon- the object's IconSelectorref- the object's ObjectReference
Supported API: true
-
-
Method Details
-
getDetails
MethodgetDetailsis invoked by theWTExplorerin response to a node in theWTTreebeing selected. SinceFolderedBusinessObjectswill never appear in the treeview side of the explorer, and only in the details side of the explorer, this method returns a zero-length array.- Returns:
- a zero-length array of
WTBusinessObjectobjects
Supported API: true
-
getFolderEntry
Returns theFolderEntryobject being wrapped by this object.- Returns:
- the
FolderEntryobject wrapped by this object - See Also:
-
setFolderEntry
Sets theFolderEntryobject to be wrapped by this object.- Parameters:
folder_entry- theFolderEntryobject wrapped by this object- See Also:
-
getLocation
Gets theStringlocation of theFolderEntrywrapped by this object. The location describes the path to theFolderin which theFolderEntryof this object lives.- Returns:
- the
Stringlocation of theFolderEntryobject wrapped by this object - See Also:
-
getName
Returns theStringname of theFolderEntryobject wrapped by this object.- Returns:
- the
Stringname of theFolderEntryobject wrapped by this object - See Also:
-
getIdentity
Returns the identity of theFolderEntryobject wrapped by this object. If the folder entry object is a WTObject, then this method returns the identity retrieved from 'getDisplayIdentity'. Otherwise, the name of theFolderEntryis returned.- Specified by:
getIdentityin interfaceIdentifiable- Overrides:
getIdentityin classWTBusinessObject- Returns:
- a
Stringwhich identifies theFolderEntryobject wrapped by this object - See Also:
-
getFolderPath
Returns theStringfolder path of theFolderEntryobject wrapped by this object.- Returns:
- the
Stringfolder path of theFolderEntryobject wrapped by this object - See Also:
-
getVersionIdentity
Returns aStringwhich identifies the current Version of theFolderEntryobject wrapped by this object. If the givenFolderEntryobject is notVersioned, then an emptyStringis returned.- Returns:
- if the
FolderEntrywrapped by this object isVersioned, aStringidentifying the current version of thatFolderEntryis returned; Otherwise, an emptyStringis returned - See Also:
-
getLCState
Returns aStringrepresentation of the current Life Cycle State of theFolderEntryobject being wrapped by this object. If theFolderEntryobject is notLifeCycleManaged, then an emptyStringis returned.- Returns:
- if the
FolderEntrywrapped by this object isLifeCycleManaged, aStringrepresentation of the current Life Cycle State of thatFolderEntryis returned; otherwise, an emptyStringis returned - See Also:
-
getTeamName
Returns aStringrepresentation of the current team name of theFolderEntryobject being wrapped by this object. If theFolderEntryobject is notLifeCycleManaged, an emptyStringis returned.- Returns:
- if the
FolderEntrywrapped by this object isLifeCycleManaged, aStringrepresentation of the current team name of thatFolderEntryis returned; otherwise, an emptyStringis returned - See Also:
-
getType
Returns the particular type of theFolderEntryobject being wrapped by this object. If a "displayType" attribute is associated with theFolderEntryobject, the value of that type is returned. If no explicit "displayType" attribute is found, and an explicit "type" attribute exists, that value is returned. Otherwise, an empty string is returned.- Returns:
- if the
FolderEntryobject contains an explicit "displayType" attribute, the value of that attribute is returned; otherwise, if the object contains an explicit "type" attribute, the business type is returned; if no explicit type is found, an empty string is returned - See Also:
-
getModifyDate
Returns aStringrepresentation of the date on which theFolderEntryobject wrapped by this object was last modified.- Returns:
- a
Stringrepresentation of the date on which theFolderEntryobject wrapped by this object was last modified - See Also:
-
getAttributeValue
MethodgetAttributeValueis a convenience method for attempting to get aStringvalue of the given attribute from the given object. If the given attribute is not found for the given object, an emptyStringis returned.- Parameters:
aDetail- theObjectfrom which the value of the given attribute is retrievedanAttributeName- theStringname of the attribute whose value is attempted to be retrieved from the given object
Supported API: true
-
getNumber
Returns aStringrepresentation of the number associated with theFolderEntryobject being wrapped by this object. If no number attribute is found to be associated with theFolderEntryobject, an emptyStringis returned.- Returns:
- a
Stringrepresentation of the number associated with theFolderEntryobject; if theFolderEntryobject contains no number, an emptyStringis returned - See Also:
-
isEqual
MethodisEqualis a convenience method to determine if a givenFolderEntryobject is the same object as theFolderEntryobject being wrapped by this object. Note that this method is not checking if the twoFolderEntryobjects have the same values, but rather that the two objects are references to the sameFolderEntryobject.- Parameters:
folder_entry- theFolderEntryobject to be compared for equality with theFolderEntrywrapped by this object- Returns:
- if
true, the givenFolderEntryand theFolderEntrywrapped by this object reference the sameFolderEntryobject
Supported API: true
-
getOrganizationId
Returns aStringwhich identifies the current organizationUniqueIdentifier of theFolderEntryobject wrapped by this object. If the givenFolderEntryobject is notOrganizationOwned, then an emptyStringis returned.- Returns:
- if the
FolderEntrywrapped by this object isVersioned, aStringidentifying the current version of thatFolderEntryis returned; Otherwise, an emptyStringis returned - See Also:
-