Class LogBulkUpdateProcessor
java.lang.Object
com.broadleafcommerce.catalog.service.bulkoperation.processor.LogBulkUpdateProcessor
- All Implemented Interfaces:
BulkUpdateProcessor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLogBulkUpdateProcessor
(ProductService<Product> productService, BulkUpdateProcessorHelper<BulkOperationItem> bulkUpdateProcessorHelper) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether or not this processor can handle the requested bulk operation.protected BulkUpdateProcessorHelper<BulkOperationItem>
The operation type that this processor supports.protected String
getPostfix
(BulkOperation bulkOperation, BulkOperationItem bulkOperationItem) protected String
getPrefix
(BulkOperation bulkOperation, BulkOperationItem bulkOperationItem) protected ProductService<Product>
void
process
(BulkOperation bulkOperation) Processes the provided bulk operation.protected BulkOperationItem
processBulkOperationItem
(BulkOperation bulkOperation, BulkOperationItem bulkOperationItem) protected org.springframework.data.domain.Page<BulkOperationItem>
processPageOfItems
(BulkOperation bulkOperation, org.springframework.data.domain.Page<BulkOperationItem> bulkOperationItems)
-
Field Details
-
OPERATION_TYPE
- See Also:
-
PREFIX
- See Also:
-
POSTFIX
- See Also:
-
-
Constructor Details
-
LogBulkUpdateProcessor
public LogBulkUpdateProcessor(ProductService<Product> productService, BulkUpdateProcessorHelper<BulkOperationItem> bulkUpdateProcessorHelper)
-
-
Method Details
-
getOperationType
Description copied from interface:BulkUpdateProcessor
The operation type that this processor supports.- Specified by:
getOperationType
in interfaceBulkUpdateProcessor
- Returns:
- the operation type that this processor supports
-
canHandle
Description copied from interface:BulkUpdateProcessor
Whether or not this processor can handle the requested bulk operation.- Specified by:
canHandle
in interfaceBulkUpdateProcessor
- Parameters:
operationType
- the type of operation to be performed- Returns:
- true, if the processor is able to handle the request, otherwise false
-
process
Description copied from interface:BulkUpdateProcessor
Processes the provided bulk operation.- Specified by:
process
in interfaceBulkUpdateProcessor
- Parameters:
bulkOperation
- the bulk operation to be processed
-
getPrefix
-
getPostfix
-
processPageOfItems
protected org.springframework.data.domain.Page<BulkOperationItem> processPageOfItems(BulkOperation bulkOperation, org.springframework.data.domain.Page<BulkOperationItem> bulkOperationItems) -
processBulkOperationItem
protected BulkOperationItem processBulkOperationItem(BulkOperation bulkOperation, BulkOperationItem bulkOperationItem) -
getProductService
-
getBulkUpdateProcessorHelper
-