wt.vc.baseline
Interface BaselineDelegate

All Known Implementing Classes:
StandardBaselineDelegate

public interface BaselineDelegate



Supported API: false

Extendable: false


Method Summary
 boolean add(Baseline a_baseline, ArrayList a_baselineMemberInfos)
          Deprecated. All BaselineMemberInfo-based APIs are obsolete.
 void add(WTCollection baselineMembers, Baseline baseline)
          Handles the persistence of the baselineMembers WTCollection.
 WTCollection getBaselineMembers(WTCollection baselineables, Baseline baseline)
          Returns the BaselineMember associations that link elements in the collection to the baseline.
 WTValuedMap getBaselineMembersToReplacingBaselineablesMap(WTValuedMap masterToIterationMap, Baseline baseline)
          Responsible for finding the existing (in-the-database) BaselineMember links that associate the baseline with any iterations of the given masters.
 boolean remove(Baseline a_baseline, ArrayList a_baselineMembers)
          Deprecated. All BaselineMemberInfo-based APIs are obsolete.
 void remove(WTCollection baselineMembers, Baseline baseline)
          Handles the removal of the baselineMembers from the database.
 boolean replace(Baseline a_baseline, ArrayList replacementInfo)
          Deprecated. All BaselineMemberInfo-based APIs are obsolete.
 void replace(WTValuedMap addToReplaceBaselineMembersMap, Baseline baseline)
          This API is responsible for the persistence operations necessary to replace iterations in the baseline with other iterations.
 

Method Detail

getBaselineMembersToReplacingBaselineablesMap

public WTValuedMap getBaselineMembersToReplacingBaselineablesMap(WTValuedMap masterToIterationMap,
                                                                 Baseline baseline)
                                                          throws WTException
Responsible for finding the existing (in-the-database) BaselineMember links that associate the baseline with any iterations of the given masters. These represent the iterations for which the baseline already has a member; these existing members will be replaced by the new iterations. The API then returns a map where the existing members are keys and the iterations (from the masterToIterationMap) to replace are the values.

NOTE: this API should return an entry for a member even if that member points to the same iteration as the one that will be added -- the calling API will handle the recognition of this and will then neither "add" nor "replace" that iteration.

Supported API: false

Parameters:
masterToIterationMap -
baseline -
Returns:
WTValuedMap
Throws:
WTException

getBaselineMembers

public WTCollection getBaselineMembers(WTCollection baselineables,
                                       Baseline baseline)
                                throws WTException
Returns the BaselineMember associations that link elements in the collection to the baseline. These results are used to delete elements from the baseline.

Supported API: false

Parameters:
baselineables -
baseline -
Returns:
WTCollection
Throws:
WTException

add

public boolean add(Baseline a_baseline,
                   ArrayList a_baselineMemberInfos)
            throws WTException
Deprecated. All BaselineMemberInfo-based APIs are obsolete.



Supported API: false

Parameters:
a_baseline -
a_baselineMemberInfos -
Returns:
boolean
Throws:
WTException

replace

public boolean replace(Baseline a_baseline,
                       ArrayList replacementInfo)
                throws WTException
Deprecated. All BaselineMemberInfo-based APIs are obsolete.



Supported API: false

Parameters:
a_baseline -
replacementInfo - The replacementInfo contains information needed for replacing one link in the baseline with another. In this case, each element consists of an Object[3] containing the BaselineMemberInfo for the new baselineable, the BaselineMember link, and the original baselineable.
Returns:
boolean
Throws:
WTException

remove

public boolean remove(Baseline a_baseline,
                      ArrayList a_baselineMembers)
               throws WTException
Deprecated. All BaselineMemberInfo-based APIs are obsolete.



Supported API: false

Parameters:
a_baseline -
a_baselineMembers - ArrayList of BaselineMembers which will be removed
Returns:
boolean
Throws:
WTException

add

public void add(WTCollection baselineMembers,
                Baseline baseline)
         throws WTException
Handles the persistence of the baselineMembers WTCollection.

Supported API: false

Parameters:
baselineMembers -
baseline -
Throws:
WTException

replace

public void replace(WTValuedMap addToReplaceBaselineMembersMap,
                    Baseline baseline)
             throws WTException
This API is responsible for the persistence operations necessary to replace iterations in the baseline with other iterations. The addToReplaceBaselineMembersMap has the BaselineMember association (unpersisted) originally indicated to be "added" as the key and the association found in the baseline for the same master as the value.

Supported API: false

Parameters:
addToReplaceBaselineMembersMap -
baseline -
Throws:
WTException

remove

public void remove(WTCollection baselineMembers,
                   Baseline baseline)
            throws WTException
Handles the removal of the baselineMembers from the database.

Supported API: false

Parameters:
baselineMembers -
baseline -
Throws:
WTException