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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    protected com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager
     
    protected CartNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable>
     
    protected com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper
     
    org.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 all CartNotes by 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 all CartNotes by cart id and has a null cart item id.

    Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService

    readAll, readAll, readAll, readAll

    Methods 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, 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, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort

    Methods 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: CartNoteService
      Reads all CartNotes by cart id.
      Specified by:
      readAllByCartId in interface CartNoteService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
      Parameters:
      cartId - the cart id to filter
      filters - additional filters to apply in the query.
      pageable - the page information being requested
      contextInfo - the context of the request
      Returns:
      the CartNotes with 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: CartNoteService
      Reads all CartNotes by cart id and has a null cart item id.

      This is typically used to retrieve Cart-level notes.

      Specified by:
      readAllByCartIdAndCartItemIdIsNull in interface CartNoteService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
      Parameters:
      cartId - the cart id to filter
      filters - additional filters to apply in the query.
      pageable - the page information being requested
      contextInfo - the context of the request
      Returns:
      the CartNotes with the provided cart id and has a null cart item id
    • getRepository

      protected CartNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()
      Overrides:
      getRepository in class com.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:
      getRsqlHelper in class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
    • getMapper

      protected com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager getMapper()