Class DefaultCartNoteService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.cart.service.DefaultCartNoteService<P>
- All Implemented Interfaces:
CartNoteService<P>,com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
public class DefaultCartNoteService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements CartNoteService<P>
- Author:
- Sunny Yu
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCartNoteService(CartNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper rsqlHelper, com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManagerprotected CartNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable>protected com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelperorg.springframework.data.domain.Page<P>readAllByCartId(String cartId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allCartNotesby cart id.org.springframework.data.domain.Page<P>readAllByCartIdAndCartItemIdIsNull(String cartId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allCartNotesby cart id and has anullcart item id.Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
readAll, readAll, readAll, readAllMethods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateSortMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Constructor Details
-
DefaultCartNoteService
public DefaultCartNoteService(CartNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper rsqlHelper, com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager mapper)
-
-
Method Details
-
readAllByCartId
public org.springframework.data.domain.Page<P> readAllByCartId(String cartId, cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CartNoteServiceReads allCartNotesby cart id.- Specified by:
readAllByCartIdin interfaceCartNoteService<P extends com.broadleafcommerce.cart.client.domain.CartNote>- Parameters:
cartId- the cart id to filterfilters- additional filters to apply in the query.pageable- the page information being requestedcontextInfo- the context of the request- Returns:
- the
CartNoteswith the provided cart id
-
readAllByCartIdAndCartItemIdIsNull
public org.springframework.data.domain.Page<P> readAllByCartIdAndCartItemIdIsNull(String cartId, cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CartNoteServiceReads allCartNotesby cart id and has anullcart item id.This is typically used to retrieve Cart-level notes.
- Specified by:
readAllByCartIdAndCartItemIdIsNullin interfaceCartNoteService<P extends com.broadleafcommerce.cart.client.domain.CartNote>- Parameters:
cartId- the cart id to filterfilters- additional filters to apply in the query.pageable- the page information being requestedcontextInfo- the context of the request- Returns:
- the
CartNoteswith the provided cart id and has anullcart item id
-
getRepository
- Overrides:
getRepositoryin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
-
getRsqlHelper
protected com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper getRsqlHelper()- Overrides:
getRsqlHelperin classcom.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
-
getMapper
protected com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager getMapper()
-