Class DefaultSegmentProcessHistoryService<P extends SegmentProcessHistory>

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultSegmentProcessHistoryService​(com.broadleafcommerce.bulk.service.BulkUpdateService<com.broadleafcommerce.bulk.domain.BulkUpdate> bulkUpdateService, SegmentProcessHistoryRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper crudEntityHelper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected SegmentProcessHistoryRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepo()  
      protected P hydrateBulkUpdate​(P segmentBulkProcess)  
      org.springframework.data.domain.Page<P> readAllForSegment​(String segmentId, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Read bulk processes performed for a specific segment
      P readByContextId​(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      • Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService

        convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getRepository, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSort
      • Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService

        create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
    • Constructor Detail

      • DefaultSegmentProcessHistoryService

        public DefaultSegmentProcessHistoryService​(com.broadleafcommerce.bulk.service.BulkUpdateService<com.broadleafcommerce.bulk.domain.BulkUpdate> bulkUpdateService,
                                                   SegmentProcessHistoryRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository,
                                                   com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper crudEntityHelper)
    • Method Detail

      • readAllForSegment

        public org.springframework.data.domain.Page<P> readAllForSegment​(@NonNull
                                                                         String segmentId,
                                                                         @NonNull
                                                                         org.springframework.data.domain.Pageable pageable,
                                                                         com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Description copied from interface: SegmentProcessHistoryService
        Read bulk processes performed for a specific segment
        Specified by:
        readAllForSegment in interface SegmentProcessHistoryService<P extends SegmentProcessHistory>
        Parameters:
        segmentId - The segment ID
        context - Context information surrounding sandboxing and multitenant state
        Returns:
        A page of segment processed
      • readByContextId

        public P readByContextId​(@NonNull
                                 String id,
                                 @Nullable
                                 com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Specified by:
        readByContextId in interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends SegmentProcessHistory>
        Overrides:
        readByContextId in class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends SegmentProcessHistory>
      • hydrateBulkUpdate

        protected P hydrateBulkUpdate​(P segmentBulkProcess)