Interface EquivalenceBasicControlDelegate

All Known Implementing Classes:
DefaultEquivalenceBasicControlDelegate

public interface EquivalenceBasicControlDelegate
The purpose of this delegate is to perform validations related to Equivalence link. This interface should be implemented by customized implementations.

Supported API: true

Extendable: false - one can extend DefaultEquivalenceBasicControlDelegate and override OOTB logic as needed
  • Method Details

    • canBeCreated

      void canBeCreated(EquivalenceLink link) throws WTException
      Perform validation to check if an equivalence link can be created.

      Supported API: true
      Parameters:
      link - EquivalenceLink for which the validation is to be performed
      Throws:
      WTException
    • canBeUpdated

      void canBeUpdated(EquivalenceLink link) throws WTException
      Perform validation to check if an equivalence link can be updated.

      Supported API: true
      Parameters:
      link - EquivalenceLink for which the validation is to be performed
      Throws:
      WTException
    • canBeDeleted

      void canBeDeleted(EquivalenceLink link) throws WTException
      Perform validation to check if an equivalence link can be deleted.

      Supported API: true
      Parameters:
      link - EquivalenceLink for which the validation is to be performed
      Throws:
      WTException
    • filterForSelfEquivalenceCreation

      default void filterForSelfEquivalenceCreation(Set<Associative> upstreams, ExecutionReport report, List<TypeIdentifier> typeIdentifiersToSkip) throws WTException
      Filters out the parts which are checked out to other user. Also checks if the parts are of type specified in the preference. Such parts and their children will be skipped from self equivalence link creation.

      Supported API: true
      Parameters:
      upstreams -
      report -
      typeIdentifiersToSkip -
      Throws:
      WTException
    • handleSelfEquivalenceLinks

      default void handleSelfEquivalenceLinks(WTCollection eqLinkRefs) throws WTException
      When new links are created in the system, this method is invoked via PRE_STORE event and this method will validate if Self-Link can be created or if self self should be deleted if already existing based of existing links for same context. This method is not called when a part is iterated or revised and EquivalenceLink is carried forward.

      Supported API: true
      Parameters:
      eqLinkRefs - - all the links getting created
      Throws:
      WTException - - exception if self link should not be created