Personalizzazione avanzata > Adattatore Windchill > Windchill Adapter Webject Library > Query Webjects > List-ContentItems
  
List-ContentItems
The List-ContentItems webject returns the content items for a specified Windchill object. The specified Windchill class must implement the ContentHolder interface.
Syntax
<ie:webject name="List-ContentItems" type="OBJ">
<ie:param name="ACCEPT_LANGUAGE"
data="$(@SERVER[]accept_language[])"/>
<ie:param name="ATTRIBUTE" data="attribute"/>
<ie:param name="AUTHORIZATION"
data="$(@SERVER[]authorization[0])"/>
<ie:param name="CONNECTION_ATTEMPTS" data="attempts"/>
<ie:param name="CONNECTION_ATTEMPT_INTERVAL" data="interval"/>
<ie:param name="CONTAINER_REF" data="[ufid | MEMBERSHIP]"/>
<ie:param name="DBUSER" data="username"/>
<ie:param name="DESCRIPTOR" data="attribute_name"/>
<ie:param name="FORMAT" data="[TRUE | FALSE]"/>
<ie:param name="GROUP_FILTER" data="group_name"/>
<ie:param name="GROUP_IN" data="group_in"/>
<ie:param name="GROUP_OUT" data="group_out"/>
<ie:param name="INCLUDE_ARGS" data="[TRUE | FALSE]"/>
<ie:param name="INCLUDE_CONSTRAINTS" data="[TRUE | FALSE]"/>
<ie:param name="INCLUDE_DESCRIPTORS" data="[TRUE | FALSE]"/>
<ie:param name="INSTANCE" data="appl_name"/>
<ie:param name="NEXT_OP" data="operation_name"/>
<ie:param name="OBJECT_REF" data="object_ref"/>
<ie:param name="PASSWD" data="password"/>
<ie:param name="REFERENCE_DELIMITER" data="^" />
<ie:param name="REFERENCE_EXCEPTIONS" data="[TRUE | FALSE]"/>
<ie:param name="REFERENCE_OUTPUT_DELIMITER" data="^" />
<ie:param name="STAGING_AREA" data="pathname"/>
<ie:param name="TYPE" data="type_name"/>
<ie:param name="UNFORMATED" data="dataType"/>
<ie:param name="WHERE" data="where_clause"/>
<ie:param name="WHERE_CASE_SENSITIVITY" data="[TRUE | FALSE]"/>
</ie:webject>
Parameters
Required
Interdependent
Optional
INSTANCE
AUTHORIZATION
ACCEPT_LANGUAGE
CONTAINER_REF
ATTRIBUTE
DBUSER
CONNECTION_ATTEMPTS
DESCRIPTOR
CONNECTION_ATTEMPT_INTERVAL
GROUP_FILTER
FORMAT
INCLUDE_ARGS
GROUP_IN
INCLUDE_CONSTRAINTS
GROUP_OUT
INCLUDE_DESCRIPTORS
REFERENCE_DELIMITER
NEXT_OP
REFERENCE_OUTPUT_DELIMITER
OBJECT_REF
UNFORMATTED
PASSWD
REFERENCE_EXCEPTIONS
STAGING_AREA
TYPE
WHERE
WHERE_CASE_SENSITIVITY
* 
If a parameter is listed in the table but is not defined below, then it has a common parameter definition. For descriptions of those parameters, see Common Webject Parameters section in Adapter Webjects Overview.
CONTAINER_REF
A Windchill context to apply the webject against. This parameter accepts the following types of input:
The UFID of a Windchill context. Multiple UFIDs can be specified for this parameter.
MEMBERSHIP—The query finds only those contexts of which the user is a member.
When this parameter is specified, the scope of queries executed against the TYPE and WHERE parameters are restricted to the associated context.
GROUP_IN
The name of the input group containing one or more objects whose attributes are retained in the output group and whose reference attributes will be dereferenced.
The GROUP_IN parameter value can be obtained from Query-Objects webject specified within the same task file. This parameter can be specified instead of or in addition to TYPE, WHERE, or OBJECT_REF.
The output group of Query-Objects webject, querying some content holder objects, can be used as this input group.
GROUP_OUT
The name of the output group containing the results. If this parameter is omitted, then the name of the output group is constructed by appending the string “-Output” to the webject name. This parameter is optional.
OBJECT_REF
The Unique Federation Identifier (UFID) of the Windchill object from which to list contents.
Multiple values can be specified for this parameter. This parameter can be used instead of or in combination with WHERE and GROUP_IN. If neither WHERE nor GROUP_IN is specified, OBJECT_REF must be specified. Otherwise, you can also use STAGING_AREA.
STAGING_AREA
Specifies a relative path to a file directory located on a server where content items that have been previously staged are now located.
Use this parameter to return a list of previously staged content items rather than returning a list of content items associated with a specific content holder object. This parameter is mutually exclusive with the OBJECT_REF, TYPE, GROUP_IN, and WHERE parameters
If neither WHERE nor TYPE (or, alternatively, OBJECT_REF) are specified, then you can use STAGING_AREA to identify a directory to which content items have been previously uploaded using the Add-ContentItems webject. As a result, List-ContentItems returns an output group containing elements that provide identifiers for the previously staged content items.
Each element includes a source attribute specifying the name of the source file, and a staged_file_id attribute providing an identifier for the staged content item. You can later use this identifier in the STAGED_FILE_ID parameter of the Add-ContentItems webject to select staged items to transfer into the database, as well as in the Delete-ContentItems and Get-ContentItems webjects.
The STAGING_AREA parameter is enabled only when an administrator has defined the wt.adapter.stagingAreaRoot property, which identifies the root file directory path of the staging area. The value specified for the STAGING_AREA parameter is appended to this property to create an absolute file path to the directory in which staged content items are stored. The wt.adapter.stagingAreaRoot property can be set in the wt.properties file
The absolute path for the staged files is:
stagingAreaRoot/STAGING_AREA/username
stagingAreaRoot is the value defined for the wt.adapter.stagingAreaRoot property.
STAGING_AREA is the value specified for this parameter.
username is the user name of the current user.
If the current user has one or more alternate user names, you cannot predict or control which alternate name is used to build the staging area directory path.
TYPE
Specifies the name of the notifiable Windchill type of the objects to be queried for. If WHERE is specified, then TYPE must also be specified. OBJECT_REF can be specified instead of, or in addition to, this parameter.
WHERE
Aquery expression identifying the objects to be queried. This parameter can be used instead of or in combination with OBJECT_REF and GROUP_IN. If neither OBJECT_REF nor GROUP_IN is specified, WHERE must be specified. If WHERE is specified, then TYPE must also be specified. For additional information, see Specifying the TYPE and WHERE Parameters.