Class AttachmentQueryCommands

java.lang.Object
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 Details

    • 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:
      • if the PropagationComponent is selected, the attachments related to this component are included.
      • If the FORM data contains an Input field with the id specified by AttachmentsHelper.ATTACHMENT_PREPOPULATE_OBJECTLIST, the attachments associated to these items will be also returned.


      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
    • getAttachmentsForAppData

      public static List<ContentItem> getAttachmentsForAppData(NmCommandBean cb, ContentRoleType contentRole)
      Retrieve a list of ApplicationData type of contentItems 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:
      • if the PropagationComponent is selected, the attachments related to this component are included.
      • If the FORM data contains an Input field with the id specified by AttachmentsHelper.ATTACHMENT_PREPOPULATE_OBJECTLIST, the attachments associated to these items will be also returned.


      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