Class EPMAsStoredConfigSpec

java.lang.Object
wt.epm.workspaces.EPMAsStoredConfigSpec
All Implemented Interfaces:
Externalizable, Serializable, Evolvable, ConfigSpec

public class EPMAsStoredConfigSpec extends Object implements ConfigSpec, Evolvable, Externalizable
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
See Also:
  • 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

      public QuerySpec appendSearchCriteria(QuerySpec querySpec) throws WTException, QueryException
      Appends to the QuerySpec based on the substitution rules to be followed.

      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:
    • process

      public QueryResult process(QueryResult results) throws WTException
      Returns a clone of the results. The QueryResult is processed and a LatestConfigSpec is applied.

      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:
    • 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:
      WTPropertyVetoException
      WTException
    • 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:
      WTPropertyVetoException
      WTException
    • 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:
      WTPropertyVetoException
      WTException