Interface MarketingMessageService<P extends MarketingMessage>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultMarketingMessageService
public interface MarketingMessageService<P extends MarketingMessage>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Base service API for
MarketingMessage
. Backed by a
MarketingMessageRepository
.- Author:
- Nathan Moore (nathanmoore).
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<P>
readAllActiveByOfferIds
(Collection<String> offerIds, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<P>
readAllByOfferId
(String offerId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllNonExpired
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all messages who are not expired based onMarketingMessage.activeEndDate
.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByOfferId
-
readAllActiveByOfferIds
org.springframework.data.domain.Page<P> readAllActiveByOfferIds(Collection<String> offerIds, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAllNonExpired
List<P> readAllNonExpired(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all messages who are not expired based onMarketingMessage.activeEndDate
. This method will return messages with a null end date that may be part of an expired offer.- Parameters:
offerIds
-contextInfo
-- Returns:
-
getRepositoryDomain
String getRepositoryDomain()
-