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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.profile.core.domain.Address -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.profile.core.domain.Addressorg.broadleafcommerce.profile.core.domain.AddressThis method should give anAddressthat a particularFulfillmentGroupwill be fulfilled from.voidsetAddress(org.broadleafcommerce.profile.core.domain.Address address)
-
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:FulfillmentLocationResolverThis method should give anAddressthat a particularFulfillmentGroupwill be fulfilled from. Implementations could store this information in the database or integrate with an existing warehouse solution.- Specified by:
resolveLocationForFulfillmentGroupin interfaceFulfillmentLocationResolver- Returns:
- the
Addressthat 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)
-