@ProviderType
public interface CPContentHelper
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.kernel.json.JSONObject |
getAvailabilityContentContributorValueJSONObject(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry,
javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getAvailabilityEstimateLabel(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getAvailabilityLabel(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.util.List<com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValue> |
getCategorizedCPDefinitionSpecificationOptionValues(long cpDefinitionId,
long cpOptionCategoryId) |
com.liferay.commerce.product.catalog.CPCatalogEntry |
getCPCatalogEntry(javax.servlet.http.HttpServletRequest httpServletRequest) |
com.liferay.portal.kernel.json.JSONObject |
getCPContentContributorValueJSONObject(java.lang.String contributorKey,
com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry,
javax.servlet.http.HttpServletRequest httpServletRequest) |
com.liferay.portal.kernel.json.JSONObject |
getCPContentContributorValueJSONObject(java.lang.String contributorKey,
javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getCPContentRendererKey(java.lang.String type,
javax.portlet.RenderRequest renderRequest) |
java.util.List<CPContentRenderer> |
getCPContentRenderers(java.lang.String cpType) |
java.lang.String |
getCPDefinitionCDNURL(long cpDefinitionId,
javax.servlet.http.HttpServletRequest httpServletRequest) |
com.liferay.portal.kernel.repository.model.FileVersion |
getCPDefinitionImageFileVersion(long cpDefinitionId,
javax.servlet.http.HttpServletRequest httpServletRequest) |
java.util.List<com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValue> |
getCPDefinitionSpecificationOptionValues(long cpDefinitionId) |
java.util.List<CPMedia> |
getCPMedias(long cpDefinitionId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
java.util.List<com.liferay.commerce.product.model.CPOptionCategory> |
getCPOptionCategories(long companyId) |
java.util.List<com.liferay.commerce.product.type.CPType> |
getCPTypes() |
com.liferay.commerce.product.model.CPInstance |
getDefaultCPInstance(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) |
com.liferay.commerce.product.model.CPInstance |
getDefaultCPInstance(javax.servlet.http.HttpServletRequest httpServletRequest) |
com.liferay.commerce.product.catalog.CPSku |
getDefaultCPSku(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) |
java.lang.String |
getDefaultImageFileURL(long commerceAccountId,
long cpDefinitionId) |
java.lang.String |
getDownloadFileEntryURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
java.lang.String |
getFriendlyURL(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
java.util.List<CPMedia> |
getImages(long cpDefinitionId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
java.lang.String |
getImageURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
java.lang.String |
getIncomingQuantityLabel(long companyId,
java.util.Locale locale,
java.lang.String sku,
com.liferay.portal.kernel.model.User user) |
int |
getMinOrderQuantity(long cpDefinitionId) |
java.lang.String |
getReplacementCommerceProductFriendlyURL(com.liferay.commerce.product.catalog.CPSku cpSku,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
java.lang.String |
getStockQuantity(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getStockQuantityLabel(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getSubscriptionInfoLabel(javax.servlet.http.HttpServletRequest httpServletRequest) |
javax.portlet.ResourceURL |
getViewAttachmentURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse) |
boolean |
hasChildCPDefinitions(long cpDefinitionId) |
boolean |
hasCPDefinitionOptionRels(long cpDefinitionId) |
boolean |
hasCPDefinitionSpecificationOptionValues(long cpDefinitionId) |
boolean |
hasDirectReplacement(com.liferay.commerce.product.catalog.CPSku cpSku) |
boolean |
hasMultipleCPSkus(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry) |
boolean |
hasReplacement(com.liferay.commerce.product.catalog.CPSku cpSku,
javax.servlet.http.HttpServletRequest httpServletRequest) |
boolean |
isInWishList(com.liferay.commerce.product.catalog.CPSku cpSku,
com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
void |
renderCPType(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
renderOptions(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
com.liferay.portal.kernel.json.JSONObject getAvailabilityContentContributorValueJSONObject(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getAvailabilityEstimateLabel(javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getAvailabilityLabel(javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionjava.util.List<com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValue> getCategorizedCPDefinitionSpecificationOptionValues(long cpDefinitionId,
long cpOptionCategoryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.commerce.product.catalog.CPCatalogEntry getCPCatalogEntry(javax.servlet.http.HttpServletRequest httpServletRequest)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.json.JSONObject getCPContentContributorValueJSONObject(java.lang.String contributorKey,
com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptioncom.liferay.portal.kernel.json.JSONObject getCPContentContributorValueJSONObject(java.lang.String contributorKey,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getCPContentRendererKey(java.lang.String type,
javax.portlet.RenderRequest renderRequest)
java.util.List<CPContentRenderer> getCPContentRenderers(java.lang.String cpType)
java.lang.String getCPDefinitionCDNURL(long cpDefinitionId,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptioncom.liferay.portal.kernel.repository.model.FileVersion getCPDefinitionImageFileVersion(long cpDefinitionId,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionjava.util.List<com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValue> getCPDefinitionSpecificationOptionValues(long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionjava.util.List<CPMedia> getCPMedias(long cpDefinitionId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionjava.util.List<com.liferay.commerce.product.model.CPOptionCategory> getCPOptionCategories(long companyId)
java.util.List<com.liferay.commerce.product.type.CPType> getCPTypes()
com.liferay.commerce.product.model.CPInstance getDefaultCPInstance(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry)
throws java.lang.Exception
java.lang.Exceptioncom.liferay.commerce.product.model.CPInstance getDefaultCPInstance(javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptioncom.liferay.commerce.product.catalog.CPSku getDefaultCPSku(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getDefaultImageFileURL(long commerceAccountId,
long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionjava.lang.String getDownloadFileEntryURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionjava.lang.String getFriendlyURL(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionjava.util.List<CPMedia> getImages(long cpDefinitionId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionjava.lang.String getImageURL(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getIncomingQuantityLabel(long companyId,
java.util.Locale locale,
java.lang.String sku,
com.liferay.portal.kernel.model.User user)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionint getMinOrderQuantity(long cpDefinitionId)
java.lang.String getReplacementCommerceProductFriendlyURL(com.liferay.commerce.product.catalog.CPSku cpSku,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionjava.lang.String getStockQuantity(javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getStockQuantityLabel(javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getSubscriptionInfoLabel(javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionjavax.portlet.ResourceURL getViewAttachmentURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionboolean hasChildCPDefinitions(long cpDefinitionId)
boolean hasCPDefinitionOptionRels(long cpDefinitionId)
boolean hasCPDefinitionSpecificationOptionValues(long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionboolean hasDirectReplacement(com.liferay.commerce.product.catalog.CPSku cpSku)
throws java.lang.Exception
java.lang.Exceptionboolean hasMultipleCPSkus(com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry)
throws java.lang.Exception
java.lang.Exceptionboolean hasReplacement(com.liferay.commerce.product.catalog.CPSku cpSku,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.lang.Exception
java.lang.Exceptionboolean isInWishList(com.liferay.commerce.product.catalog.CPSku cpSku,
com.liferay.commerce.product.catalog.CPCatalogEntry cpCatalogEntry,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
throws java.lang.Exception
java.lang.Exceptionvoid renderCPType(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.lang.Exception
java.lang.Exceptionvoid renderOptions(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.lang.Exception
java.lang.Exception