Class SimpleFulfillmentLocationResolver

java.lang.Object
org.broadleafcommerce.core.pricing.service.fulfillment.SimpleFulfillmentLocationResolver
All Implemented Interfaces:
FulfillmentLocationResolver

public class SimpleFulfillmentLocationResolver extends Object implements FulfillmentLocationResolver
Default implementation of FulfillmentLocationResolver that stores a single Address. Useful for businesses that do not have a complicated warehouse solution and fulfill from a single location.
Author:
Phillip Verheyden
  • Field Details

    • address

      protected org.broadleafcommerce.profile.core.domain.Address address
  • Constructor Details

    • SimpleFulfillmentLocationResolver

      public SimpleFulfillmentLocationResolver()
  • Method Details

    • resolveLocationForFulfillmentGroup

      public org.broadleafcommerce.profile.core.domain.Address resolveLocationForFulfillmentGroup(FulfillmentGroup group)
      Description copied from interface: FulfillmentLocationResolver
      This method should give an Address that a particular FulfillmentGroup will be fulfilled from. Implementations could store this information in the database or integrate with an existing warehouse solution.
      Specified by:
      resolveLocationForFulfillmentGroup in interface FulfillmentLocationResolver
      Returns:
      the Address that group should be fulfilled from
    • getAddress

      public org.broadleafcommerce.profile.core.domain.Address getAddress()
    • setAddress

      public void setAddress(org.broadleafcommerce.profile.core.domain.Address address)