wt.change2
Class Changeable2ConfigSpec

java.lang.Object
  extended by wt.change2.Changeable2ConfigSpec
All Implemented Interfaces:
Externalizable, Serializable, ConfigSpec

public class Changeable2ConfigSpec
extends Object
implements ConfigSpec, Externalizable

Returns all latest iterations for a master except those latest iterations not owned by the current principal (either checked-out to another user or stored in a personal cabinet). This ConfigSpec is similar to the MultipleLatestConfigSpec, but does not return checked out iterations. It is used for the purpose of selecting wt.change2.Changeable2 objects for association with change management objects

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 QuerySpec appendSearchCriteria(QuerySpec querySpec)
          Appends a "latest == true" condition to the QuerySpec.
 QueryResult process(QueryResult results)
          Returns all latest iterations either owned by the current principal (including via a checkout) or stored in a shared cabinet, except those that are checked out by a different principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

appendSearchCriteria

public QuerySpec appendSearchCriteria(QuerySpec querySpec)
                               throws WTException,
                                      QueryException
Appends a "latest == true" condition to the 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 all latest iterations either owned by the current principal (including via a checkout) or stored in a shared cabinet, except those that are checked out by a different principal.

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