Package | Description |
---|---|
com.broadleafcommerce.data.tracking.core | |
com.broadleafcommerce.data.tracking.core.service |
Modifier and Type | Method and Description |
---|---|
D |
TrackableRepository.archive(D entity,
ContextInfo contextInfo)
Archive a record so that it is no longer considered active and is filtered out of results.
|
boolean |
TrackableRsqlFilterExecutor.exists(cz.jirutka.rsql.parser.ast.Node filters,
ContextInfo contextInfo)
Checks whether the data store contains elements that match the given
Node . |
boolean |
TrackableRepository.existsByContextId(String contextId,
ContextInfo contextInfo)
Retrieve whether or not an active instance of the item exists for the given context id after
any narrowing context is applied.
|
List<D> |
TrackableRepository.findAll(ContextInfo contextInfo)
Retrieve all domain instances.
|
List<D> |
TrackableRepository.findAll(ContextInfo contextInfo,
Class<D> type)
Retrieve all domain instances.
|
List<D> |
TrackableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Node to restrict results. |
org.springframework.data.domain.Page<D> |
TrackableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Pageable pageable,
ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Node to restrict results. |
List<D> |
TrackableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Node to restrict results. |
org.springframework.data.domain.Page<D> |
TrackableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
org.springframework.data.domain.Pageable pageable,
ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Node to restrict results. |
org.springframework.data.domain.Page<D> |
TrackableRepository.findAll(org.springframework.data.domain.Pageable pageable,
ContextInfo contextInfo)
Retrieve all domain instances, a page at a time.
|
org.springframework.data.domain.Page<D> |
TrackableRepository.findAll(org.springframework.data.domain.Pageable pageable,
ContextInfo contextInfo,
Class<D> type)
Retrieve all domain instances, a page at a time.
|
List<D> |
TrackableRepository.findAll(org.springframework.data.domain.Sort sort,
ContextInfo contextInfo)
Retrieve all domain instances using a sort.
|
List<D> |
TrackableRepository.findAll(org.springframework.data.domain.Sort sort,
ContextInfo contextInfo,
Class<D> type)
Retrieve all domain instances using a sort.
|
Iterable<D> |
TrackableRepository.findAllByContextId(Iterable<String> contextIds,
ContextInfo contextInfo)
Retrieve all domain instances based on a list of context ids (see
Trackable.getContextId() ). |
Optional<D> |
TrackableRepository.findByContextId(String contextId,
ContextInfo contextInfo)
Retrieve a domain instance based on the context id (see
Trackable.getContextId() ). |
Optional<D> |
TrackableRepository.findByContextIdAndCatalog(String contextId,
String catalogId,
ContextInfo contextInfo)
Retrieve a domain instance based on the context id (see
Trackable.getContextId() ). |
Optional<D> |
TrackableRepository.findByNativeId(Object id)
Finds the entity corresponding to the given native id.
|
Sortable |
TrackableRepository.findMaxSortMember(Sortable example,
String maxSort,
ContextInfo contextInfo)
Given an example member from a sort group, find the first member from that group whose sort
value is less than maxSort.
|
Sortable |
TrackableRepository.findMinSortMember(Sortable example,
String minSort,
ContextInfo contextInfo)
Given an example member from a sort group, find the first member from that group whose sort
value is greater than minSort.
|
boolean |
TrackableRepository.pruneChangeDetails(Object nativeId)
Updates the entity whose native id matches the given
nativeId , setting its
Tracking.getChangeDetails() to null . |
void |
TrackableRepository.pruneRestingNotificationStates(Duration beforeNow)
Performs an update on all records to prune all
NotificationStates
from NotificationStateAware.getNotificationStates() which satisfy the following criteria:
NotificationState.isAcked() is true or
NotificationState.isStopped() is true
NotificationState.getChangeTimestamp() is before Instant.now() minus the
beforeNow duration
|
void |
TrackableRepository.purgeObsoleteSandboxData(Duration beforeNow)
Hard-deletes all records which satisfy the following criteria:
Tracking.getSandbox() has its archived property
set to true
All NotificationStateAware.getNotificationStates() (if there are any) are either
acked or stopped
All Tracking.getChangeDetails() (if there are any) have a
timestamp that is before Instant.now() minus the
beforeNow duration
|
D |
TrackableRepository.save(D entity,
ContextInfo contextInfo)
Insert (if not exists) or update the domain instance in the datastore.
|
Iterable<D> |
TrackableRepository.saveAll(Iterable<D> entities,
ContextInfo contextInfo)
Insert (if not exists) or update all the domain instances in the datastore.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MappableRsqlFilterExecutor.exists(cz.jirutka.rsql.parser.ast.Node filters)
Checks whether the data store contains elements that match the given
Node . |
List<D> |
MappableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters)
Retrieve all domain instances using an RSQL
Node to restrict results. |
org.springframework.data.domain.Page<D> |
MappableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Pageable pageable)
Retrieve all domain instances using an RSQL
Node to restrict results. |
List<D> |
MappableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort)
Retrieve all domain instances using an RSQL
Node to restrict results. |
org.springframework.data.domain.Page<D> |
MappableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
org.springframework.data.domain.Pageable pageable)
Retrieve all domain instances using an RSQL
Node to restrict results. |
Copyright © 2021. All rights reserved.