Class JpaTenantApplication
java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.domain.JpaTenantApplication
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,com.broadleafcommerce.data.tracking.core.Temporal
,com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
,com.broadleafcommerce.translation.domain.Translatable
,Serializable
@Entity
@PolicyVariance(TENANT_TRACKABLE_APP_CONTEXT)
public class JpaTenantApplication
extends Object
implements com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.Temporal, com.broadleafcommerce.translation.domain.Translatable
Represents the tenant concept of a storefront structure. This structure ties together concepts of
visible catalogs, as well as URI resolution.
This repository domain type specifically maps to the Jpa repository domain.
As a Trackable, this entity is also aware of archival state. If archived
(Tracking.getArchived()
), a Sandbox entity will not be returned by fetch queries.
As a Trackable, this entity is aware of change audit information and will keep track of changes
made during creation or updates in the Tracking.getChangeDetails()
field. ChangeDetails
are not permanent on this entity and will be moved to a permanent audit store on an async
interval.
- Author:
- Jeff Fischer
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
Class<?>
getName()
Temporal state describing the time at which this item was last updated.getToken()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking
Retrieve the tracking information from the entityint
hashCode()
boolean
boolean
void
setAllowedCurrencies
(List<Currency> allowedCurrencies) void
setAllowedLocales
(List<Locale> allowedLocales) void
setAttributes
(Map<String, Object> attributes) void
setContextId
(String contextId) void
setCustomerContextId
(String customerContextId) void
setDeactivated
(boolean deactivated) void
setDefaultCurrency
(Currency defaultCurrency) void
setDefaultLocale
(Locale defaultLocale) void
setIdentifierType
(String identifierType) void
setIdentifierValue
(String identifierValue) void
setIsolatedCatalogs
(List<JpaApplicationCatalogRef> isolatedCatalogs) void
setLogoAsset
(JpaTenantApplicationAsset logoAsset) void
setMarketplace
(boolean isMarketplace) void
void
setPortraitAsset
(JpaTenantApplicationAsset portraitAsset) void
void
setTimestamp
(Instant timestamp) Temporal state describing the time at which this item was last updated.void
void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) Retrieve the tracking information from the entityorg.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
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Field Details
-
CATALOGS
- See Also:
-
-
Constructor Details
-
JpaTenantApplication
public JpaTenantApplication()
-
-
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
-
getDisplay
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getContextId
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Specified by:
getContextId
in interfacecom.broadleafcommerce.translation.domain.Translatable
-
getName
- See Also:
-
getRobots
- See Also:
-
getToken
- See Also:
-
getIdentifierType
- See Also:
-
getIdentifierValue
- See Also:
-
getCustomerContextId
-
isDeactivated
public boolean isDeactivated()- See Also:
-
getDefaultLocale
- See Also:
-
getAllowedLocales
- See Also:
-
getDefaultCurrency
- See Also:
-
getAllowedCurrencies
- See Also:
-
getPortraitAsset
- See Also:
-
getLogoAsset
- See Also:
-
getIsolatedCatalogs
- 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
-
getAttributes
-
isMarketplace
public boolean isMarketplace() -
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()Retrieve the tracking information from the entity- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Returns:
- Tracking information
-
setContextId
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setName
- See Also:
-
setRobots
- See Also:
-
setToken
- See Also:
-
setIdentifierType
- See Also:
-
setIdentifierValue
- See Also:
-
setCustomerContextId
-
setDeactivated
public void setDeactivated(boolean deactivated) - See Also:
-
setDefaultLocale
- See Also:
-
setAllowedLocales
- See Also:
-
setDefaultCurrency
- See Also:
-
setAllowedCurrencies
- See Also:
-
setPortraitAsset
- See Also:
-
setLogoAsset
- See Also:
-
setIsolatedCatalogs
- 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
-
setAttributes
-
setMarketplace
public void setMarketplace(boolean isMarketplace) -
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) Retrieve the tracking information from the entity- Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
- Parameters:
tracking
- Tracking information
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-