Class BulkOperationRequest
java.lang.Object
com.broadleafcommerce.bulk.v2.domain.BulkOperationRequest
- All Implemented Interfaces:
Serializable
The request DTO which should be sent by API callers to request the creation of a bulk operation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOperationData
(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected boolean
boolean
The author of these bulk operation changes.The type of entity to operate on.A list of entity context IDs which should not receive updates.A list of search filters to identify the entities to operate on.A list of entity context IDs which should receive updates.getName()
The friendly name of the bulk operation.Return any additional attributes passed in the request not matching any defined properties.The type of bulk operation to perform.getQuery()
The search query string to lookup searchable entities to operate on.The ID of the sandbox these changes should be contained within.int
hashCode()
boolean
Whether the sandbox is temporary and should be deleted after the bulk operation is complete.void
The author of these bulk operation changes.void
setEntityType
(String entityType) The type of entity to operate on.void
setExclusions
(List<String> exclusions) A list of entity context IDs which should not receive updates.void
setFilters
(List<SearchFilter> filters) A list of search filters to identify the entities to operate on.void
setInclusions
(List<String> inclusions) A list of entity context IDs which should receive updates.void
The friendly name of the bulk operation.void
setOperationData
(Map<String, Object> operationData) Map holding any additional attributes passed in the request not matching any defined properties.void
setOperationType
(String operationType) The type of bulk operation to perform.void
The search query string to lookup searchable entities to operate on.void
setSandboxId
(String sandboxId) The ID of the sandbox these changes should be contained within.void
setTemporarySandbox
(boolean isTemporarySandbox) Whether the sandbox is temporary and should be deleted after the bulk operation is complete.toString()
-
Constructor Details
-
BulkOperationRequest
public BulkOperationRequest()
-
-
Method Details
-
addOperationData
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name
- Name of the additional attributevalue
- Value of the additional attribute
-
getOperationData
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getName
The friendly name of the bulk operation. -
getEntityType
The type of entity to operate on. Optional. -
getQuery
The search query string to lookup searchable entities to operate on. Optional. -
getFilters
A list of search filters to identify the entities to operate on. -
getOperationType
The type of bulk operation to perform. -
getInclusions
A list of entity context IDs which should receive updates. If this list is populated, the search filters & query are ignored in favor of this list. -
getExclusions
A list of entity context IDs which should not receive updates. The entities for these IDs will be filtered out after performing a search based on the query & filters. -
getSandboxId
The ID of the sandbox these changes should be contained within. -
getAuthor
The author of these bulk operation changes. -
isTemporarySandbox
public boolean isTemporarySandbox()Whether the sandbox is temporary and should be deleted after the bulk operation is complete. -
setName
The friendly name of the bulk operation. -
setEntityType
The type of entity to operate on. Optional. -
setQuery
The search query string to lookup searchable entities to operate on. Optional. -
setFilters
A list of search filters to identify the entities to operate on. -
setOperationType
The type of bulk operation to perform. -
setInclusions
A list of entity context IDs which should receive updates. If this list is populated, the search filters & query are ignored in favor of this list. -
setExclusions
A list of entity context IDs which should not receive updates. The entities for these IDs will be filtered out after performing a search based on the query & filters. -
setSandboxId
The ID of the sandbox these changes should be contained within. -
setAuthor
The author of these bulk operation changes. -
setTemporarySandbox
public void setTemporarySandbox(boolean isTemporarySandbox) Whether the sandbox is temporary and should be deleted after the bulk operation is complete. -
setOperationData
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-