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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.modelmapper.ModelMapperfromMe()Class<?>getId()getName()Temporal state describing the time at which this item was last updated.inthashCode()voidsetAllowedCurrencies(List<Currency> allowedCurrencies) voidsetAllowedLocales(List<Locale> allowedLocales) voidsetAttributes(Map<String, Object> attributes) voidsetDefaultApplicationId(String defaultApplicationId) voidsetDefaultCurrency(Currency defaultCurrency) voidsetDefaultLocale(Locale defaultLocale) voidvoidsetIdentifierType(String identifierType) voidsetIdentifierValue(String identifierValue) voidsetLogoAsset(JpaTenantAsset logoAsset) voidvoidsetTimestamp(Instant timestamp) Temporal state describing the time at which this item was last updated.org.modelmapper.ModelMappertoMe()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
- Specified by:
getBusinessDomainTypein 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:
-
getDefaultApplicationId
- 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 theTemporalinterface 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:
getTimestampin 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:
-
setDefaultApplicationId
- 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 theTemporalinterface 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:
setTimestampin 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()
-