Interface CPContentHelper
@ProviderType
public interface CPContentHelper
-
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.json.JSONObjectgetAvailabilityContentContributorValueJSONObject(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry, jakarta.servlet.http.HttpServletRequest httpServletRequest) getAvailabilityEstimateLabel(jakarta.servlet.http.HttpServletRequest httpServletRequest) getAvailabilityLabel(jakarta.servlet.http.HttpServletRequest httpServletRequest) List<com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValue> getCategorizedCPDefinitionSpecificationOptionValues(long cpDefinitionId, long cpOptionCategoryId) com.liferay.commerce.product.catalog.CPCatalogEntrygetCPCatalogEntry(jakarta.servlet.http.HttpServletRequest httpServletRequest) com.liferay.portal.kernel.json.JSONObjectgetCPContentContributorValueJSONObject(String contributorKey, com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry, jakarta.servlet.http.HttpServletRequest httpServletRequest) com.liferay.portal.kernel.json.JSONObjectgetCPContentContributorValueJSONObject(String contributorKey, jakarta.servlet.http.HttpServletRequest httpServletRequest) getCPContentRendererKey(String type, jakarta.portlet.RenderRequest renderRequest) getCPContentRenderers(String cpType) getCPDefinitionCDNURL(long cpDefinitionId, jakarta.servlet.http.HttpServletRequest httpServletRequest) com.liferay.portal.kernel.repository.model.FileVersiongetCPDefinitionImageFileVersion(long cpDefinitionId, jakarta.servlet.http.HttpServletRequest httpServletRequest) List<com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValue> getCPDefinitionSpecificationOptionValues(long cpDefinitionId) getCPMedias(long cpDefinitionId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) List<com.liferay.commerce.product.model.CPOptionCategory> getCPOptionCategories(long companyId) List<com.liferay.commerce.product.type.CPType> com.liferay.commerce.product.model.CPInstancegetDefaultCPInstance(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) com.liferay.commerce.product.model.CPInstancegetDefaultCPInstance(jakarta.servlet.http.HttpServletRequest httpServletRequest) com.liferay.commerce.product.catalog.CPSkugetDefaultCPSku(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) getDefaultImageFileURL(long commerceAccountId, long cpDefinitionId) getDownloadFileEntryURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getFriendlyURL(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getImages(long cpDefinitionId, boolean gallery, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getImageURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getIncomingQuantityLabel(long companyId, Locale locale, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.model.User user) getMinOrderQuantity(long cpDefinitionId) getReplacementCommerceProductFriendlyURL(com.liferay.commerce.product.catalog.CPSku cpSku, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getStockQuantity(jakarta.servlet.http.HttpServletRequest httpServletRequest) getStockQuantityLabel(jakarta.servlet.http.HttpServletRequest httpServletRequest) getSubscriptionInfoLabel(jakarta.servlet.http.HttpServletRequest httpServletRequest) jakarta.portlet.ResourceURLgetViewAttachmentURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse) booleanhasChildCPDefinitions(long cpDefinitionId) booleanhasCPDefinitionOptionRels(long cpDefinitionId) booleanhasCPDefinitionSpecificationOptionValues(long cpDefinitionId) booleanhasMultipleCPSkus(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) booleanhasReplacement(com.liferay.commerce.product.catalog.CPSku cpSku, jakarta.servlet.http.HttpServletRequest httpServletRequest) booleanhasRequiredCPDefinitionOptionRels(long cpDefinitionId) booleanisDirectReplacement(com.liferay.commerce.product.catalog.CPSku cpSku) booleanisInWishList(com.liferay.commerce.product.catalog.CPSku cpSku, com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) voidrenderCPType(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) voidrenderOptions(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
-
Method Details
-
getAvailabilityContentContributorValueJSONObject
com.liferay.portal.kernel.json.JSONObject getAvailabilityContentContributorValueJSONObject(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry, jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getAvailabilityEstimateLabel
String getAvailabilityEstimateLabel(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getAvailabilityLabel
String getAvailabilityLabel(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getCategorizedCPDefinitionSpecificationOptionValues
List<com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValue> getCategorizedCPDefinitionSpecificationOptionValues(long cpDefinitionId, long cpOptionCategoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPCatalogEntry
com.liferay.commerce.product.catalog.CPCatalogEntry getCPCatalogEntry(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPContentContributorValueJSONObject
com.liferay.portal.kernel.json.JSONObject getCPContentContributorValueJSONObject(String contributorKey, com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry, jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getCPContentContributorValueJSONObject
com.liferay.portal.kernel.json.JSONObject getCPContentContributorValueJSONObject(String contributorKey, jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getCPContentRendererKey
-
getCPContentRenderers
-
getCPDefinitionCDNURL
String getCPDefinitionCDNURL(long cpDefinitionId, jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getCPDefinitionImageFileVersion
com.liferay.portal.kernel.repository.model.FileVersion getCPDefinitionImageFileVersion(long cpDefinitionId, jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getCPDefinitionSpecificationOptionValues
List<com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValue> getCPDefinitionSpecificationOptionValues(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMedias
List<CPMedia> getCPMedias(long cpDefinitionId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPOptionCategories
-
getCPTypes
List<com.liferay.commerce.product.type.CPType> getCPTypes() -
getDefaultCPInstance
com.liferay.commerce.product.model.CPInstance getDefaultCPInstance(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) throws Exception - Throws:
Exception
-
getDefaultCPInstance
com.liferay.commerce.product.model.CPInstance getDefaultCPInstance(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getDefaultCPSku
com.liferay.commerce.product.catalog.CPSku getDefaultCPSku(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) throws Exception - Throws:
Exception
-
getDefaultImageFileURL
String getDefaultImageFileURL(long commerceAccountId, long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDownloadFileEntryURL
String getDownloadFileEntryURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFriendlyURL
String getFriendlyURL(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getImages
List<CPMedia> getImages(long cpDefinitionId, boolean gallery, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getImageURL
String getImageURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception - Throws:
Exception
-
getIncomingQuantityLabel
String getIncomingQuantityLabel(long companyId, Locale locale, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMinOrderQuantity
-
getReplacementCommerceProductFriendlyURL
String getReplacementCommerceProductFriendlyURL(com.liferay.commerce.product.catalog.CPSku cpSku, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getStockQuantity
String getStockQuantity(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getStockQuantityLabel
String getStockQuantityLabel(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getSubscriptionInfoLabel
String getSubscriptionInfoLabel(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getViewAttachmentURL
jakarta.portlet.ResourceURL getViewAttachmentURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasChildCPDefinitions
boolean hasChildCPDefinitions(long cpDefinitionId) -
hasCPDefinitionOptionRels
boolean hasCPDefinitionOptionRels(long cpDefinitionId) -
hasCPDefinitionSpecificationOptionValues
boolean hasCPDefinitionSpecificationOptionValues(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasMultipleCPSkus
boolean hasMultipleCPSkus(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) throws Exception - Throws:
Exception
-
hasReplacement
boolean hasReplacement(com.liferay.commerce.product.catalog.CPSku cpSku, jakarta.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
hasRequiredCPDefinitionOptionRels
boolean hasRequiredCPDefinitionOptionRels(long cpDefinitionId) -
isDirectReplacement
- Throws:
Exception
-
isInWishList
boolean isInWishList(com.liferay.commerce.product.catalog.CPSku cpSku, com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws Exception - Throws:
Exception
-
renderCPType
void renderCPType(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws Exception - Throws:
Exception
-
renderOptions
void renderOptions(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws Exception - Throws:
Exception
-