Class AttachmentQueryCommands
java.lang.Object
com.ptc.windchill.enterprise.attachments.commands.AttachmentQueryCommands
- All Implemented Interfaces:
RemoteAccess
Class used for processing JCA Queries for attachment tables.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from interface wt.method.RemoteAccess
versionID -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ContentItem> getAttachments(NmCommandBean cb, ContentRoleType contentRole) Retrieve a list of ContentItem objects to show in the Attachments table.static List<ContentItem> getAttachmentsForAppData(NmCommandBean cb, ContentRoleType contentRole) Retrieve a list of ApplicationData type of contentItems objects to show in the Attachments table.
-
Method Details
-
getAttachments
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 isCREATEthe 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 beancontentRole- 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 isCREATEthe 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 beancontentRole- The content role for the table- Returns:
- List The list of items to add to the attachments table
-