com.ptc.windchill.enterprise.workitem.tags
Class DiscussionsTag

java.lang.Object
  extended by SimpleTagSupport
      extended by com.ptc.windchill.enterprise.workitem.tags.DiscussionsTag

public class DiscussionsTag
extends SimpleTagSupport

Used to display Discussions table or link

Supported API: true

Extendable: true


Method Summary
protected  void displayAsLink(NmOid processOid)
          Display link to Discussions table

Supported API: true
protected  void displayAsTable(NmOid processOid)
          Display Discussions as a table

Supported API: true
 void doTag()
          Displays Discussions table or link to table.
 String getDisplayType()
          Get the displayType

Supported API: true
 void setDisplayType(String displayType)
          Set display type, should be either DiscussionsTag.TABLE or DiscussionsTag.LINK

Supported API: true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doTag

public void doTag()
           throws JspException
Displays Discussions table or link to table. It gets the commandBean expecting its pageOid to be a WorkItem. The WorkItem source is used to get the WfActivity which uses getParentProcessRef to get the oid of the process. If the process is a WfBlock the process is set to the WfBlocks parent process. The process oid is then used to create the link or to show the table by including discuss.jsp

Supported API: true

Throws:
JspException

displayAsTable

protected void displayAsTable(NmOid processOid)
Display Discussions as a table

Supported API: true

Parameters:
processOid - oid of WfProcess

displayAsLink

protected void displayAsLink(NmOid processOid)
Display link to Discussions table

Supported API: true

Parameters:
processOid - oid of WfProcess

setDisplayType

public void setDisplayType(String displayType)
Set display type, should be either DiscussionsTag.TABLE or DiscussionsTag.LINK

Supported API: true

Parameters:
displayType -

getDisplayType

public String getDisplayType()
Get the displayType

Supported API: true

Returns:
the displayType