Class JpaTenant
java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.domain.JpaTenant
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,com.broadleafcommerce.data.tracking.core.Temporal
,Serializable
@Entity
public class JpaTenant
extends Object
implements com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, Serializable, com.broadleafcommerce.data.tracking.core.Temporal
Represents the distinct, completely independent operators within these services. Tenants share
the same infrastructure, but should never share data.
For example, two companies might each have a tenant in one hosted Broadleaf instance, but their business is entirely isolated from each other.
This repository domain type specifically maps to the JAP repository domain.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
Class<?>
getId()
getName()
Temporal state describing the time at which this item was last updated.int
hashCode()
void
setAllowedCurrencies
(List<Currency> allowedCurrencies) void
setAllowedLocales
(List<Locale> allowedLocales) void
setAttributes
(Map<String, Object> attributes) void
setDefaultCurrency
(Currency defaultCurrency) void
setDefaultLocale
(Locale defaultLocale) void
void
setIdentifierType
(String identifierType) void
setIdentifierValue
(String identifierValue) void
setLogoAsset
(JpaTenantAsset logoAsset) void
void
setTimestamp
(Instant timestamp) Temporal state describing the time at which this item was last updated.org.modelmapper.ModelMapper
toMe()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
-
Constructor Details
-
JpaTenant
public JpaTenant()
-
-
Method Details
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getId
-
getName
- See Also:
-
getIdentifierType
- See Also:
-
getIdentifierValue
- See Also:
-
getDefaultLocale
- See Also:
-
getAllowedLocales
- See Also:
-
getDefaultCurrency
- See Also:
-
getAllowedCurrencies
- See Also:
-
getLogoAsset
- See Also:
-
getAttributes
- See Also:
-
getTimestamp
Temporal state describing the time at which this item was last updated. Relates to theTemporal
interface and is primarily used during consumption of messages regarding changes in state to this domain. For example, a service consuming a change notification for this domain can compare the current persisted timestamp to this timestamp to determine if it already has a newer version, in which case, it can ignore. This is primarily a measure to ensure that ordering is not required for messages related to state change.- Specified by:
getTimestamp
in interfacecom.broadleafcommerce.data.tracking.core.Temporal
- Returns:
- Temporal state describing the time at which this item was last updated
-
setId
-
setName
- See Also:
-
setIdentifierType
- See Also:
-
setIdentifierValue
- See Also:
-
setDefaultLocale
- See Also:
-
setAllowedLocales
- See Also:
-
setDefaultCurrency
- See Also:
-
setAllowedCurrencies
- See Also:
-
setLogoAsset
- See Also:
-
setAttributes
- See Also:
-
setTimestamp
Temporal state describing the time at which this item was last updated. Relates to theTemporal
interface and is primarily used during consumption of messages regarding changes in state to this domain. For example, a service consuming a change notification for this domain can compare the current persisted timestamp to this timestamp to determine if it already has a newer version, in which case, it can ignore. This is primarily a measure to ensure that ordering is not required for messages related to state change.- Specified by:
setTimestamp
in interfacecom.broadleafcommerce.data.tracking.core.Temporal
- Parameters:
timestamp
- Temporal state describing the time at which this item was last updated
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-