Class FolderedBusinessObject

java.lang.Object
wt.clients.beans.explorer.WTBusinessObject
wt.clients.folderexplorer.FolderedBusinessObject
All Implemented Interfaces:
Serializable, Explorable, Identifiable, ReferenceHolder

public class FolderedBusinessObject extends WTBusinessObject implements Serializable
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
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 class FolderedBusinessObject.
    FolderedBusinessObject(String identity, FolderEntry folder_entry)
    Constructor for class FolderedBusinessObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    Method getDetails is invoked by the WTExplorer in response to a node in the WTTree being selected.
    Returns the FolderEntry object being wrapped by this object.
    Returns the String folder path of the FolderEntry object wrapped by this object.
    Returns the identity of the FolderEntry object wrapped by this object.
    Returns a String representation of the current Life Cycle State of the FolderEntry object being wrapped by this object.
    Gets the String location of the FolderEntry wrapped by this object.
    Returns a String representation of the date on which the FolderEntry object wrapped by this object was last modified.
    Returns the String name of the FolderEntry object wrapped by this object.
    Returns a String representation of the number associated with the FolderEntry object being wrapped by this object.
    Returns a String which identifies the current organizationUniqueIdentifier of the FolderEntry object wrapped by this object.
    Returns a String representation of the current team name of the FolderEntry object being wrapped by this object.
    Returns the particular type of the FolderEntry object being wrapped by this object.
    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
    Sets the FolderEntry object to be wrapped by this object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FolderedBusinessObject

      public FolderedBusinessObject(String identity, FolderEntry folder_entry)
      Constructor for class FolderedBusinessObject.
      Parameters:
      identity - the String used to identify this FolderEntry object
      folder_entry - the FolderEntry object 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 class FolderedBusinessObject.
      Parameters:
      identity - the String used to identify this FolderEntry object
      name - the object's name
      numr - the object's number
      vid - the object's VersionIdentifier
      lcs - the object's LifeCycle State
      type - the object's type
      modDate - the object's Modification Date
      teamTemplate - the object's TeamTemplate
      icon - the object's IconSelector
      ref - the object's ObjectReference

      Supported API: true
  • Method Details

    • getDetails

      public WTBusinessObject[] getDetails()
      Method 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.
      Returns:
      a zero-length array of WTBusinessObject objects

      Supported API: true
    • getFolderEntry

      public FolderEntry getFolderEntry()
      Returns the FolderEntry object being wrapped by this object.
      Returns:
      the FolderEntry object wrapped by this object
      See Also:
    • setFolderEntry

      public void setFolderEntry(FolderEntry folder_entry)
      Sets the FolderEntry object to be wrapped by this object.
      Parameters:
      folder_entry - the FolderEntry object wrapped by this object
      See Also:
    • getLocation

      public String getLocation()
      Gets the 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.
      Returns:
      the String location of the FolderEntry object wrapped by this object
      See Also:
    • getName

      public String getName()
      Returns the String name of the FolderEntry object wrapped by this object.
      Returns:
      the String name of the FolderEntry object wrapped by this object
      See Also:
    • getIdentity

      public String getIdentity()
      Returns the identity of the 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.
      Specified by:
      getIdentity in interface Identifiable
      Overrides:
      getIdentity in class WTBusinessObject
      Returns:
      a String which identifies the FolderEntry object wrapped by this object
      See Also:
    • getFolderPath

      public String getFolderPath()
      Returns the String folder path of the FolderEntry object wrapped by this object.
      Returns:
      the String folder path of the FolderEntry object wrapped by this object
      See Also:
    • getVersionIdentity

      public String getVersionIdentity()
      Returns a 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.
      Returns:
      if the FolderEntry wrapped by this object is Versioned, a String identifying the current version of that FolderEntry is returned; Otherwise, an empty String is returned
      See Also:
    • getLCState

      public String getLCState()
      Returns a 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.
      Returns:
      if the 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 returned
      See Also:
    • getTeamName

      public String getTeamName()
      Returns a 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.
      Returns:
      if the 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 returned
      See Also:
    • getType

      public String getType()
      Returns the particular type of the 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.
      Returns:
      if the 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
      See Also:
    • getModifyDate

      public String getModifyDate()
      Returns a String representation of the date on which the FolderEntry object wrapped by this object was last modified.
      Returns:
      a String representation of the date on which the FolderEntry object wrapped by this object was last modified
      See Also:
    • getAttributeValue

      public 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. If the given attribute is not found for the given object, an empty String is returned.
      Parameters:
      aDetail - the Object from which the value of the given attribute is retrieved
      anAttributeName - the String name of the attribute whose value is attempted to be retrieved from the given object

      Supported API: true
    • getNumber

      public String getNumber()
      Returns a 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.
      Returns:
      a String representation of the number associated with the FolderEntry object; if the FolderEntry object contains no number, an empty String is returned
      See Also:
    • isEqual

      public 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. 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.
      Parameters:
      folder_entry - the FolderEntry object to be compared for equality with the FolderEntry wrapped by this object
      Returns:
      if true, the given FolderEntry and the FolderEntry wrapped by this object reference the same FolderEntry object

      Supported API: true
    • getOrganizationId

      public String getOrganizationId()
      Returns a 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.
      Returns:
      if the FolderEntry wrapped by this object is Versioned, a String identifying the current version of that FolderEntry is returned; Otherwise, an empty String is returned
      See Also: