com.ptc.windchill.enterprise.attachments.commands
Class AttachmentQueryCommands

java.lang.Object
  extended by com.ptc.windchill.enterprise.attachments.commands.AttachmentQueryCommands
All Implemented Interfaces:
RemoteAccess

public class AttachmentQueryCommands
extends Object
implements RemoteAccess

Class used for processing JCA Queries for attachment tables.

Supported API: true

Extendable: true


Method Summary
static List<ContentItem> getAttachments(NmCommandBean cb, ContentRoleType contentRole)
          Retrieve a list of ContentItem objects to show in the Attachments table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttachments

public static List<ContentItem> getAttachments(NmCommandBean cb,
                                               ContentRoleType contentRole)
Retrieve a list of ContentItem objects to show in the Attachments table. The list will be determined based on the ComponentMode and whether the object represented by the actionOid is a ContentHolder. In addition when the ComponentMode is CREATE the following criteria will be used:

Supported API: true

Parameters:
cb - The current command bean
contentRole - The content role for the table
Returns:
List The list of items to add to the attachments table