Class ContextMappingModelHelper


  • public class ContextMappingModelHelper
    extends java.lang.Object
    • 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.