Class JpaMarketplaceApplicationCatalog
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.jpa.marketplace.domain.JpaMarketplaceApplicationCatalog
-
- 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.tenant.domain.CatalogStatusAware
,com.broadleafcommerce.data.tracking.core.TenantTrackable<TenantJpaTracking>
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<TenantJpaTracking>
,Serializable
@Entity public class JpaMarketplaceApplicationCatalog extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.TenantTrackable<TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.Temporal, com.broadleafcommerce.data.tracking.core.tenant.domain.CatalogStatusAware
Reference structure for aApplication
to its individually assignedCatalog
instances. This relationship is specific to catalogs belonging to vendors in the marketplace use case. This is the sync counterpart to the entity of the same name in the tenant service.- Author:
- Jeff Fischer
- See Also:
Catalog.getVendorRef()
,MarketplaceApplicationCatalog
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaMarketplaceApplicationCatalog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
org.modelmapper.ModelMapper
fromMe()
String
getApplication()
The id of the relatedApplication
Class<?>
getBusinessDomainType()
String
getCatalog()
The id of the relatedCatalog
String
getCatalogStatus()
Thestatus
of the catalog's visibility for this assignment.String
getContextId()
String
getImplicit()
The id of the implicit catalog for the application that will contain the application's overrides of items fromcatalog
.String
getPropagationType()
ThePropagationType
of the how changes from a vendor will be received into the marketplace application.Instant
getTimestamp()
Temporal state describing the time at which this item was last updated.TenantJpaTracking
getTracking()
Retrieve the tracking information from the entityString
getVendorRef()
int
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 the catalog'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(TenantJpaTracking tracking)
Retrieve the tracking information from the entityvoid
setVendorRef(String vendorRef)
org.modelmapper.ModelMapper
toMe()
String
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
-
-
-
-
Method Detail
-
getBusinessDomainType
public Class<?> 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
public String getContextId()
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getCatalog
public String getCatalog()
The id of the relatedCatalog
- Returns:
- The id of the related
Catalog
-
getImplicit
public String 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
-
getVendorRef
public String getVendorRef()
- See Also:
Catalog.getVendorRef()
-
getApplication
public String getApplication()
The id of the relatedApplication
- Returns:
- The id of the related
Application
-
getCatalogStatus
public String getCatalogStatus()
Thestatus
of the catalog's visibility for this assignment.- Specified by:
getCatalogStatus
in interfacecom.broadleafcommerce.data.tracking.core.tenant.domain.CatalogStatusAware
- Returns:
- The
status
of the catalog's visibility for this assignment.
-
getPropagationType
public String getPropagationType()
ThePropagationType
of the how changes from a vendor will be received into the marketplace application. The default isPropagationType.DIRECT
.- Specified by:
getPropagationType
in interfacecom.broadleafcommerce.data.tracking.core.tenant.domain.CatalogStatusAware
- Returns:
- The
PropagationType
of the how changes from a vendor will be received into the marketplace application.
-
getTimestamp
public Instant 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 TenantJpaTracking getTracking()
Retrieve the tracking information from the entity- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Returns:
- Tracking information
-
setContextId
public void setContextId(String contextId)
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setCatalog
public void setCatalog(String catalog)
The id of the relatedCatalog
- Parameters:
The
- id of the relatedCatalog
-
setImplicit
public void setImplicit(String implicit)
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
-
setVendorRef
public void setVendorRef(String vendorRef)
- See Also:
Catalog.getVendorRef()
-
setApplication
public void setApplication(String application)
The id of the relatedApplication
- Parameters:
The
- id of the relatedApplication
-
setCatalogStatus
public void setCatalogStatus(String catalogStatus)
Thestatus
of the catalog's visibility for this assignment.- Parameters:
catalogStatus
- Thestatus
of the catalog's visibility for this assignment.
-
setPropagationType
public void setPropagationType(String propagationType)
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
public void setTimestamp(Instant timestamp)
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(TenantJpaTracking tracking)
Retrieve the tracking information from the entity- Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<TenantJpaTracking>
- Parameters:
tracking
- Tracking information
-
canEqual
protected boolean canEqual(Object other)
-
-