Class JpaApplication
java.lang.Object
com.broadleafcommerce.data.tracking.jpa.tenant.domain.application.JpaApplication
- 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<TenantJpaTracking>
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<TenantJpaTracking>
,Serializable
@Entity
public class JpaApplication
extends Object
implements com.broadleafcommerce.data.tracking.core.TenantTrackable<TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.Temporal, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, Serializable
Represents the tenant concept of a storefront structure. This structure ties together concepts of
visible catalogs, as well as URI resolution.
Redundant domain that is originally maintained in the tenant service. This is redundant domain
for microservices interested in tenant structure to perform local discrimination duties. This
redundant domain is kept up-to-date via async streaming of changes from the tenant service. See
TenantPersistenceHandler
.
- Author:
- Jeff Fischer
- See Also:
-
Application
- Serialized Form
-
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.Retrieve the tracking information from the entityint
hashCode()
boolean
boolean
void
setAllowedCurrencies
(List<Currency> allowedCurrencies) void
setAllowedLocales
(List<Locale> allowedLocales) void
setContextId
(String contextId) 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
setMarketplace
(boolean isMarketplace) void
void
setTimestamp
(Instant timestamp) Temporal state describing the time at which this item was last updated.void
setTracking
(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
-
JpaApplication
public JpaApplication()
-
-
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
-
getName
- See Also:
-
Application.getName()
-
getIdentifierType
- See Also:
-
Application.getIdentifierType()
-
getIdentifierValue
- See Also:
-
Application.getIdentifierValue()
-
isDeactivated
public boolean isDeactivated()- See Also:
-
Application.isDeactivated()
-
getDefaultLocale
- See Also:
-
Application.getDefaultLocale()
-
getAllowedLocales
- See Also:
-
Application.getAllowedLocales()
-
getDefaultCurrency
- See Also:
-
Application.getDefaultCurrency()
-
getAllowedCurrencies
- See Also:
-
Application.getAllowedCurrencies()
-
getIsolatedCatalogs
- See Also:
-
Application.getIsolatedCatalogs()
-
isMarketplace
public boolean isMarketplace()- See Also:
-
Application.isMarketplace()
-
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
-
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:
-
Application.getName()
-
setIdentifierType
- See Also:
-
Application.getIdentifierType()
-
setIdentifierValue
- See Also:
-
Application.getIdentifierValue()
-
setDeactivated
public void setDeactivated(boolean deactivated) - See Also:
-
Application.isDeactivated()
-
setDefaultLocale
- See Also:
-
Application.getDefaultLocale()
-
setAllowedLocales
- See Also:
-
Application.getAllowedLocales()
-
setDefaultCurrency
- See Also:
-
Application.getDefaultCurrency()
-
setAllowedCurrencies
- See Also:
-
Application.getAllowedCurrencies()
-
setIsolatedCatalogs
- See Also:
-
Application.getIsolatedCatalogs()
-
setMarketplace
public void setMarketplace(boolean isMarketplace) - See Also:
-
Application.isMarketplace()
-
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
-
setTracking
Retrieve the tracking information from the entity- Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<TenantJpaTracking>
- Parameters:
tracking
- Tracking information
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-