Package wt.part

Class WTPartAsMaturedConfigSpec

java.lang.Object
wt.part._WTPartAsMaturedConfigSpec
wt.part.WTPartAsMaturedConfigSpec
All Implemented Interfaces:
Externalizable, Serializable, wt.fc._NetFactor, wt.fc._ObjectMappable, NetFactor, ObjectMappable, ConfigSpec

The WTPartAsMaturedConfigSpec is used to filter non-latest revision of WTParts based on most mature life cycle state, view and historical date to get the most matured configuration of the object that existed at a given point in time.

Use the newWTPartAsMaturedConfigSpec static factory method(s), not the WTPartAsMaturedConfigSpec constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
  • Method Details

    • newWTPartAsMaturedConfigSpec

      public static WTPartAsMaturedConfigSpec newWTPartAsMaturedConfigSpec(Timestamp date, View view, Variation1 variation1, Variation2 variation2, String seedOid) throws WTPropertyVetoException
      Construct a WTPartAsMaturedConfigSpec setting the date, view and variation to the passed-in values.

      Supported API: true
      Parameters:
      date -
      view -
      variation1 -
      variation2 -
      Returns:
      WTPartAsMaturedConfigSpec
      Throws:
      WTPropertyVetoException
    • newWTPartAsMaturedConfigSpec

      public static WTPartAsMaturedConfigSpec newWTPartAsMaturedConfigSpec(WTPart part) throws WTException
      Factory method that takes in part and figures out the elements based on the part *

      Supported API: true
      Parameters:
      part - Top level part using which the as matured config spec is figured out.
      Returns:
      WTPartAsMaturedConfigSpec
      Throws:
      WTException
    • getAsMaturedDefaultDateForPart

      public static final Date getAsMaturedDefaultDateForPart(WTPart part) throws WTException
      Get the default maturity date used by an As Matured Configuration Specification for a given part.
      The maturity date, as provided from the maturity history, is the date upon which the part was first promoted into a state identified by the AS_MATURED_FINAL_STATES_WTPART or the DEFAULT_STATE when no valid preference is set.
      When no maturity history exists for a part, the current date is used.


      Supported API: true Extendable: false
      Parameters:
      part -
      Returns:
      Date of first matured state change. Current date will be returned if no maturity history found.
      Throws:
      WTException
    • getMaturityDateFromPart

      public static final Timestamp getMaturityDateFromPart(WTPart part) throws WTException
      Get the maturity date from a given part.
      The maturity date, as provided from the maturity history, is the date upon which the part was first promoted into a state identified by the AS_MATURED_FINAL_STATES_WTPART or the DEFAULT_STATE when no valid preference is set.
      When no maturity history exists for a part, a null value is returned.


      Supported API: true Extendable: false
      Parameters:
      part -
      Returns:
      TimeStamp of first matured state change. Null if no maturity history found.
      Throws:
      WTException
    • getView

      public View getView()
      Gets the value of the attribute: VIEW. If set, only those objects assigned to the view or view-independent are returned. If no WTParts match the view, the parent is checked (until there is either at least one match or no parent). If not set, only view-independent parts are returned.

      Supported API: true
      Returns:
      View
    • setView

      public void setView(View a_View) throws WTPropertyVetoException
      Sets the value of the attribute: VIEW. If set, only those objects assigned to the view or view-independent are returned. If no WTParts match the view, the parent is checked (until there is either at least one match or no parent). If not set, only view-independent parts are returned.

      Supported API: true
      Parameters:
      a_View -
      Throws:
      WTPropertyVetoException
    • appendSearchCriteria

      public QuerySpec appendSearchCriteria(QuerySpec querySpec) throws WTException, QueryException
      Appends AsMaturedConfigSpec and ViewConfigSpec search criteria to the given QuerySpec.

      Supported API: true
      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
      Process the QueryResult of iterations, returning only those that match the most mature life cycle states, view and as matured date.

      Supported API: true
      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: