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 booleanbooleanAdditional contacts associated with the vendor.The primary address associated with this vendor.<T> TgetAttribute(String name) Dynamic attributes that are a part of the vendor.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation 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.inthashCode()voidsetAdditionalContacts(List<Contact> additionalContacts) Additional contacts associated with the vendor.voidsetAddress(Address address) The primary address associated with this vendor.voidsetAttributes(Map<String, Attribute> attributes) Dynamic attributes that are a part of the vendor.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDefaultCurrency(String defaultCurrency) By default, TenantServices will create a vendor catalog upon notice of a new vendor being created.voidsetDefaultLocale(String defaultLocale) By default, TenantServices will create a vendor catalog upon notice of a new vendor being created.voidThe context ID of the vendor.voidA unique name for the vendor.voidsetPrimaryContact(Contact primaryContact) The primary contact associated with this vendor.voidsetVendorRef(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 ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-