Class JpaTenantMarketplaceApplicationCatalog
java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.domain.JpaTenantMarketplaceApplicationCatalog
- 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>
,Serializable
@Entity
@PolicyVariance(TENANT_TRACKABLE_APP_CONTEXT)
public class JpaTenantMarketplaceApplicationCatalog
extends Object
implements Serializable, 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
Reference structure for a
Application
to its individually assigned Catalog
instances. This relationship is specific to catalogs belonging to vendors in the marketplace use
case.- Author:
- Jeff Fischer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
The id of the relatedApplication
Class<?>
The id of the relatedCatalog
Thestatus
of thecatalog's
visibility for this assignment.The id of the implicit catalog for the application that will contain the application's overrides of items fromcatalog
.ThePropagationType
of the how changes from a vendor will be received into the marketplace application.Temporal state describing the time at which this item was last updated.com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking
Retrieve the tracking information from the entityint
hashCode()
void
setApplication
(String application) The id of the relatedApplication
void
setCatalog
(String catalog) The id of the relatedCatalog
void
setCatalogStatus
(String catalogStatus) Thestatus
of thecatalog's
visibility for this assignment.void
setContextId
(String contextId) void
setImplicit
(String implicit) The id of the implicit catalog for the application that will contain the application's overrides of items fromcatalog
.void
setPropagationType
(String propagationType) ThePropagationType
of the how changes from a vendor will be received into the marketplace application.void
setTimestamp
(Instant timestamp) Temporal state describing the time at which this item was last updated.void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) Retrieve the tracking information from the entityvoid
setVendorRef
(String vendorRef) 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
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaTenantMarketplaceApplicationCatalog
public JpaTenantMarketplaceApplicationCatalog()
-
-
Method Details
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getContextId
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getCatalog
The id of the relatedCatalog
- Returns:
- The id of the related
Catalog
-
getImplicit
The id of the implicit catalog for the application that will contain the application's overrides of items fromcatalog
.- Returns:
- The id of the implicit catalog for the application
-
getApplication
The id of the relatedApplication
- Returns:
- The id of the related
Application
-
getVendorRef
- See Also:
-
getCatalogStatus
Thestatus
of thecatalog's
visibility for this assignment.- Returns:
- The
status
of thecatalog's
visibility for this assignment.
-
getPropagationType
ThePropagationType
of the how changes from a vendor will be received into the marketplace application. The default isPropagationType.DIRECT
.- Returns:
- The
PropagationType
of the how changes from a vendor will be received into the marketplace application.
-
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
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
-
setCatalog
The id of the relatedCatalog
- Parameters:
The
- id of the relatedCatalog
-
setImplicit
The id of the implicit catalog for the application that will contain the application's overrides of items fromcatalog
.- Parameters:
implicit
- The id of the implicit catalog for the application
-
setApplication
The id of the relatedApplication
- Parameters:
The
- id of the relatedApplication
-
setVendorRef
- See Also:
-
setCatalogStatus
Thestatus
of thecatalog's
visibility for this assignment.- Parameters:
catalogStatus
- Thestatus
of thecatalog's
visibility for this assignment.
-
setPropagationType
ThePropagationType
of the how changes from a vendor will be received into the marketplace application. The default isPropagationType.DIRECT
.- Parameters:
propagationType
- ThePropagationType
of the how changes from a vendor will be received into the marketplace application.
-
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
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()
-