Package wt.associativity
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
Supported API: true
Extendable: false - one can extend
DefaultEquivalenceBasicControlDelegate and override OOTB logic as needed-
Method Summary
Modifier and TypeMethodDescriptionvoidcanBeCreated(EquivalenceLink link) Perform validation to check if an equivalence link can be created.voidcanBeDeleted(EquivalenceLink link) Perform validation to check if an equivalence link can be deleted.voidcanBeUpdated(EquivalenceLink link) Perform validation to check if an equivalence link can be updated.default voidfilterForSelfEquivalenceCreation(Set<Associative> upstreams, ExecutionReport report, List<TypeIdentifier> typeIdentifiersToSkip) Filters out the parts which are checked out to other user.default voidhandleSelfEquivalenceLinks(WTCollection eqLinkRefs) 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.
-
Method Details
-
canBeCreated
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
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
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
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
-