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
Constructors Constructor Description DefaultShipmentDetailsService(ShipmentDetailsRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ShipmentDetailsRepository<com.broadleafcommerce.data.tracking.core.Trackable>
getShipmentDetailsRepository()
Optional<P>
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 Detail
-
DefaultShipmentDetailsService
public DefaultShipmentDetailsService(ShipmentDetailsRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper)
-
-
Method Detail
-
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()
-
-