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 ofOrderFulfillmentNote
- 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
ConstructorsConstructorDescriptionDefaultOrderFulfillmentNoteService(OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> orderFulfillmentNoteRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptioncreate(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 voidsetAuditInformation(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, readAllMethods 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, 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
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
-
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:OrderFulfillmentNoteServiceRetrieve notes for the given order fulfillment ID.- Specified by:
readAllByOrderFulfillmentIdin interfaceOrderFulfillmentNoteService<P extends OrderFulfillmentNote>- Parameters:
orderFulfillmentId- the ID of the order fulfillment whose notes should be foundfilters- additional filters to apply in the query. Should beEmptyNodeif no additional filters should be applied.page- the requested page of results from the databasecontextInfo- 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:
createin interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends OrderFulfillmentNote>- Overrides:
createin classcom.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 informationcontextInfo- context information about multitenant state
-
getOrderFulfillmentNoteRepository
protected OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> getOrderFulfillmentNoteRepository()
-