Uses of Interface
com.broadleafcommerce.dataexchange.domain.ExchangeObject
Packages that use ExchangeObject
Package
Description
-
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.domain
Classes in com.broadleafcommerce.dataexchange.domain that implement ExchangeObjectModifier and TypeClassDescriptionclassParent class that contains correlation Ids to re-create the structure.classEntity representation of an exchange object. -
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.domain.asset
Classes in com.broadleafcommerce.dataexchange.domain.asset that implement ExchangeObject -
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.domain.product
Classes in com.broadleafcommerce.dataexchange.domain.product that implement ExchangeObjectModifier and TypeClassDescriptionclassclassclassclassclassclassclass -
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.domain.tag
Classes in com.broadleafcommerce.dataexchange.domain.tag that implement ExchangeObject -
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.domain.translation
Classes in com.broadleafcommerce.dataexchange.domain.translation that implement ExchangeObject -
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.domain.util
Methods in com.broadleafcommerce.dataexchange.domain.util that return types with arguments of type ExchangeObjectModifier and TypeMethodDescriptionstatic Map<String,ExchangeObject> ReflectionUtils.flattenCorrelationHierarchy(List<? extends ExchangeObject> entities) Methods in com.broadleafcommerce.dataexchange.domain.util with parameters of type ExchangeObjectModifier and TypeMethodDescriptionReflectionUtils.findSuperClasses(ExchangeObject entity) Finds all superclasses but excludesObject.static voidReflectionUtils.flattenCorrelationHierarchy(ExchangeObject entity, Map<String, ExchangeObject> result) Recursively iterates over the properties of the entity and if they are instances ofExchangeObjectthis extracts them into aMapkeyed by theirgetCorrelationId().Retryable.RetryableBuilder.withExceptionConsumer(ExchangeObject exchangeObject, BatchContext<?> batchContext) Creates aConsumerthat callsBatchContext.registerException(String, Throwable)using thegetCorrelationId()as the key and logs the exception.Method parameters in com.broadleafcommerce.dataexchange.domain.util with type arguments of type ExchangeObjectModifier and TypeMethodDescriptionstatic voidReflectionUtils.flattenCorrelationHierarchy(ExchangeObject entity, Map<String, ExchangeObject> result) Recursively iterates over the properties of the entity and if they are instances ofExchangeObjectthis extracts them into aMapkeyed by theirgetCorrelationId().static Map<String,ExchangeObject> ReflectionUtils.flattenCorrelationHierarchy(List<? extends ExchangeObject> entities) static voidReflectionUtils.flattenCorrelationHierarchy(List<? extends ExchangeObject> entities, Map<String, ExchangeObject> flattened) static voidReflectionUtils.flattenCorrelationHierarchy(List<? extends ExchangeObject> entities, Map<String, ExchangeObject> flattened) -
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.service
Classes in com.broadleafcommerce.dataexchange.service with type parameters of type ExchangeObjectModifier and TypeClassDescriptionclassAbstractBatchItemHandler<T1 extends ExchangeObject,T2 extends ExchangeObject> classAbstractBatchItemHandler<T1 extends ExchangeObject,T2 extends ExchangeObject> classAbstractDataExchangeService<T extends ExchangeObject>Abstract base implementation for handling the orchestration of the requisite calls to multiple services and/or service API endpoints.classBatchContext<T extends ExchangeObject>Container for holding important data that is relevant to the overall processing of a batch ofExchangeObjects.interfaceBatchItemHandler<T1 extends ExchangeObject,T2 extends ExchangeObject> Implementations of this interface are responsible for handling items in a batch.interfaceBatchItemHandler<T1 extends ExchangeObject,T2 extends ExchangeObject> Implementations of this interface are responsible for handling items in a batch.interfaceDataExchangeService<T extends ExchangeObject>Service whose job it is to orchestrate an exchange of data between services, usually on behalf of an external system.classHandlerArgs<T1 extends ExchangeObject,T2 extends ExchangeObject> DTO for passing arguments toBatchItemHandler.handle(HandlerArgs).classHandlerArgs<T1 extends ExchangeObject,T2 extends ExchangeObject> DTO for passing arguments toBatchItemHandler.handle(HandlerArgs).Methods in com.broadleafcommerce.dataexchange.service with type parameters of type ExchangeObjectModifier and TypeMethodDescription<V extends ExchangeObject>
List<V>BatchContext.findAllOriginalChildrenOfTypeForCorrelationId(String correlationId, Class<V> type) <V extends ExchangeObject>
VBatchContext.findOriginalEntityExchangeObject(String correlationId) Utility method to iterate over theBatchContext.getFlattenedHierarchy()Mapand find theExchangeObjectthat has the provided correlationId.<V extends ExchangeObject>
VBatchContext.findOriginalEntityExchangeObject(String correlationId, Class<V> type) Utility method to iterate over theBatchContext.getFlattenedHierarchy()Mapand find theExchangeObjectthat has the provided correlationId and whose type matches the providedClasstype.<V extends ExchangeObject>
List<V>BatchContext.findTopLevelEntitiesOfType(Class<V> type) <R extends ExchangeObject>
RBatchContext.getSavedEntity(ExchangeObject exchangeObject) Returns a saved ExchangeObject based on the provided correlationId.<R extends ExchangeObject>
RBatchContext.getSavedEntity(String correlationId) Returns a saved ExchangeObject based on the provided correlationId.protected <R,C extends ExchangeObject>
Callable<R>AbstractDataExchangeService.retryableCallable(C payload, BatchContext<T> batchContext, Callable<R> supplier) protected <R,C extends ExchangeObject>
Callable<R>AbstractDataExchangeService.retryableCallable(List<C> payload, BatchContext<T> batchContext, Callable<R> supplier) protected <C extends ExchangeObject>
RunnableAbstractDataExchangeService.retryableRunnable(C payload, BatchContext<T> batchContext, Callable<Void> supplier) protected <C extends ExchangeObject>
RunnableAbstractDataExchangeService.retryableRunnable(List<C> payload, BatchContext<T> batchContext, Callable<Void> supplier) protected <R,C extends ExchangeObject>
Supplier<R>AbstractDataExchangeService.retryableSupplier(C payload, BatchContext<T> batchContext, Callable<R> supplier) protected <R,C extends ExchangeObject>
Supplier<List<R>>AbstractDataExchangeService.retryableSupplier(List<C> payload, BatchContext<T> batchContext, Callable<List<R>> supplier) Methods in com.broadleafcommerce.dataexchange.service that return ExchangeObjectModifier and TypeMethodDescriptionBatchContext.getParentSavedEntity(ExchangeObject exchangeObject) Returns the saved parent ExchangeObject of the provided ExchangeObject.BatchContext.getSavedEntityUnsafe(String correlationId) Returns a saved ExchangeObject based on the provided correlationId.Methods in com.broadleafcommerce.dataexchange.service that return types with arguments of type ExchangeObjectModifier and TypeMethodDescriptionBatchContext.findOriginalChildrenForParent(ExchangeObject exchangeObject) BatchContext.findOriginalChildrenForParent(String correlationId) BatchContext.getChildrenMap()The children of entities, keyed by their parent correlationId.BatchContext.getFlattenedHierarchy()Represents aMapof the entire object graph provided by a caller, flattened so that thegetCorrelationId()is the key.BatchContext.getSavedEntitiesMap()The saved entities, keyed by their correlationId.Methods in com.broadleafcommerce.dataexchange.service with parameters of type ExchangeObjectModifier and TypeMethodDescriptionvoidBatchContext.addSavedEntity(ExchangeObject exchangeObject) Adds a saved entity to theBatchContext.savedEntitiesMap.booleanBatchItemHandler.canHandle(ExchangeObject exchangeObject) Determines if this handler can handle the given exchange object.AbstractBatchItemHandler.execute(T1 parent, ExchangeObject exchangeObject, BatchContext<T1> batchContext, org.springframework.core.task.AsyncTaskExecutor executor, org.springframework.retry.support.RetryTemplate retryTemplate) AbstractBatchItemHandler.execute(T1 parent, ExchangeObject exchangeObject, BatchContext<T1> batchContext, org.springframework.core.task.AsyncTaskExecutor executor, org.springframework.retry.support.RetryTemplate retryTemplate, BatchItemOperationType operationType) AbstractBatchItemHandler.execute(T1 parent, ExchangeObject exchangeObject, BatchContext<T1> batchContext, org.springframework.core.task.AsyncTaskExecutor executor, org.springframework.retry.support.RetryTemplate retryTemplate, BatchItemOperationType operationType, Map<String, Object> additionalArgs) AbstractBatchItemHandler.execute(T1 parent, ExchangeObject exchangeObject, BatchContext<T1> batchContext, org.springframework.core.task.AsyncTaskExecutor executor, org.springframework.retry.support.RetryTemplate retryTemplate, Map<String, Object> additionalArgs) BatchItemHandler.execute(T1 parent, ExchangeObject exchangeObject, BatchContext<T1> batchContext, org.springframework.core.task.AsyncTaskExecutor executor, org.springframework.retry.support.RetryTemplate retryTemplate) The entry point for the handler.BatchItemHandler.execute(T1 parent, ExchangeObject exchangeObject, BatchContext<T1> batchContext, org.springframework.core.task.AsyncTaskExecutor executor, org.springframework.retry.support.RetryTemplate retryTemplate, BatchItemOperationType operationType) The entry point for the handler.BatchItemHandler.execute(T1 parent, ExchangeObject exchangeObject, BatchContext<T1> batchContext, org.springframework.core.task.AsyncTaskExecutor executor, org.springframework.retry.support.RetryTemplate retryTemplate, BatchItemOperationType operationType, Map<String, Object> additionalArgs) The entry point for the handler.BatchItemHandler.execute(T1 parent, ExchangeObject exchangeObject, BatchContext<T1> batchContext, org.springframework.core.task.AsyncTaskExecutor executor, org.springframework.retry.support.RetryTemplate retryTemplate, Map<String, Object> additionalArgs) The entry point for the handler.BatchContext.findOriginalChildrenForParent(ExchangeObject exchangeObject) static ObjectLockService.getLock(ExchangeObject exchangeObject, String key) To be used in places where synchronization is needed.BatchContext.getParentSavedEntity(ExchangeObject exchangeObject) Returns the saved parent ExchangeObject of the provided ExchangeObject.<R extends ExchangeObject>
RBatchContext.getSavedEntity(ExchangeObject exchangeObject) Returns a saved ExchangeObject based on the provided correlationId.booleanBatchContext.hasException(ExchangeObject exchangeObject) Indicates if the providedExchangeObjecthas a registered exception with this batch.voidBatchContext.registerException(ExchangeObject exchangeObject, Throwable ex) Adds anExceptionreference to theExchangeObject.protected voidBatchContext.validateCorrelationId(ExchangeObject exchangeObject) -
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.service.product
Classes in com.broadleafcommerce.dataexchange.service.product with type parameters of type ExchangeObjectModifier and TypeClassDescriptionclassProductRelatedBatchItemHandler<T1 extends ComprehensiveProduct,T2 extends ExchangeObject> Marker class to indicate that a handler is responsible for processing product related children.classVariantRelatedBatchItemHandler<T1 extends ComprehensiveProduct,T2 extends ExchangeObject> Marker class to indicate that a handler is responsible for processing children of a variant.Methods in com.broadleafcommerce.dataexchange.service.product with parameters of type ExchangeObjectModifier and TypeMethodDescriptionbooleanInventoryBatchItemHandler.canHandle(ExchangeObject exchangeObject) booleanPriceDataBatchItemHandler.canHandle(ExchangeObject exchangeObject) booleanProductAssetBatchItemHandler.canHandle(ExchangeObject exchangeObject) booleanProductBatchItemHandler.canHandle(ExchangeObject exchangeObject) booleanProductTagBatchItemHandler.canHandle(ExchangeObject exchangeObject) booleanVariantBatchItemHandler.canHandle(ExchangeObject exchangeObject) protected BatchItemOperationTypeProductBatchItemHandler.findVariantOperationType(HandlerArgs<T, T> args, ExchangeObject exchangeObject) Method parameters in com.broadleafcommerce.dataexchange.service.product with type arguments of type ExchangeObjectModifier and TypeMethodDescriptionProductBatchItemHandlerHelper.mapToCorrelationId(Collection<? extends ExchangeObject> exchangeObjects) -
Uses of ExchangeObject in com.broadleafcommerce.dataexchange.service.provider.external
Methods in com.broadleafcommerce.dataexchange.service.provider.external with type parameters of type ExchangeObjectModifier and TypeMethodDescriptionprotected <T extends ExchangeObject>
TAbstractRestApiExternalProvider.setCorrelationIds(T beforeSave, T afterSave) Set the correlation ids on created/updated entities after saving.