org.broadleafcommerce.inventory.service
Interface FulfillmentLocationService

All Known Implementing Classes:
FulfillmentLocationServiceImpl

public interface FulfillmentLocationService


Method Summary
 void delete(FulfillmentLocation fulfillmentLocation)
          Deletes the passed FulfillmentLocation
 List<FulfillmentLocation> findAllFulfillmentLocationsForSku(Long skuId)
          Returns all fulfillment locations associated with a sku
 FulfillmentLocation findDefaultFulfillmentLocation()
          Returns the first default fulfillment location found.
 List<FulfillmentLocation> readAll()
          Retrieves all of the fulfillment locations
 FulfillmentLocation readById(Long fulfillmentLocationId)
          Retrieves a FulfillmentLocation from the given id
 FulfillmentLocation save(FulfillmentLocation fulfillmentLocation)
          Persists the FulfillmentLocation
 void updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
          Sets the defaultLocation flag to false for all fulfillmentLocations
 

Method Detail

readAll

List<FulfillmentLocation> readAll()
Retrieves all of the fulfillment locations

Returns:
List of FulfillmentLocation

readById

FulfillmentLocation readById(Long fulfillmentLocationId)
Retrieves a FulfillmentLocation from the given id

Parameters:
fulfillmentLocationId -
Returns:
FulfillmentLocation

save

FulfillmentLocation save(FulfillmentLocation fulfillmentLocation)
Persists the FulfillmentLocation

Parameters:
fulfillmentLocation -
Returns:
the persisted FulfillmentLocation

delete

void delete(FulfillmentLocation fulfillmentLocation)
Deletes the passed FulfillmentLocation

Parameters:
fulfillmentLocation -

updateOtherDefaultLocationToFalse

void updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
Sets the defaultLocation flag to false for all fulfillmentLocations


findDefaultFulfillmentLocation

FulfillmentLocation findDefaultFulfillmentLocation()
Returns the first default fulfillment location found. There should only be one default.

Returns:

findAllFulfillmentLocationsForSku

List<FulfillmentLocation> findAllFulfillmentLocationsForSku(Long skuId)
Returns all fulfillment locations associated with a sku

Parameters:
skuId -
Returns:


Copyright © 2013. All Rights Reserved.