Class BatchRequest.BatchContext
java.lang.Object
com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext
- Enclosing class:
- BatchRequest
-
Constructor Summary
ConstructorsConstructorDescriptionBatchContext(String sandboxId, String author, String applicationId, String catalogId, String tenantId) BatchContext(String sandboxId, String author, String applicationId, String catalogId, String tenantId, Map<String, Object> parameters, com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer changeContainer, String parentEntityId, String customerContextId, String vendorRef) BatchContext(String sandboxId, String author, String applicationId, String catalogId, String tenantId, Map<String, Object> parameters, String parentEntityId) -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchRequest.BatchContextempty()booleanThis field is not intended to be serialized/transferred between the import service and resource tier services.The application that the import items should go into.The user that initiated the importcom.broadleafcommerce.data.tracking.core.context.ContextInfoRepresents theContextInfothat has all the basic info hydrated such as theContextRequest.The catalog that the import items should go into.com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainerThe ID of the customer context that the import items should go into.In some import scenarios, the imported entities cannot exist without a parent entity.The sandbox that the import items should go into.The tenant that the import items should go into.The reference to the vendor associated with this import.inthashCode()voidsetBaseContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo baseContextInfo) Represents theContextInfothat has all the basic info hydrated such as theContextRequest.toString()
-
Constructor Details
-
BatchContext
-
BatchContext
-
BatchContext
public BatchContext(@Nullable String sandboxId, @Nullable String author, @Nullable String applicationId, @Nullable String catalogId, String tenantId, @Nullable Map<String, Object> parameters, @Nullable com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer changeContainer, @Nullable String parentEntityId, @Nullable String customerContextId, @Nullable String vendorRef)
-
-
Method Details
-
empty
-
getSandboxId
The sandbox that the import items should go into. -
getAuthor
The user that initiated the import -
getApplicationId
The application that the import items should go into. -
getCatalogId
The catalog that the import items should go into. -
getTenantId
The tenant that the import items should go into. -
getVendorRef
The reference to the vendor associated with this import. This value can be null, in which case, no vendor is associated.- Returns:
- the reference to the vendor associated with this import
-
getParameters
-
getChangeContainer
@Nullable public com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer getChangeContainer() -
getParentEntityId
In some import scenarios, the imported entities cannot exist without a parent entity. This field is intended to hold the id of the parent entity common to all of the imported entities. For example: campaign id for campaign codes -
getCustomerContextId
The ID of the customer context that the import items should go into.- Returns:
- the customer context that the import items should go into
-
getAdditionalContextMap
This field is not intended to be serialized/transferred between the import service and resource tier services. It only serves as a convenient mechanism for resource-tier import-handling processes to store and pass any additional useful data between components. Usage of this field is entirely optional and implementation-dependent. -
getBaseContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getBaseContextInfo()Represents theContextInfothat has all the basic info hydrated such as theContextRequest. By default this is set up forOperationType.READoperations.This is typically initialized once in
AbstractImportBatchHandler.initializeContextForBatch(BatchRequest)and then reused for subsequent operations. This can be re-used by non-read persistence operations usingContextInfo.withOperationType(ContextInfo, OperationType). -
equals
-
hashCode
public int hashCode() -
toString
-
setBaseContextInfo
public void setBaseContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo baseContextInfo) Represents theContextInfothat has all the basic info hydrated such as theContextRequest. By default this is set up forOperationType.READoperations.This is typically initialized once in
AbstractImportBatchHandler.initializeContextForBatch(BatchRequest)and then reused for subsequent operations. This can be re-used by non-read persistence operations usingContextInfo.withOperationType(ContextInfo, OperationType).
-