Class AbstractAggregateGraphStateModificator

java.lang.Object
ai.stapi.graphsystem.aggregategraphstatemodifier.AbstractAggregateGraphStateModificator
All Implemented Interfaces:
AggregateGraphStateModificator
Direct Known Subclasses:
AddAggregateGraphStateModificator, UpsertAggregateGraphStateModificator

public abstract class AbstractAggregateGraphStateModificator extends Object implements AggregateGraphStateModificator
  • Field Details

    • structureSchemaFinder

      protected final ai.stapi.schema.structureSchemaProvider.StructureSchemaFinder structureSchemaFinder
    • dynamicOgmProvider

      protected final DynamicOgmProvider dynamicOgmProvider
    • objectGraphMapper

      protected final GenericObjectGraphMapper objectGraphMapper
  • Constructor Details

    • AbstractAggregateGraphStateModificator

      public AbstractAggregateGraphStateModificator(ai.stapi.schema.structureSchemaProvider.StructureSchemaFinder structureSchemaFinder, DynamicOgmProvider dynamicOgmProvider, GenericObjectGraphMapper objectGraphMapper)
  • Method Details

    • getMappedObject

      @NotNull protected @NotNull Map<String,Object> getMappedObject(Object inputValue, ai.stapi.graph.traversableGraphElements.TraversableNode modifiedNode, String fieldName)
    • getOgm

      @NotNull protected @NotNull ObjectGraphMapping getOgm(ai.stapi.graph.traversableGraphElements.TraversableNode modifiedNode, ai.stapi.schema.structureSchema.FieldDefinition inputValueSchema, String fieldName)
    • getTraversingStartNode

      protected ai.stapi.graph.traversableGraphElements.TraversableNode getTraversingStartNode(String aggregateType, DynamicCommand command, CommandHandlerDefinitionDTO.EventFactory.EventFactoryModification modificationDefinition, ai.stapi.schema.structureSchema.ComplexStructureType operationStructureType, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository aggregateRepo)
    • traverseToModifiedNode

      protected ai.stapi.graph.traversableGraphElements.TraversableNode traverseToModifiedNode(ai.stapi.graph.traversableGraphElements.TraversableNode currentNode, String[] pathToTraverse, List<String> alreadyTraversedPath, ai.stapi.schema.structureSchema.ComplexStructureType operationDefinition, CommandHandlerDefinitionDTO.EventFactory.EventFactoryModification modificationDefinition)