Class InventoryLocation
- java.lang.Object
-
- com.broadleafcommerce.inventory.domain.InventoryLocation
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
public class InventoryLocation extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
General business entity for defining anInventoryLocation, or physical location at which inventory is stored, contained, shipped from, or picked up at. Generally speaking, this represents a store, pickup location, warehouse, or all, and has a physical address, including latitude and longitude.- Author:
- Kelly Tisdell (ktisdell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InventoryLocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)AddressgetAddress()Physical address of this location.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStategetContextState()StringgetId()TheInventoryLocationcontextId.StringgetLocationNumber()Arbitrary location number, which could be an external ID, store number, etc.StringgetName()Arbitrary name of the location.StringgetVendorRef()Soft reference to the vendor associated with this inventory location.inthashCode()booleanisPickupLocation()Indicates if this location is available for pickup.booleanisShippingLocation()Indicates if this location is available for shipping.booleanisStoreLocation()Indicates if this inventory location is also a store, meaning that it is a location that customers can come to shop.voidsetAddress(Address address)Physical address of this location.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)voidsetId(String id)TheInventoryLocationcontextId.voidsetLocationNumber(String locationNumber)Arbitrary location number, which could be an external ID, store number, etc.voidsetName(String name)Arbitrary name of the location.voidsetPickupLocation(boolean pickupLocation)Indicates if this location is available for pickup.voidsetShippingLocation(boolean shippingLocation)Indicates if this location is available for shipping.voidsetStoreLocation(boolean storeLocation)Indicates if this inventory location is also a store, meaning that it is a location that customers can come to shop.voidsetVendorRef(String vendorRef)Soft reference to the vendor associated with this inventory location.StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
TheInventoryLocationcontextId.- Returns:
- the contextId of this Inventory Location
-
getLocationNumber
public String getLocationNumber()
Arbitrary location number, which could be an external ID, store number, etc.- Returns:
- the locationNumber
-
getName
public String getName()
Arbitrary name of the location.- Returns:
-
isPickupLocation
public boolean isPickupLocation()
Indicates if this location is available for pickup. Default is false.- Returns:
-
isShippingLocation
public boolean isShippingLocation()
Indicates if this location is available for shipping. Default is true.- Returns:
-
isStoreLocation
public boolean isStoreLocation()
Indicates if this inventory location is also a store, meaning that it is a location that customers can come to shop. Default is false.- Returns:
-
getVendorRef
public String getVendorRef()
Soft reference to the vendor associated with this inventory location. This value can be null, in which case, no vendor is associated.- Returns:
- Soft reference to the vendor associated with this location.
-
getAddress
public Address getAddress()
Physical address of this location.- Returns:
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
setId
public void setId(String id)
TheInventoryLocationcontextId.- Parameters:
contextId-
-
setLocationNumber
public void setLocationNumber(String locationNumber)
Arbitrary location number, which could be an external ID, store number, etc.- Parameters:
locationNumber-
-
setName
public void setName(String name)
Arbitrary name of the location.- Parameters:
name-
-
setPickupLocation
public void setPickupLocation(boolean pickupLocation)
Indicates if this location is available for pickup. Default is false.- Parameters:
pickupLocation-
-
setShippingLocation
public void setShippingLocation(boolean shippingLocation)
Indicates if this location is available for shipping. Default is true.- Parameters:
shippingLocation-
-
setStoreLocation
public void setStoreLocation(boolean storeLocation)
Indicates if this inventory location is also a store, meaning that it is a location that customers can come to shop. Default is false.- Parameters:
storeLocation-
-
setVendorRef
public void setVendorRef(String vendorRef)
Soft reference to the vendor associated with this inventory location. This value can be null, in which case, no vendor is associated.- Parameters:
vendorRef- Soft reference to the vendor associated with this location.
-
setAddress
public void setAddress(Address address)
Physical address of this location.- Parameters:
address-
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
canEqual
protected boolean canEqual(Object other)
-
-