Package dev.dsf.fhir.dao.command
Class CommandFactoryImpl
java.lang.Object
dev.dsf.fhir.dao.command.CommandFactoryImpl
- All Implemented Interfaces:
CommandFactory,org.springframework.beans.factory.InitializingBean
public class CommandFactoryImpl
extends Object
implements org.springframework.beans.factory.InitializingBean, CommandFactory
-
Constructor Summary
ConstructorsConstructorDescriptionCommandFactoryImpl(String serverBase, int defaultPageCount, DataSource dataSource, DaoProvider daoProvider, ReferenceExtractor referenceExtractor, ReferenceResolver referenceResolver, ReferenceCleaner referenceCleaner, ResponseGenerator responseGenerator, ExceptionHandler exceptionHandler, ParameterConverter parameterConverter, EventHandler eventHandler, EventGenerator eventGenerator, AuthorizationHelper authorizationHelper, ValidationHelper validationHelper, SnapshotGenerator snapshotGenerator, Function<Connection, TransactionResources> transactionResourcesFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCommand(int index, Identity identity, PreferReturnType returnType, PreferHandlingType handlingType, org.hl7.fhir.r4.model.Bundle bundle, org.hl7.fhir.r4.model.Bundle.BundleEntryComponent entry) createCommands(org.hl7.fhir.r4.model.Bundle bundle, Identity identity, PreferReturnType returnType, PreferHandlingType handlingType)
-
Constructor Details
-
CommandFactoryImpl
public CommandFactoryImpl(String serverBase, int defaultPageCount, DataSource dataSource, DaoProvider daoProvider, ReferenceExtractor referenceExtractor, ReferenceResolver referenceResolver, ReferenceCleaner referenceCleaner, ResponseGenerator responseGenerator, ExceptionHandler exceptionHandler, ParameterConverter parameterConverter, EventHandler eventHandler, EventGenerator eventGenerator, AuthorizationHelper authorizationHelper, ValidationHelper validationHelper, SnapshotGenerator snapshotGenerator, Function<Connection, TransactionResources> transactionResourcesFactory)
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
createCommands
public CommandList createCommands(org.hl7.fhir.r4.model.Bundle bundle, Identity identity, PreferReturnType returnType, PreferHandlingType handlingType) throws BadBundleException - Specified by:
createCommandsin interfaceCommandFactory- Parameters:
bundle- notnullidentity- notnullreturnType- notnullhandlingType- notnull- Returns:
CommandListwith individual commands from each entry contained in the bundle- Throws:
BadBundleException- if the bundle could not be processed because of wrong bundle type or other errors
-
createCommand
protected Stream<Command> createCommand(int index, Identity identity, PreferReturnType returnType, PreferHandlingType handlingType, org.hl7.fhir.r4.model.Bundle bundle, org.hl7.fhir.r4.model.Bundle.BundleEntryComponent entry)
-