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
ConstructorDescriptionDefaultSegmentProcessHistoryService
(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 TypeMethodDescriptionprotected 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 segmentreadByContextId
(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 interfaceSegmentProcessHistoryService<P extends SegmentProcessHistory>
- Parameters:
segmentId
- The segment IDcontext
- 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 interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends SegmentProcessHistory>
- Overrides:
readByContextId
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends SegmentProcessHistory>
-
hydrateBulkUpdate
-
getRepo
protected SegmentProcessHistoryRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepo()
-