|
|||||||||||
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.folderexplorer.FolderedBusinessObject
Class 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
WTBusinessObject
,
Serialized FormField Summary | |
private ClassInfo |
classInfo
|
private String |
lifecycleState
|
private String |
modifyDate
|
private IconSelector |
myIconSelector
|
private String |
myName
|
private String |
myTeamTemplate
|
private String |
mytype
|
private String |
number
|
private ObjectReference |
objectReference
|
private String |
organizationUniqueId
|
private String |
uniqueIdentity
|
private String |
versionIdentity
|
Fields inherited from class wt.clients.beans.explorer.WTBusinessObject |
|
Constructor Summary | |
FolderedBusinessObject(String identity,
FolderEntry folder_entry)
Constructor for class FolderedBusinessObject . |
|
FolderedBusinessObject(String identity,
String name,
String numr,
String vid,
String lcs,
String type,
String modDate,
String teamTemplate,
IconSelector icon,
ObjectReference ref)
Constructor for class FolderedBusinessObject . |
Method Summary | |
private String |
formatDate(Timestamp time)
|
static String |
getAttributeValue(Object aDetail,
String anAttributeName)
Method getAttributeValue is a convenience method for
attempting to get a String value of the given attribute
from the given object. |
WTBusinessObject[] |
getDetails()
Method getDetails is invoked by the WTExplorer
in response to a node in the WTTree being selected. |
FolderEntry |
getFolderEntry()
Returns the FolderEntry object being wrapped by this object. |
String |
getFolderPath()
Returns the String folder path of the FolderEntry
object wrapped by this object. |
String |
getIdentity()
Returns the identity of the FolderEntry object wrapped by
this object. |
String |
getLCState()
Returns a String representation of the current Life
Cycle State of the FolderEntry object being wrapped by
this object. |
String |
getLocation()
Gets the String location of the FolderEntry
wrapped by this object. |
String |
getModifyDate()
Returns a String representation of the date on which the
FolderEntry object wrapped by this object was last
modified. |
String |
getName()
Returns the String name of the FolderEntry object
wrapped by this object. |
String |
getNumber()
Returns a String representation of the number associated
with the FolderEntry object being wrapped by this object. |
ObjectReference |
getObjectReference()
|
String |
getOrganizationId()
Returns a String which identifies the current organizationUniqueIdentifier of the
FolderEntry object wrapped by this object. |
String |
getTeamName()
Returns a String representation of the current team name
of the FolderEntry object being wrapped by this object. |
String |
getType()
Returns the particular type of the FolderEntry object being
wrapped by this object. |
String |
getUniqueIdentity()
Returns a String that uniquely represents the object instance. |
String |
getVersionIdentity()
Returns a String which identifies the current Version of the
FolderEntry object wrapped by this object. |
boolean |
isEqual(FolderEntry folder_entry)
Method isEqual is a convenience method to determine if
a given FolderEntry object is the same object as the
FolderEntry object being wrapped by this object. |
void |
setFolderEntry(FolderEntry folder_entry)
Sets the FolderEntry object to be wrapped by this object. |
Methods inherited from class wt.clients.beans.explorer.WTBusinessObject |
getAttributeValue, getAttributeValue, getContents, getObject, getOpenIcon, getStandardIcon, getUses, setIdentity, setObject, setObject, setStandardIcon, setStandardIcon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ClassInfo classInfo
private String mytype
private String uniqueIdentity
private String modifyDate
private String versionIdentity
private String lifecycleState
private String number
private String myName
private String myTeamTemplate
private IconSelector myIconSelector
private ObjectReference objectReference
private String organizationUniqueId
Constructor Detail |
public FolderedBusinessObject(String identity, FolderEntry folder_entry)
FolderedBusinessObject
.
identity
- the String
used to identify this
FolderEntry
objectfolder_entry
- the FolderEntry
object this object
is wrapping
public FolderedBusinessObject(String identity, String name, String numr, String vid, String lcs, String type, String modDate, String teamTemplate, IconSelector icon, ObjectReference ref)
FolderedBusinessObject
.
identity
- the String
used to identify this
FolderEntry
objectname
- 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
Method Detail |
public WTBusinessObject[] getDetails()
getDetails
is invoked by the WTExplorer
in response to a node in the WTTree
being selected. Since
FolderedBusinessObjects
will 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.
WTBusinessObject
objects
public FolderEntry getFolderEntry()
FolderEntry
object being wrapped by this object.
FolderEntry
object wrapped by this objectsetFolderEntry(wt.folder.FolderEntry)
,
Supported API: true
public void setFolderEntry(FolderEntry folder_entry)
FolderEntry
object to be wrapped by this object.
folder_entry
- the FolderEntry
object wrapped by
this objectgetFolderEntry()
,
Supported API: true
public String getLocation()
String
location of the FolderEntry
wrapped by this object. The location describes the path to the
Folder
in which the FolderEntry
of this
object lives.
String
location of the FolderEntry
object wrapped by this object
Supported API: true
public String getName()
String
name of the FolderEntry
object
wrapped by this object.
String
name of the FolderEntry
object wrapped by this object
Supported API: true
public String getIdentity()
FolderEntry
object 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 the FolderEntry
is returned.
getIdentity
in interface Identifiable
getIdentity
in class WTBusinessObject
String
which identifies the FolderEntry
object wrapped by this object
Supported API: true
public String getFolderPath()
String
folder path of the FolderEntry
object wrapped by this object.
String
folder path of the FolderEntry
object wrapped by this object
Supported API: true
public String getVersionIdentity()
String
which identifies the current Version of the
FolderEntry
object wrapped by this object. If the
given FolderEntry
object is not Versioned
, then
an empty String
is returned.
FolderEntry
wrapped by this object is
Versioned
, a String
identifying
the current version of that FolderEntry
is returned;
Otherwise, an empty String
is returnedFolderEntry
,
Supported API: true
public String getLCState()
String
representation of the current Life
Cycle State of the FolderEntry
object being wrapped by
this object. If the FolderEntry
object is not
LifeCycleManaged
, then an empty String
is
returned.
FolderEntry
wrapped by this object
is LifeCycleManaged
, a String
representation of the current Life Cycle State of that
FolderEntry
is returned; otherwise, an
empty String
is returnedFolderEntry
,
Supported API: true
public String getTeamName()
String
representation of the current team name
of the FolderEntry
object being wrapped by this object. If
the FolderEntry
object is not LifeCycleManaged
,
an empty String
is returned.
FolderEntry
wrapped by this object
is LifeCycleManaged
, a String
representation of the current team name of that
FolderEntry
is returned; otherwise, an
empty String
is returnedFolderEntry
,
Supported API: true
public String getType()
FolderEntry
object being
wrapped by this object. If a "displayType" attribute is associated
with the FolderEntry
object, 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.
FolderEntry
object 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
Supported API: true
public String getModifyDate()
String
representation of the date on which the
FolderEntry
object wrapped by this object was last
modified.
String
representation of the date on which
the FolderEntry
object wrapped by this object
was last modified
Supported API: true
public static String getAttributeValue(Object aDetail, String anAttributeName)
getAttributeValue
is a convenience method for
attempting to get a String
value of the given attribute
from the given object. If the given attribute is not found for the
given object, an empty String
is returned.
aDetail
- the Object
from which the value of
the given attribute is retrievedanAttributeName
- the String
name of the attribute
whose value is attempted to be retrieved from
the given object
public String getNumber()
String
representation of the number associated
with the FolderEntry
object being wrapped by this object.
If no number attribute is found to be associated with the
FolderEntry
object, an empty String
is
returned.
String
representation of the number associated
with the FolderEntry
object; if the
FolderEntry
object contains no number, an
empty String
is returned
Supported API: true
public boolean isEqual(FolderEntry folder_entry)
isEqual
is a convenience method to determine if
a given FolderEntry
object is the same object as the
FolderEntry
object being wrapped by this object. Note
that this method is not checking if the two FolderEntry
objects have the same values, but rather that the two objects
are references to the same FolderEntry
object.
folder_entry
- the FolderEntry
object to
be compared for equality with the FolderEntry
wrapped by this object
true
, the given FolderEntry
and the FolderEntry
wrapped by this object
reference the same FolderEntry
object
private String formatDate(Timestamp time)
public String getUniqueIdentity()
WTBusinessObject
getUniqueIdentity
in interface Identifiable
getUniqueIdentity
in class WTBusinessObject
public ObjectReference getObjectReference()
public String getOrganizationId()
String
which identifies the current organizationUniqueIdentifier of the
FolderEntry
object wrapped by this object. If the
given FolderEntry
object is not OrganizationOwned
, then
an empty String
is returned.
FolderEntry
wrapped by this object is
Versioned
, a String
identifying
the current version of that FolderEntry
is returned;
Otherwise, an empty String
is returnedFolderEntry
,
Supported API: true
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |