Class DefaultOrderFulfillmentNoteService<P extends OrderFulfillmentNote>

java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.order.service.DefaultOrderFulfillmentNoteService<P>
Type Parameters:
P - The projection domain type, a subtype of OrderFulfillmentNote
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>, OrderFulfillmentNoteService<P>

public class DefaultOrderFulfillmentNoteService<P extends OrderFulfillmentNote> extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P> implements OrderFulfillmentNoteService<P>
Default implementation of OrderFulfillmentNoteService
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultOrderFulfillmentNoteService(OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> orderFulfillmentNoteRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(P orderFulfillmentNote, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    protected OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable>
     
    org.springframework.data.domain.Page<P>
    readAllByOrderFulfillmentId(@NonNull String orderFulfillmentId, @NonNull 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 order fulfillment ID.
    protected void
    setAuditInformation(P orderFulfillmentNote, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Sets audit information for the order fulfillment note for creation.

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

    getRsqlHelper, readAll, readAll, readAll, readAll

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

    convertFromPersistentDomain, convertToPersistentDomain, createAll, createAllAllowingPartialSuccess, delete, getHelper, getRepository, 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

    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

    • DefaultOrderFulfillmentNoteService

      public DefaultOrderFulfillmentNoteService(OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> orderFulfillmentNoteRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
  • Method Details

    • readAllByOrderFulfillmentId

      public org.springframework.data.domain.Page<P> readAllByOrderFulfillmentId(@NonNull @NonNull String orderFulfillmentId, @NonNull @NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: OrderFulfillmentNoteService
      Retrieve notes for the given order fulfillment ID.
      Specified by:
      readAllByOrderFulfillmentId in interface OrderFulfillmentNoteService<P extends OrderFulfillmentNote>
      Parameters:
      orderFulfillmentId - the ID of the order fulfillment whose notes should be found
      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 order fulfillment ID
    • create

      public P create(@NonNull P orderFulfillmentNote, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Specified by:
      create in interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends OrderFulfillmentNote>
      Overrides:
      create in class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends OrderFulfillmentNote>
    • setAuditInformation

      protected void setAuditInformation(P orderFulfillmentNote, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Sets audit information for the order fulfillment note for creation.
      Parameters:
      orderFulfillmentNote - the note on which to initialize audit information
      contextInfo - context information about multitenant state
    • getOrderFulfillmentNoteRepository

      protected OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> getOrderFulfillmentNoteRepository()