Package wt.impact
Interface ImpactService
The interface describing the services available for impact associations.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyImpact(Impactor impactor) Apply the impact of an Impactor object on all of its Impacted objects.booleanapplyImpact(Impactor impactor, List<ConfigSpec> configSpecs) Apply the impact of an Impactor object on all of its Impacted objects.booleanapplyImpacts(WTCollection impactors) Apply the impact of a collection of Impactor objects on all of their Impacted objects.booleanapplyImpacts(WTCollection impactors, List<ConfigSpec> configSpecs) Apply the impact of a collection of Impactor objects on all of their Impacted objects.getImpactedDelegate(Class<? extends Impacted> impactedClass) Given a class of type Impacted, look up the registered ImpactedDelegate for this particular type of object and return it.getImpactedDelegate(Impacted impacted) Given a reference to anImpactedobject, look up the registered ImpactedDelegate for this particular type of object and return it.getImpacteds(WTCollection impactors) Get associatedImpactedobjects.getImpacteds(WTCollection impactors, List<ConfigSpec> configSpecs) Get associatedImpactedobjects.getImpacteds(Impactor impactor) Get associatedImpactedobjects.getImpacteds(Impactor impactor, List<ConfigSpec> configSpecs) Get associatedImpactedobjects.getImpactorDelegate(Class<? extends Impactor> impactorClass) Given a class of type Impactor, look up the registered ImpactorDelegate for this particular type of object and return it.getImpactorDelegate(Impactor impactor) Given a reference to anImpactorobject, look up the registered ImpactorDelegate for this particular type of object and return it.getImpactors(WTCollection impacteds) Get associatedImpactorobjects.getImpactors(WTCollection impacteds, List<ConfigSpec> configSpecs) Get associatedImpactorobjects.getImpactors(Impacted impacted) Get associatedImpactorobjects.getImpactors(Impacted impacted, List<ConfigSpec> configSpecs) Get associatedImpactorobjects.voidremoveImpact(Impactor impactor, Impacted impacted, Object container) Remove an impact association between the Impactor and Impacted objects.voidremoveImpacts(Impacted impacted, WTCollection impactors, Object container) Remove impact associations between the Impacted object and Impactor objects.voidremoveImpacts(Impactor impactor, WTCollection impacteds, Object container) Remove impact associations between the Impactor object and Impacted objects.
-
Method Details
-
getImpacteds
- Parameters:
impactor-Impactorobject.- Returns:
- Set of associated
Impactedobjects (guaranteed non-null, may be empty). - Throws:
WTException
-
getImpacteds
- Parameters:
impactors- Collection ofImpactorobjects (other types ignored). Collection may only contain object references (no version references).- Returns:
- Map of
Impactorobjects to WTSets of their associatedImpactedobjects (guaranteed non-null, may be empty). All Impactor objects will have a map entry. - Throws:
WTException
-
getImpacteds
- Parameters:
impactor-Impactorobject.configSpecs- ConfigSpecs used to select a single version of any associatedIteratedImpactedobjects. If null then a latest ConfigSpec is used. If non-null but empty then all versions are returned.- Returns:
- Set of associated
Impactedobjects (guaranteed non-null, may be empty). - Throws:
WTException
-
getImpacteds
- Parameters:
impactors- Collection ofImpactorobjects (other types ignored). Collection may only contain object references (no version references).configSpecs- ConfigSpecs used to select a single version of any associatedIteratedImpactedobjects. If null then a latest ConfigSpec is used. If non-null but empty then all versions are returned.- Returns:
- Map of
Impactorobjects to WTSets of their associatedImpactedobjects (guaranteed non-null, may be empty). All Impactor objects will have a map entry. - Throws:
WTException
-
getImpactors
- Parameters:
impacted-Impactedobject.- Returns:
- Set of associated
Impactorobjects (guaranteed non-null, may be empty). - Throws:
WTException
-
getImpactors
- Parameters:
impacteds- Collection ofImpactedobjects (other types ignored). Collection may only contain object references (no version references).- Returns:
- Map of
Impactedobjects to WTSets of their associatedImpactorobjects (guaranteed non-null, may be empty). All Impacted objects will have a map entry. - Throws:
WTException
-
getImpactors
- Parameters:
impacted-Impactedobject.configSpecs- ConfigSpecs used to select a single version of any associatedIteratedImpactorobjects. If null then a latest ConfigSpec is used. If non-null but empty then all versions are returned.- Returns:
- Set of associated
Impactorobjects (guaranteed non-null, may be empty). - Throws:
WTException
-
getImpactors
- Parameters:
impacteds- Collection ofImpactedobjects (other types ignored). Collection may only contain object references (no version references).configSpecs- ConfigSpecs used to select a single version of any associatedIteratedImpactorobjects. If null then a latest ConfigSpec is used. If non-null but empty then all versions are returned.- Returns:
- Map of
Impactedobjects to WTSets of their associatedImpactorobjects (guaranteed non-null, may be empty). All Impacted objects will have a map entry. - Throws:
WTException
-
removeImpact
Remove an impact association between the Impactor and Impacted objects. Does nothing if an association does not exist.
Supported API: true- Parameters:
impactor-Impactorobject.impacted-Impactedobject.container-WTContainedorWTContainerRefobject used to derive the association rule organization or site context. If null then context is derived from then Impactor object.- Throws:
WTException
-
removeImpacts
Remove impact associations between the Impactor object and Impacted objects. Does nothing if an association does not exist.
Supported API: true- Parameters:
impactor-Impactorobject.impacteds- Collection ofImpactedobjects (other types ignored, will be inflated). Collection may only contain object references (no version references).container-WTContainedorWTContainerRefobject used to derive the association rule organization or site context. If null then context is derived from then Impactor object.- Throws:
WTException
-
removeImpacts
Remove impact associations between the Impacted object and Impactor objects. Does nothing if an association does not exist.
Supported API: true- Parameters:
impacted-Impactedobject.impactors- Collection ofImpactorobjects (other types ignored, will be inflated). Collection may only contain object references (no version references).container-WTContainedorWTContainerRefobject used to derive the association rule organization or site context. If null then context is derived from then Impacted object.- Throws:
WTException
-
getImpactorDelegate
Given a reference to anImpactorobject, look up the registered ImpactorDelegate for this particular type of object and return it.
Supported API: true- Parameters:
impactor- Impactor object.- Returns:
- ImpactorDelegate The impactor delegate registered for this type, or null if none is found.
- Throws:
WTException
-
getImpactedDelegate
Given a reference to anImpactedobject, look up the registered ImpactedDelegate for this particular type of object and return it.
Supported API: true- Parameters:
impacted- Impacted object.- Returns:
- ImpactedDelegate The impacted delegate registered for this type, or null if none is found.
- Throws:
WTException
-
getImpactorDelegate
Given a class of type Impactor, look up the registered ImpactorDelegate for this particular type of object and return it.
Supported API: true- Parameters:
impactorClass- Impactor class object.- Returns:
- ImpactorDelegate The impactor delegate registered for this type, or null if none is found.
- Throws:
WTException
-
getImpactedDelegate
Given a class of type Impacted, look up the registered ImpactedDelegate for this particular type of object and return it.
Supported API: true- Parameters:
impactedClass- Impacted class object.- Returns:
- ImpactedDelegate The impacted delegate registered for this type, or null if none is found.
- Throws:
WTException
-
applyImpact
Apply the impact of an Impactor object on all of its Impacted objects.
Supported API: true- Parameters:
impactor-Impactorobject.- Returns:
- True if impacts were applied, false if not.
- Throws:
WTException
-
applyImpacts
Apply the impact of a collection of Impactor objects on all of their Impacted objects.
Supported API: true- Parameters:
impactors- Collection ofImpactorobjects (other types ignored, will be inflated).- Returns:
- True if impacts were applied, false if not.
- Throws:
WTException
-
applyImpact
Apply the impact of an Impactor object on all of its Impacted objects.
Supported API: true- Parameters:
impactor-Impactorobject.configSpecs- ConfigSpecs used to select a single version of any associatedIteratedImpactedobjects. If null then a latest ConfigSpec is used. If non-null but empty then all versions are selected.- Returns:
- True if impacts were applied, false if not.
- Throws:
WTException
-
applyImpacts
Apply the impact of a collection of Impactor objects on all of their Impacted objects.
Supported API: true- Parameters:
impactors- Collection ofImpactorobjects (other types ignored, will be inflated).configSpecs- ConfigSpecs used to select a single version of any associatedIteratedImpactedobjects. If null then a latest ConfigSpec is used. If non-null but empty then all versions are selected.- Returns:
- True if impacts were applied, false if not.
- Throws:
WTException
-