com.ptc.windchill.cadx.common.picker
Class SharedOnlyConfigSpec

java.lang.Object
  extended by com.ptc.windchill.cadx.common.picker.SharedOnlyConfigSpec
All Implemented Interfaces:
Externalizable, Serializable, NetFactor, ObjectMappable, ConfigSpec

public class SharedOnlyConfigSpec
extends Object
implements ConfigSpec, ObjectMappable, Externalizable

The SharedOnlyConfigSpec uses the CabinetBasedInUseDelegate mechanism to filter out elements that are in a personal cabinet.

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 QuerySpec appendSearchCriteria(QuerySpec querySpec)
          Returns a clone of the passed-in QuerySpec.
 QueryResult process(QueryResult results)
          Returns a sub-set of the QueryResult, containing only those versions that are not in a personal cabinet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

appendSearchCriteria

public QuerySpec appendSearchCriteria(QuerySpec querySpec)
                               throws WTException,
                                      QueryException
Returns a clone of the passed-in QuerySpec.

Supported API: true

Specified by:
appendSearchCriteria in interface ConfigSpec
Parameters:
querySpec - A QuerySpec with a target class that is Iterated.
Returns:
QuerySpec
Throws:
WTException
QueryException
See Also:
QuerySpec, SearchCondition

process

public QueryResult process(QueryResult results)
                    throws WTException
Returns a sub-set of the QueryResult, containing only those versions that are not in a personal cabinet.

Supported API: true

Specified by:
process in interface ConfigSpec
Parameters:
results - QueryResult of iterations to filter. Assumed to be the result of a query that included the additional search conditions applied by appendSearchCriteria. Note that after enumerating through the elements of this QueryResult, it should be reset.
Returns:
QueryResult
Throws:
WTException
See Also:
QueryResult, Iterated