Class ProductAsset
java.lang.Object
com.broadleafcommerce.asset.consumer.domain.EntityAsset
com.broadleafcommerce.dataexchange.domain.asset.ExchangeEntityAsset
com.broadleafcommerce.dataexchange.domain.product.ProductAsset
- All Implemented Interfaces:
com.broadleafcommerce.asset.consumer.domain.AssetSourceAware,ExchangeObject,Translatable,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanReturns the entity type that this object represents at the service layer.getId()inthashCode()voidSet the id of the entityvoidsetPrimary(Boolean primary) voidsetProductId(String productId) voidvoidsetTranslations(List<Translation> translations) toString()Methods inherited from class com.broadleafcommerce.dataexchange.domain.asset.ExchangeEntityAsset
getCorrelationId, getParentCorrelationId, isNewlyCreated, setCorrelationId, setNewlyCreated, setParentCorrelationIdMethods inherited from class com.broadleafcommerce.asset.consumer.domain.EntityAsset
getAltText, getApplicationId, getAttributes, getEmbedCode, getProvider, getTags, getTenantId, getTitle, getType, getUrl, setAltText, setApplicationId, setAttributes, setEmbedCode, setProvider, setTags, setTenantId, setTitle, setType, setUrlMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.dataexchange.domain.ExchangeObject
getContextState, setContextState
-
Constructor Details
-
ProductAsset
public ProductAsset()
-
-
Method Details
-
getEntityType
Description copied from interface:TranslatableReturns the entity type that this object represents at the service layer. This should be set withTranslation.setEntityType(String)before persistence.For example, this would be "com.broadleafcommerce.catalog.provider.jpa.domain.product.JpaVariant" for a variant entity. It is also acceptable to set this to the extended entity type.
- Specified by:
getEntityTypein interfaceTranslatable- Returns:
- the entity type
-
getId
- Specified by:
getIdin interfaceExchangeObject- Returns:
- the id of the entity
-
getProductId
-
getPrimary
-
getSorted
-
getTranslations
- Specified by:
getTranslationsin interfaceTranslatable
-
setId
Description copied from interface:ExchangeObjectSet the id of the entity- Specified by:
setIdin interfaceExchangeObject- Parameters:
id- the id of the entity
-
setProductId
-
setPrimary
-
setSorted
-
setTranslations
- Specified by:
setTranslationsin interfaceTranslatable
-
toString
- Overrides:
toStringin classExchangeEntityAsset
-
equals
- Overrides:
equalsin classExchangeEntityAsset
-
canEqual
- Overrides:
canEqualin classExchangeEntityAsset
-
hashCode
public int hashCode()- Overrides:
hashCodein classExchangeEntityAsset
-