wt.epm.build
Interface EPMBuildLinksDelegate

All Known Implementing Classes:
EPMDefaultBuildLinksDelegate

public interface EPMBuildLinksDelegate

Gives a framework for users to publish usage links.

Supported API: false

Extendable: false


Method Summary
 WTPartUsageLink createNewLink(WTPart parent, WTPartMaster childMaster, BuildReference buildReference, Quantity quantity)
          Creates a new "built" part usage link between the given Part and PartMaster.
 PartUsesOccurrence createNewOccurrence(WTPartUsageLink link, EPMUsesOccurrence sourceOccurrence, String applicationTag)
          Creates a new "built" part uses occurrence on the given part usage link for the given epm uses occurrence.
 WTPartUsageLink subsumeNonBuiltLink(QueryResult links, BuildReference buildReference, Quantity quantity)
          This method replaces a "non built" part usage link with a "built" part usage link.
 QueryResult subsumeNonBuiltOccurrences(QueryResult nonBuiltOccurrences, QueryResult sourceOccurrences, String applicationTag)
          Replaces "non built" part uses occurrences with "built" part uses occurrences.
 boolean updateBuiltLink(WTPartUsageLink link, Quantity newQuantity)
          This method updates an existing "built" part usage link.
 PartUsesOccurrence updateBuiltOccurrence(PartUsesOccurrence builtOccurrence, EPMUsesOccurrence sourceOccurrence)
          Updates an existing "built" part uses occurrence such that it reflects any changes made to the source uses occurrence that it was built from.
 

Method Detail

createNewLink

public WTPartUsageLink createNewLink(WTPart parent,
                                     WTPartMaster childMaster,
                                     BuildReference buildReference,
                                     Quantity quantity)
                              throws WTException
Creates a new "built" part usage link between the given Part and PartMaster. The links are not stored by this method . Service call storeBuildableLinks should be used to stored modified methods.

Supported API: false

Parameters:
parent -
childMaster -
buildReference -
quantity -
Returns:
WTPartUsageLink
Throws:
WTException

updateBuiltLink

public boolean updateBuiltLink(WTPartUsageLink link,
                               Quantity newQuantity)
                        throws WTException
This method updates an existing "built" part usage link. The links are not stored by this method . Service call storeBuildableLinks should be used to stored modified methods. Method returns true if give link is modified and required to be saved. otherwise it returns false.

Supported API: false

Parameters:
link -
newQuantity -
Returns:
boolean
Throws:
WTException

subsumeNonBuiltLink

public WTPartUsageLink subsumeNonBuiltLink(QueryResult links,
                                           BuildReference buildReference,
                                           Quantity quantity)
                                    throws WTException
This method replaces a "non built" part usage link with a "built" part usage link. The links are not stored by this method . Service call storeBuildableLinks should be used to stored modified methods.

Supported API: false

Parameters:
links -
buildReference -
quantity -
Returns:
WTPartUsageLink
Throws:
WTException

createNewOccurrence

public PartUsesOccurrence createNewOccurrence(WTPartUsageLink link,
                                              EPMUsesOccurrence sourceOccurrence,
                                              String applicationTag)
                                       throws WTException
Creates a new "built" part uses occurrence on the given part usage link for the given epm uses occurrence.

Supported API: false

Parameters:
link -
sourceOccurrence -
applicationTag - identifies the application or build rule that initiated the "build"
Returns:
PartUsesOccurrence
Throws:
WTException

updateBuiltOccurrence

public PartUsesOccurrence updateBuiltOccurrence(PartUsesOccurrence builtOccurrence,
                                                EPMUsesOccurrence sourceOccurrence)
                                         throws WTException
Updates an existing "built" part uses occurrence such that it reflects any changes made to the source uses occurrence that it was built from.

Supported API: false

Parameters:
builtOccurrence - "built" part uses occurrence to update
sourceOccurrence - uses occurrence that the given part uses occurrence was "built" from
Returns:
PartUsesOccurrence
Throws:
WTException

subsumeNonBuiltOccurrences

public QueryResult subsumeNonBuiltOccurrences(QueryResult nonBuiltOccurrences,
                                              QueryResult sourceOccurrences,
                                              String applicationTag)
                                       throws WTException
Replaces "non built" part uses occurrences with "built" part uses occurrences.

Supported API: false

Parameters:
nonBuiltOccurrences - list of "non built" part uses occurrences to subsume
sourceOccurrences - list of uses occurrences to create "built" part uses occurrences for
applicationTag - identifies the application or build rule that initiated the "build"
Returns:
QueryResult
Throws:
WTException