Class DefaultSegmentProcessHistoryService<P extends SegmentProcessHistory>

java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.customer.service.DefaultSegmentProcessHistoryService<P>
All Implemented Interfaces:
SegmentProcessHistoryService<P>, com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>

public class DefaultSegmentProcessHistoryService<P extends SegmentProcessHistory> extends com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P> implements SegmentProcessHistoryService<P>
  • 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

    Modifier and Type
    Method
    Description
    protected SegmentProcessHistoryRepository<com.broadleafcommerce.data.tracking.core.Trackable>
     
    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
    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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    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 Details

    • 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 Details

    • 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)
    • getRepo

      protected SegmentProcessHistoryRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepo()