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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.modelmapper.ModelMapperfromMe()The id of the relatedApplicationClass<?>The id of the relatedCatalogThestatusof thecatalog'svisibility for this assignment.The id of the implicit catalog for the application that will contain the application's overrides of items fromcatalog.ThePropagationTypeof 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.TenantJpaTrackingRetrieve the tracking information from the entityinthashCode()voidsetApplication(String application) The id of the relatedApplicationvoidsetCatalog(String catalog) The id of the relatedCatalogvoidsetCatalogStatus(String catalogStatus) Thestatusof thecatalog'svisibility for this assignment.voidsetContextId(String contextId) voidsetImplicit(String implicit) The id of the implicit catalog for the application that will contain the application's overrides of items fromcatalog.voidsetPropagationType(String propagationType) ThePropagationTypeof the how changes from a vendor will be received into the marketplace application.voidsetTimestamp(Instant timestamp) Temporal state describing the time at which this item was last updated.voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) Retrieve the tracking information from the entityvoidsetVendorRef(String vendorRef) 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, preToMeMethods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationStateMethods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStatesMethods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaTenantMarketplaceApplicationCatalog
public JpaTenantMarketplaceApplicationCatalog()
-
-
Method Details
-
getBusinessDomainType
- Specified by:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getContextId
- Specified by:
getContextIdin 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
Thestatusof thecatalog'svisibility for this assignment.- Returns:
- The
statusof thecatalog'svisibility for this assignment.
-
getPropagationType
ThePropagationTypeof the how changes from a vendor will be received into the marketplace application. The default isPropagationType.DIRECT.- Returns:
- The
PropagationTypeof 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 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
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()Retrieve the tracking information from the entity- Specified by:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Returns:
- Tracking information
-
setContextId
- Specified by:
setContextIdin 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
Thestatusof thecatalog'svisibility for this assignment.- Parameters:
catalogStatus- Thestatusof thecatalog'svisibility for this assignment.
-
setPropagationType
ThePropagationTypeof the how changes from a vendor will be received into the marketplace application. The default isPropagationType.DIRECT.- Parameters:
propagationType- ThePropagationTypeof 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 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
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) Retrieve the tracking information from the entity- Specified by:
setTrackingin 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()
-