Interface CustomerNoteService<P extends CustomerNote>

  • Type Parameters:
    P - The projection domain type, a subtype of CustomerNote
    All Superinterfaces:
    com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
    All Known Implementing Classes:
    DefaultCustomerNoteService

    public interface CustomerNoteService<P extends CustomerNote>
    extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
    Service API for CustomerNotes. Supported by CustomerNoteRepository
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.springframework.data.domain.Page<P> readAllByCustomerId​(String customerId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieve notes for the given customer ID.
      • 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 Detail

      • readAllByCustomerId

        @Policy(operationTypes=READ)
        org.springframework.data.domain.Page<P> readAllByCustomerId​(String customerId,
                                                                    cz.jirutka.rsql.parser.ast.Node filters,
                                                                    org.springframework.data.domain.Pageable page,
                                                                    @Nullable
                                                                    com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Retrieve notes for the given customer ID.
        Parameters:
        customerId - the ID of the customer to search for
        filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
        page - the requested page of results from the database
        contextInfo - context information around sandbox and multitenant state
        Returns:
        a page of the notes associated with the given customer ID