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 ofOrderFulfillmentNoteService
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderFulfillmentNoteService(OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> orderFulfillmentNoteRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description P
create(P orderFulfillmentNote, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable>
getOrderFulfillmentNoteRepository()
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
-
-
-
-
Constructor Detail
-
DefaultOrderFulfillmentNoteService
public DefaultOrderFulfillmentNoteService(OrderFulfillmentNoteRepository<com.broadleafcommerce.data.tracking.core.Trackable> orderFulfillmentNoteRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
-
-
Method Detail
-
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 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 beEmptyNode
if 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:
create
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends OrderFulfillmentNote>
- Overrides:
create
in 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()
-
-