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 Summary
FieldsModifier and TypeFieldDescriptionprotected final DynamicOgmProviderprotected final GenericObjectGraphMapperprotected final ai.stapi.schema.structureSchemaProvider.StructureSchemaFinder -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAggregateGraphStateModificator(ai.stapi.schema.structureSchemaProvider.StructureSchemaFinder structureSchemaFinder, DynamicOgmProvider dynamicOgmProvider, GenericObjectGraphMapper objectGraphMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetMappedObject(Object inputValue, ai.stapi.graph.traversableGraphElements.TraversableNode modifiedNode, String fieldName) protected @NotNull ObjectGraphMappinggetOgm(ai.stapi.graph.traversableGraphElements.TraversableNode modifiedNode, ai.stapi.schema.structureSchema.FieldDefinition inputValueSchema, String fieldName) protected ai.stapi.graph.traversableGraphElements.TraversableNodegetTraversingStartNode(String aggregateType, DynamicCommand command, CommandHandlerDefinitionDTO.EventFactory.EventFactoryModification modificationDefinition, ai.stapi.schema.structureSchema.ComplexStructureType operationStructureType, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository aggregateRepo) protected ai.stapi.graph.traversableGraphElements.TraversableNodetraverseToModifiedNode(ai.stapi.graph.traversableGraphElements.TraversableNode currentNode, String[] pathToTraverse, List<String> alreadyTraversedPath, ai.stapi.schema.structureSchema.ComplexStructureType operationDefinition, CommandHandlerDefinitionDTO.EventFactory.EventFactoryModification modificationDefinition) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.stapi.graphsystem.aggregategraphstatemodifier.AggregateGraphStateModificator
modify, supports
-
Field Details
-
structureSchemaFinder
protected final ai.stapi.schema.structureSchemaProvider.StructureSchemaFinder structureSchemaFinder -
dynamicOgmProvider
-
objectGraphMapper
-
-
Constructor Details
-
AbstractAggregateGraphStateModificator
public AbstractAggregateGraphStateModificator(ai.stapi.schema.structureSchemaProvider.StructureSchemaFinder structureSchemaFinder, DynamicOgmProvider dynamicOgmProvider, GenericObjectGraphMapper objectGraphMapper)
-
-
Method Details
-
getMappedObject
-
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)
-