@Entity public class FulfillmentLocationImpl extends Object implements FulfillmentLocation, org.broadleafcommerce.common.admin.domain.AdminMainEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
FulfillmentLocationImpl.Presentation |
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.profile.core.domain.Address |
address |
protected Boolean |
defaultLocation |
protected String |
fulfillmentType |
protected Long |
id |
protected List<Inventory> |
inventoryList |
protected String |
name |
| Constructor and Description |
|---|
FulfillmentLocationImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.broadleafcommerce.profile.core.domain.Address |
getAddress()
Gets where this is physically located.
|
Boolean |
getDefaultLocation()
Retrieves if this fulfillment location as default
|
org.broadleafcommerce.core.order.service.type.FulfillmentType |
getFulfillmentType()
The type of fulfillment that this location supports.
|
Long |
getId() |
String |
getMainEntityName() |
String |
getName()
Convenient name for this location for internal usage and to make the admin easier to navigate
|
boolean |
isDefaultLocation()
Retrieves if this fulfillment location as default.
|
void |
setAddress(org.broadleafcommerce.profile.core.domain.Address address)
Set the
Address of the fulfillment location |
void |
setDefaultLocation(Boolean defaultLocation)
Sets whether or not this fulfillment location is the default one
|
void |
setFulfillmentType(org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType)
Sets the type of fulfillment that this location supports.
|
void |
setId(Long id) |
void |
setName(String name)
For convenience you can name an inventory location.
|
protected Long id
protected String name
protected org.broadleafcommerce.profile.core.domain.Address address
protected String fulfillmentType
protected Boolean defaultLocation
public Long getId()
getId in interface FulfillmentLocationpublic void setId(Long id)
setId in interface FulfillmentLocationid - the id of the fulfillment locationpublic org.broadleafcommerce.profile.core.domain.Address getAddress()
FulfillmentLocationgetAddress in interface FulfillmentLocationAddress of the fulfillment locationpublic void setAddress(org.broadleafcommerce.profile.core.domain.Address address)
FulfillmentLocationAddress of the fulfillment locationsetAddress in interface FulfillmentLocationpublic org.broadleafcommerce.core.order.service.type.FulfillmentType getFulfillmentType()
FulfillmentLocationFulfillmentType.PHYSICAL_PICKUP and FulfillmentType.PHYSICAL_SHIP.getFulfillmentType in interface FulfillmentLocationpublic void setFulfillmentType(org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType)
FulfillmentLocationSku.getFulfillmentType() to determine which location to decrement inventory fromsetFulfillmentType in interface FulfillmentLocationfulfillmentType - the new FulfillmentType that this location supportsInventoryLocationResolver#resolveInventoryLocationForDecrement(org.broadleafcommerce.core.order.domain.FulfillmentGroup, org.broadleafcommerce.core.catalog.domain.Sku, int)}public Boolean getDefaultLocation()
FulfillmentLocationgetDefaultLocation in interface FulfillmentLocationpublic boolean isDefaultLocation()
FulfillmentLocationisDefaultLocation in interface FulfillmentLocationpublic void setDefaultLocation(Boolean defaultLocation)
FulfillmentLocationsetDefaultLocation in interface FulfillmentLocationpublic String getName()
FulfillmentLocationgetName in interface FulfillmentLocationpublic void setName(String name)
FulfillmentLocationsetName in interface FulfillmentLocationname - the new name for this locationpublic String getMainEntityName()
getMainEntityName in interface org.broadleafcommerce.common.admin.domain.AdminMainEntityCopyright © 2020. All rights reserved.