Class DefaultSegmentProcessingService

    • Method Detail

      • buildBulkUpdateRequest

        protected com.broadleafcommerce.bulk.domain.BulkUpdateRequest buildBulkUpdateRequest​(@NonNull @NonNull
                                                                                             @NonNull CustomerSegment segment,
                                                                                             @NonNull
                                                                                             String bulkUpdateType,
                                                                                             @NonNull @NonNull
                                                                                             @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
                                                                                      throws com.fasterxml.jackson.core.JsonProcessingException
        Builds a request to perform a bulk update operation
        Parameters:
        segment - The segment to process
        bulkUpdateType - The bulk update type
        context - The context
        Returns:
        A BulkUpdateRequest instance
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        See Also:
        BulkUpdateType
      • createSegmentBulkUpdateRelationship

        protected SegmentProcessHistory createSegmentBulkUpdateRelationship​(CustomerSegment segment,
                                                                            com.broadleafcommerce.bulk.domain.BulkUpdate bulkUpdate,
                                                                            com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Creates the relationship between the bulk update process and the customer segment
        Parameters:
        segment - The customer segment being processed
        bulkUpdate - The bulk update
        context - context information surrounding sandboxing and multitenant state
        Returns:
        The SegmentProcessHistory connecting the bulk update to the segment
      • getBulkUpdateManager

        protected com.broadleafcommerce.bulk.service.BulkUpdateManager getBulkUpdateManager()
      • getTypeFactory

        protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
      • getObjectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()