public class ContextMappingModelHelper
extends java.lang.Object
Constructor and Description |
---|
ContextMappingModelHelper(ContextMappingModel model) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Relationship> |
findAnyRelationshipsBetweenTwoContexts(BoundedContext bc1,
BoundedContext bc2)
Finds all relationships between the two given contexts.
|
java.util.List<java.lang.String> |
findDuplicateEntities(java.lang.String boundedContextName)
Finds duplicate entities within a bounded context.
|
void |
moveExposedAggregatesToNewRelationshipsIfNeeded(java.util.List<java.lang.String> movedAggregates,
BoundedContext newBoundedContext)
Post-AR-Method: Fixes 'exposedAggregates' in context map relationships after
some aggregates have been moved to a new bounded context.
|
boolean |
replaceBCInAllRelationships(BoundedContext originalBC,
BoundedContext replacementBC)
Replaces the bounded context 'originalBC' in all relationships on the context
map with the bounded context 'replacementBC'.
|
public ContextMappingModelHelper(ContextMappingModel model)
public java.util.List<Relationship> findAnyRelationshipsBetweenTwoContexts(BoundedContext bc1, BoundedContext bc2)
public boolean replaceBCInAllRelationships(BoundedContext originalBC, BoundedContext replacementBC)
public java.util.List<java.lang.String> findDuplicateEntities(java.lang.String boundedContextName)
public void moveExposedAggregatesToNewRelationshipsIfNeeded(java.util.List<java.lang.String> movedAggregates, BoundedContext newBoundedContext)