Class ContextMappingModelHelper
- java.lang.Object
-
- org.contextmapper.dsl.refactoring.ContextMappingModelHelper
-
public class ContextMappingModelHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ContextMappingModelHelper(ContextMap contextMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Relationship>
findAnyRelationshipsBetweenTwoContexts(BoundedContext bc1, BoundedContext bc2)
Finds all relationships between the two given contexts.java.util.List<Relationship>
findAnyRelationshipsInvolvingContext(BoundedContext bc)
Finds all relationships that involve a specific 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'.
-
-
-
Constructor Detail
-
ContextMappingModelHelper
public ContextMappingModelHelper(ContextMap contextMap)
-
-
Method Detail
-
findAnyRelationshipsBetweenTwoContexts
public java.util.List<Relationship> findAnyRelationshipsBetweenTwoContexts(BoundedContext bc1, BoundedContext bc2)
Finds all relationships between the two given contexts.
-
findAnyRelationshipsInvolvingContext
public java.util.List<Relationship> findAnyRelationshipsInvolvingContext(BoundedContext bc)
Finds all relationships that involve a specific Bounded Context.
-
replaceBCInAllRelationships
public boolean replaceBCInAllRelationships(BoundedContext originalBC, BoundedContext replacementBC)
Replaces the bounded context 'originalBC' in all relationships on the context map with the bounded context 'replacementBC'. Returns true if a replacement has been done, false otherwise.
-
moveExposedAggregatesToNewRelationshipsIfNeeded
public 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.
-
-