org.broadleafcommerce.inventory.service
Class FulfillmentLocationServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.inventory.service.FulfillmentLocationServiceImpl
All Implemented Interfaces:
FulfillmentLocationService

@Service(value="blFulfillmentLocationService")
@Transactional(value="blTransactionManager")
public class FulfillmentLocationServiceImpl
extends Object
implements FulfillmentLocationService


Field Summary
protected  FulfillmentLocationDao fulfillmentLocationDao
           
 
Constructor Summary
FulfillmentLocationServiceImpl()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fulfillmentLocationDao

protected FulfillmentLocationDao fulfillmentLocationDao
Constructor Detail

FulfillmentLocationServiceImpl

public FulfillmentLocationServiceImpl()
Method Detail

readAll

@Transactional(value="blTransactionManager")
public List<FulfillmentLocation> readAll()
Description copied from interface: FulfillmentLocationService
Retrieves all of the fulfillment locations

Specified by:
readAll in interface FulfillmentLocationService
Returns:
List of FulfillmentLocation

readById

@Transactional(value="blTransactionManager")
public FulfillmentLocation readById(Long fulfillmentLocationId)
Description copied from interface: FulfillmentLocationService
Retrieves a FulfillmentLocation from the given id

Specified by:
readById in interface FulfillmentLocationService
Returns:
FulfillmentLocation

save

@Transactional(value="blTransactionManager")
public FulfillmentLocation save(FulfillmentLocation fulfillmentLocation)
Description copied from interface: FulfillmentLocationService
Persists the FulfillmentLocation

Specified by:
save in interface FulfillmentLocationService
Returns:
the persisted FulfillmentLocation

delete

@Transactional(value="blTransactionManager")
public void delete(FulfillmentLocation fulfillmentLocation)
Description copied from interface: FulfillmentLocationService
Deletes the passed FulfillmentLocation

Specified by:
delete in interface FulfillmentLocationService

updateOtherDefaultLocationToFalse

@Transactional(value="blTransactionManager")
public void updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
Description copied from interface: FulfillmentLocationService
Sets the defaultLocation flag to false for all fulfillmentLocations

Specified by:
updateOtherDefaultLocationToFalse in interface FulfillmentLocationService

findDefaultFulfillmentLocation

@Transactional(value="blTransactionManager")
public FulfillmentLocation findDefaultFulfillmentLocation()
Description copied from interface: FulfillmentLocationService
Returns the first default fulfillment location found. There should only be one default.

Specified by:
findDefaultFulfillmentLocation in interface FulfillmentLocationService
Returns:

findAllFulfillmentLocationsForSku

@Transactional(value="blTransactionManager")
public List<FulfillmentLocation> findAllFulfillmentLocationsForSku(Long skuId)
Description copied from interface: FulfillmentLocationService
Returns all fulfillment locations associated with a sku

Specified by:
findAllFulfillmentLocationsForSku in interface FulfillmentLocationService
Returns:


Copyright © 2013. All Rights Reserved.