Class Vendor
java.lang.Object
com.broadleafcommerce.vendor.domain.Vendor
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class Vendor
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
A domain representing a Vendor.
- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional contacts associated with the vendor.The primary address associated with this vendor.<T> T
getAttribute
(String name) Dynamic attributes that are a part of the vendor.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.By default, TenantServices will create a vendor catalog upon notice of a new vendor being created.By default, TenantServices will create a vendor catalog upon notice of a new vendor being created.getId()
The context ID of the vendor.getName()
A unique name for the vendor.The primary contact associated with this vendor.A unique reference key used throughout the system to associate data to the vendor.int
hashCode()
void
setAdditionalContacts
(List<Contact> additionalContacts) Additional contacts associated with the vendor.void
setAddress
(Address address) The primary address associated with this vendor.void
setAttributes
(Map<String, Attribute> attributes) Dynamic attributes that are a part of the vendor.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setDefaultCurrency
(String defaultCurrency) By default, TenantServices will create a vendor catalog upon notice of a new vendor being created.void
setDefaultLocale
(String defaultLocale) By default, TenantServices will create a vendor catalog upon notice of a new vendor being created.void
The context ID of the vendor.void
A unique name for the vendor.void
setPrimaryContact
(Contact primaryContact) The primary contact associated with this vendor.void
setVendorRef
(String vendorRef) A unique reference key used throughout the system to associate data to the vendor.toString()
-
Constructor Details
-
Vendor
public Vendor()
-
-
Method Details
-
getAttribute
-
getId
The context ID of the vendor.- Returns:
- the context ID of the vendor
-
getName
A unique name for the vendor.- Returns:
- a unique name for the vendor
-
getVendorRef
A unique reference key used throughout the system to associate data to the vendor. This cannot be changed once set.- Returns:
- a unique reference key for the vendor
-
getAddress
The primary address associated with this vendor.- Returns:
- The primary address associated with this vendor.
-
getPrimaryContact
The primary contact associated with this vendor.- Returns:
- The primary contact associated with this vendor.
-
getAdditionalContacts
Additional contacts associated with the vendor.- Returns:
- additional contacts associated with the vendor
-
getAttributes
Dynamic attributes that are a part of the vendor. This is an admin-entered concept- Returns:
- dynamic attributes that are a part of the vendor
-
getDefaultLocale
By default, TenantServices will create a vendor catalog upon notice of a new vendor being created. This field is used to inform the default locale to set on that catalog.This must match a valid IETF BCP 47 language tag format.
- Returns:
- the IETF BCP 47 language tag of the locale
- See Also:
-
getDefaultCurrency
By default, TenantServices will create a vendor catalog upon notice of a new vendor being created. This field is used to inform the default currency to set on that catalog.- Returns:
- the ISO 4217 code of the currency
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
The context ID of the vendor.- Parameters:
id
- the context ID of the vendor
-
setName
A unique name for the vendor.- Parameters:
name
- a unique name for the vendor
-
setVendorRef
A unique reference key used throughout the system to associate data to the vendor. This cannot be changed once set.- Parameters:
vendorRef
- a unique reference key for the vendor
-
setAddress
The primary address associated with this vendor.- Parameters:
address
- The primary address associated with this vendor.
-
setPrimaryContact
The primary contact associated with this vendor.- Parameters:
primaryContact
- The primary contact associated with this vendor.
-
setAdditionalContacts
Additional contacts associated with the vendor.- Parameters:
additionalContacts
- additional contacts associated with the vendor
-
setAttributes
Dynamic attributes that are a part of the vendor. This is an admin-entered concept- Parameters:
attributes
- dynamic attributes that are a part of the vendor
-
setDefaultLocale
By default, TenantServices will create a vendor catalog upon notice of a new vendor being created. This field is used to inform the default locale to set on that catalog.This must match a valid IETF BCP 47 language tag format.
- Parameters:
defaultLocale
- the IETF BCP 47 language tag of the locale- See Also:
-
setDefaultCurrency
By default, TenantServices will create a vendor catalog upon notice of a new vendor being created. This field is used to inform the default currency to set on that catalog.- Parameters:
defaultCurrency
- the ISO 4217 code of the currency
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-