Package wt.epm.workspaces
Class EPMAsStoredConfigSpec
java.lang.Object
wt.epm.workspaces.EPMAsStoredConfigSpec
- All Implemented Interfaces:
Externalizable,Serializable,Evolvable,ConfigSpec
The EPMAsStoredConfigSpec can be applied to Baselineables to filter those
elements based on membership in an EPMAsStoredConfig. Substitution options
are read from preferences and result in the following order of substitution
rules when the iteration is not found in the configuration: 1) If substitutes
are allowed, do not filter out links marked as substitutes. 2) If no
iteration is found, use latest.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionappendSearchCriteria(QuerySpec querySpec) Appends to the QuerySpec based on the substitution rules to be followed.static EPMAsStoredConfigSpecnewEPMAsStoredConfigSpec(List seeds) Factory method to create a new EPMAsStoredConfigSpec given a list of seed objects.static EPMAsStoredConfigSpecFactory method to create a new EPMAsStoredConfigSpec given a seed object.static EPMAsStoredConfigSpecnewEPMAsStoredConfigSpec(EPMAsStoredConfig configuration) Factory method to create a new EPMAsStoredConfigSpec using the specified EPMAsStoredConfig.process(QueryResult results) Returns a clone of the results.voidsetAllowLatestSubstitutes(boolean a_AllowLatestSubstitutes) Sets the value of the attribute: allowLatestSubstitutes; This option configures the config spec to return the latest iteration when the as-stored baseline config does not contain any iteration of the master object.
-
Method Details
-
setAllowLatestSubstitutes
public void setAllowLatestSubstitutes(boolean a_AllowLatestSubstitutes) throws WTPropertyVetoException Sets the value of the attribute: allowLatestSubstitutes; This option configures the config spec to return the latest iteration when the as-stored baseline config does not contain any iteration of the master object. If allowLatestSubstitutes is set, the config spec selects the latest iteration. If allowLatestSubstitutes is not set, the config spec does not select any iteration. By default, allowLatestSubstitutes is set.
Supported API: true- Parameters:
a_AllowLatestSubstitutes-- Throws:
WTPropertyVetoException
-
appendSearchCriteria
Appends to the QuerySpec based on the substitution rules to be followed.
Supported API: true- Specified by:
appendSearchCriteriain interfaceConfigSpec- Parameters:
querySpec- A QuerySpec with a target class that is Iterated.- Returns:
- QuerySpec
- Throws:
WTExceptionQueryException- See Also:
-
process
Returns a clone of the results. The QueryResult is processed and a LatestConfigSpec is applied.
Supported API: true- Specified by:
processin interfaceConfigSpec- 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:
-
newEPMAsStoredConfigSpec
public static EPMAsStoredConfigSpec newEPMAsStoredConfigSpec(EPMDocument seed) throws WTPropertyVetoException, WTException Factory method to create a new EPMAsStoredConfigSpec given a seed object. Null is returned if the seed is not an owner of an EPMAsStoredConfig.
Supported API: true- Parameters:
seed- Use the EPMAsStoredConfig to which the seed has an owner association.- Returns:
- EPMAsStoredConfigSpec
- Throws:
WTPropertyVetoExceptionWTException
-
newEPMAsStoredConfigSpec
public static EPMAsStoredConfigSpec newEPMAsStoredConfigSpec(EPMAsStoredConfig configuration) throws WTPropertyVetoException, WTException Factory method to create a new EPMAsStoredConfigSpec using the specified EPMAsStoredConfig.
Supported API: true- Parameters:
configuration-- Returns:
- EPMAsStoredConfigSpec
- Throws:
WTPropertyVetoExceptionWTException
-
newEPMAsStoredConfigSpec
public static EPMAsStoredConfigSpec newEPMAsStoredConfigSpec(List seeds) throws WTPropertyVetoException, WTException Factory method to create a new EPMAsStoredConfigSpec given a list of seed objects. If there are no asStoredConfigs associated to the seeds, an exception is thrown.
Supported API: true- Parameters:
seeds- Use the EPMAsStoredConfig to which the seed has an owner association.- Returns:
- EPMAsStoredConfigSpec
- Throws:
WTPropertyVetoExceptionWTException
-