Class DefaultShipmentDetailsService<P extends ShipmentDetails>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.shipping.service.DefaultShipmentDetailsService<P>
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,ShipmentDetailsService<P>
public class DefaultShipmentDetailsService<P extends ShipmentDetails>
extends com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
implements ShipmentDetailsService<P>
-
Constructor Summary
ConstructorDescriptionDefaultShipmentDetailsService
(ShipmentDetailsRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected ShipmentDetailsRepository<com.broadleafcommerce.data.tracking.core.Trackable>
readByOrderFulfillmentId
(String orderFulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read aShipmentDetails
by anOrderFulfillment
id.Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, 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
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
-
Constructor Details
-
DefaultShipmentDetailsService
public DefaultShipmentDetailsService(ShipmentDetailsRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper)
-
-
Method Details
-
readByOrderFulfillmentId
public Optional<P> readByOrderFulfillmentId(String orderFulfillmentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ShipmentDetailsService
Read aShipmentDetails
by anOrderFulfillment
id.- Specified by:
readByOrderFulfillmentId
in interfaceShipmentDetailsService<P extends ShipmentDetails>
- Parameters:
orderFulfillmentId
- The id of theOrderFulfillment
associated with theShipmentDetails
.contextInfo
- The context for the operation.- Returns:
- The
ShipmentDetails
that corresponds to the given orderFulfillmentId.
-
getShipmentDetailsRepository
protected ShipmentDetailsRepository<com.broadleafcommerce.data.tracking.core.Trackable> getShipmentDetailsRepository()
-