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
ConstructorsConstructorDescriptionDefaultShipmentDetailsService(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 aShipmentDetailsby anOrderFulfillmentid.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, 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
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:ShipmentDetailsServiceRead aShipmentDetailsby anOrderFulfillmentid.- Specified by:
readByOrderFulfillmentIdin interfaceShipmentDetailsService<P extends ShipmentDetails>- Parameters:
orderFulfillmentId- The id of theOrderFulfillmentassociated with theShipmentDetails.contextInfo- The context for the operation.- Returns:
- The
ShipmentDetailsthat corresponds to the given orderFulfillmentId.
-
getShipmentDetailsRepository
protected ShipmentDetailsRepository<com.broadleafcommerce.data.tracking.core.Trackable> getShipmentDetailsRepository()
-