Class StandardBomService

java.lang.Object
wt.services.StandardManager
wt.associativity.StandardBomService
All Implemented Interfaces:
Serializable, BomService, wt.fc._NetFactor, NetFactor, wt.services.Manager

@Deprecated public class StandardBomService extends StandardManager implements BomService, Serializable
Deprecated.
- As of 13.0.1.0, Use interface BomService using {@link AssociativityServiceLocator#getInstance()#getBomService()}

Use the newStandardBomService static factory method(s), not the StandardBomService 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

    • getPartsFromPart

      public QueryResult getPartsFromPart(WTPart part, NCServerHolder nc_server_holder, boolean only_return_other_side) throws WTException
      Deprecated.
      returns the QueryResult of WTPart used by a given WTPart and filtered on specified NCServerHolder.

      Supported API: true
      Specified by:
      getPartsFromPart in interface BomService
      Parameters:
      part -
      nc_server_holder -
      only_return_other_side -
      Returns:
      Throws:
      WTException
    • getPartsMapFromPart

      public Map<CSCollectedFromObj,Persistable> getPartsMapFromPart(WTPart part, NCServerHolder nc_server_holder, FilteredStatus filter_status, boolean bReturn_filtered) throws WTException
      Deprecated.
      returns the Map of WTPart used by a given WTPart and filtered on specified NCServerHolder and collector filter status.

      Supported API: true
      Specified by:
      getPartsMapFromPart in interface BomService
      Parameters:
      part -
      nc_server_holder -
      filter_status -
      bReturn_filtered -
      Returns:
      Throws:
      WTException
    • findOutOfDateEquivalence

      @Deprecated public WTCollection findOutOfDateEquivalence(ObjectReference source, NCServerHolder otherSideCriteria, ViewReference[] sourceViewReferences, ViewReference[] otherSideViewReferences, boolean getDownstream, TypeFilter allowedTypesOnOtherSide) throws WTException
      Use API to find only out of date downstream equivalent parts. It returns latest of all the out of date parts from current iteration if any else from previous iteration.

      Supported API: true
      Specified by:
      findOutOfDateEquivalence in interface BomService
      Parameters:
      source -
      otherSideCriteria -
      sourceViewReferences -
      otherSideViewReferences -
      getDownstream -
      Returns:
      Throws:
      WTException
    • findDownstreamEquivalent

      public QueryResult findDownstreamEquivalent(Iterated iterated) throws WTException
      Deprecated.
      find the downstream iterated that is equivalent to the given upstream iterated

      Supported API: true
      Specified by:
      findDownstreamEquivalent in interface BomService
      Parameters:
      iterated -
      Returns:
      QueryResult
      Throws:
      WTException
    • findUpstreamEquivalent

      public QueryResult findUpstreamEquivalent(Iterated iterated) throws WTException
      Deprecated.
      find the upstream iterated that is equivalent to the given downstream iterated

      Supported API: true
      Specified by:
      findUpstreamEquivalent in interface BomService
      Parameters:
      iterated -
      Returns:
      QueryResult
      Throws:
      WTException
    • findUpstreamFromDownstream

      public WTCollection findUpstreamFromDownstream(PathOccurrence consumes) throws WTException
      Deprecated.
      retreive the upstream paths consumed by this downstream path. The result is a collection of PathOccurrence

      Supported API: true
      Specified by:
      findUpstreamFromDownstream in interface BomService
      Parameters:
      consumes - the downstream path
      Returns:
      WTCollection
      Throws:
      WTException
    • getFilteredEquivalentParts

      public Map<Associative,Collection<Associative>> getFilteredEquivalentParts(Set<Associative> items, NavigationCriteria upnc, NavigationCriteria downnc, boolean getDownstream) throws WTException
      Deprecated.
      Get other side equivalent part matching the given upstream downstream context and other side config spec. Its Important to understand that other side equivalent maybe out of date based on config spec. Also for now this API only supports WTParts and not EnterpriseData.

      Supported API: true
      Specified by:
      getFilteredEquivalentParts in interface BomService
      Parameters:
      items - - the parts for which we wish to find other side equivalent parts
      upnc - - the upstream nc. important that is actually upstream nc and service takes care of treating it as current side nc or other side nc.
      downnc - - the downstream nc. important that is actually downstream nc and service takes care of treating it as current side nc or other side nc.
      getDownstream - - tells if we wish to find downstream or upstream equivalent
      Returns:
      - never return null and for each input there will be at least be a empty collection. never null.
      Throws:
      WTException
    • getFilteredEquivalenceLinks

      public Map<Associative,Collection<EquivalenceLink>> getFilteredEquivalenceLinks(Set<Associative> items, NavigationCriteria upnc, NavigationCriteria downnc, boolean getDownstream, TypeFilter allowedTypes) throws WTException
      Deprecated.
      This gets all the filtered upstream/downstream equivalent links for given input in given upstream and downstream contexts. This considers Out of date criteria and hence the resulting map will be against the input items, but EquivalenceLink in the result may not be pointing to the input items, typically for upstream use cases where they are out of date.

      Supported API: true
      Specified by:
      getFilteredEquivalenceLinks in interface BomService
      Parameters:
      downIters - - the downstream iterations for which to find the links
      upnc - - optional, used to filter out the links for given upstream context.
      downnc - - optional, used to filter out the links for given downstream context.
      Returns:
      - Collection of Equivalence Links, never null.
      Throws:
      WTException
    • getFilteredEquivalenceLinks

      public Map<Associative,Collection<EquivalenceLink>> getFilteredEquivalenceLinks(Set<Associative> items, EquivalenceParams params) throws WTException
      Deprecated.
      This gets all the filtered upstream/downstream equivalent links for given input in given upstream and downstream contexts. This considers Out of date criteria and hence the resulting map will be against the input items, but EquivalenceLink in the result may not be pointing to the input items, typically for upstream use cases where they are out of date.

      Supported API: true
      Specified by:
      getFilteredEquivalenceLinks in interface BomService
      Parameters:
      items - - the downstream iterations for which to find the links
      params - - EquivalenceParams
      Returns:
      - Collection of Equivalence Links, never null.
      Throws:
      WTException
    • registerEvents

      public void registerEvents(ManagerService ms)
      Deprecated.
      Register events with the passed ManagerService.

      Supported API: true
      Specified by:
      registerEvents in interface wt.services.Manager
      Overrides:
      registerEvents in class StandardManager
      Parameters:
      managerService - the ManagerService with which to register events.
    • createEquivalenceLinks

      public void createEquivalenceLinks(WTPart[] downstreamParts, WTPart[] upstreamParts) throws WTException, WTPropertyVetoException
      Deprecated.
      Creates Equivalence Link between all elements of Upstream Part array and Downstream Part array If an Equivalence Link already exists between the 2 elements, it ignores the creation and proceeds with the next Equivalence Link creation.

      Supported API: true
      Specified by:
      createEquivalenceLinks in interface BomService
      Parameters:
      downstreamParts - : Array of Downstream Parts
      upstreamParts - : Array of Upstream Parts
      Throws:
      WTException
      WTPropertyVetoException