Class CPDefinitionLocalServiceWrapper

java.lang.Object
com.liferay.commerce.product.service.CPDefinitionLocalServiceWrapper
All Implemented Interfaces:
CPDefinitionLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<CPDefinition>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CPDefinitionLocalService>

public class CPDefinitionLocalServiceWrapper extends Object implements CPDefinitionLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CPDefinitionLocalService>
Provides a wrapper for CPDefinitionLocalService.
See Also:
Generated:
  • Constructor Details

    • CPDefinitionLocalServiceWrapper

      public CPDefinitionLocalServiceWrapper()
    • CPDefinitionLocalServiceWrapper

      public CPDefinitionLocalServiceWrapper(CPDefinitionLocalService cpDefinitionLocalService)
  • Method Details

    • addCPDefinition

      public CPDefinition addCPDefinition(CPDefinition cpDefinition)
      Adds the cp definition to the database. Also notifies the appropriate model listeners.

      Important: Inspect CPDefinitionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      addCPDefinition in interface CPDefinitionLocalService
      Parameters:
      cpDefinition - the cp definition
      Returns:
      the cp definition that was added
    • addCPDefinition

      public CPDefinition addCPDefinition(String externalReferenceCode, long groupId, long userId, Map<Locale,String> nameMap, Map<Locale,String> shortDescriptionMap, Map<Locale,String> descriptionMap, Map<Locale,String> urlTitleMap, Map<Locale,String> metaTitleMap, Map<Locale,String> metaDescriptionMap, Map<Locale,String> metaKeywordsMap, String productTypeName, boolean ignoreSKUCombinations, boolean shippable, boolean freeShipping, boolean shipSeparately, double shippingExtraPrice, double width, double height, double depth, double weight, long cpTaxCategoryId, boolean taxExempt, boolean telcoOrElectronics, String ddmStructureKey, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, String defaultSku, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCPDefinition

      public CPDefinition addCPDefinition(String externalReferenceCode, long groupId, long userId, Map<Locale,String> nameMap, Map<Locale,String> shortDescriptionMap, Map<Locale,String> descriptionMap, Map<Locale,String> urlTitleMap, Map<Locale,String> metaTitleMap, Map<Locale,String> metaDescriptionMap, Map<Locale,String> metaKeywordsMap, String productTypeName, boolean ignoreSKUCombinations, boolean shippable, boolean freeShipping, boolean shipSeparately, double shippingExtraPrice, double width, double height, double depth, double weight, long cpTaxCategoryId, boolean taxExempt, boolean telcoOrElectronics, String ddmStructureKey, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, String defaultSku, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCPDefinition

      public CPDefinition addOrUpdateCPDefinition(String externalReferenceCode, long groupId, long userId, Map<Locale,String> nameMap, Map<Locale,String> shortDescriptionMap, Map<Locale,String> descriptionMap, Map<Locale,String> urlTitleMap, Map<Locale,String> metaTitleMap, Map<Locale,String> metaDescriptionMap, Map<Locale,String> metaKeywordsMap, String productTypeName, boolean ignoreSKUCombinations, boolean shippable, boolean freeShipping, boolean shipSeparately, double shippingExtraPrice, double width, double height, double depth, double weight, long cpTaxCategoryId, boolean taxExempt, boolean telcoOrElectronics, String ddmStructureKey, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, String defaultSku, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrUpdateCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCPDefinition

      public CPDefinition addOrUpdateCPDefinition(String externalReferenceCode, long groupId, long userId, Map<Locale,String> nameMap, Map<Locale,String> shortDescriptionMap, Map<Locale,String> descriptionMap, Map<Locale,String> urlTitleMap, Map<Locale,String> metaTitleMap, Map<Locale,String> metaDescriptionMap, Map<Locale,String> metaKeywordsMap, String productTypeName, boolean ignoreSKUCombinations, boolean shippable, boolean freeShipping, boolean shipSeparately, double shippingExtraPrice, double width, double height, double depth, double weight, long cpTaxCategoryId, boolean taxExempt, boolean telcoOrElectronics, String ddmStructureKey, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, String defaultSku, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrUpdateCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkCPDefinitions

      public void checkCPDefinitions() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      checkCPDefinitions in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • cloneCPDefinition

      public CPDefinition cloneCPDefinition(long userId, long cpDefinitionId, long groupId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      cloneCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • copyCPDefinition

      public CPDefinition copyCPDefinition(long sourceCPDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      copyCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • copyCPDefinition

      public CPDefinition copyCPDefinition(long sourceCPDefinitionId, long groupId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      copyCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCPDefinition

      public CPDefinition createCPDefinition(long CPDefinitionId)
      Creates a new cp definition with the primary key. Does not add the cp definition to the database.
      Specified by:
      createCPDefinition in interface CPDefinitionLocalService
      Parameters:
      CPDefinitionId - the primary key for the new cp definition
      Returns:
      the new cp definition
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface CPDefinitionLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteAssetCategoryCPDefinition

      public void deleteAssetCategoryCPDefinition(long cpDefinitionId, long categoryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteAssetCategoryCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPDefinition

      public CPDefinition deleteCPDefinition(CPDefinition cpDefinition) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp definition from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPDefinitionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteCPDefinition in interface CPDefinitionLocalService
      Parameters:
      cpDefinition - the cp definition
      Returns:
      the cp definition that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPDefinition

      public CPDefinition deleteCPDefinition(long CPDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp definition with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPDefinitionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteCPDefinition in interface CPDefinitionLocalService
      Parameters:
      CPDefinitionId - the primary key of the cp definition
      Returns:
      the cp definition that was removed
      Throws:
      PortalException - if a cp definition with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPDefinitions

      public void deleteCPDefinitions(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCPDefinitions in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPDefinitions

      public void deleteCPDefinitions(long cProductId, int status)
      Specified by:
      deleteCPDefinitions in interface CPDefinitionLocalService
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface CPDefinitionLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface CPDefinitionLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface CPDefinitionLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface CPDefinitionLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface CPDefinitionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.product.model.impl.CPDefinitionModelImpl.

      Specified by:
      dynamicQuery in interface CPDefinitionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.product.model.impl.CPDefinitionModelImpl.

      Specified by:
      dynamicQuery in interface CPDefinitionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface CPDefinitionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface CPDefinitionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCPDefinition

      public CPDefinition fetchCPDefinition(long CPDefinitionId)
      Specified by:
      fetchCPDefinition in interface CPDefinitionLocalService
    • fetchCPDefinitionByCProductExternalReferenceCode

      public CPDefinition fetchCPDefinitionByCProductExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCPDefinitionByCProductExternalReferenceCode in interface CPDefinitionLocalService
    • fetchCPDefinitionByCProductId

      public CPDefinition fetchCPDefinitionByCProductId(long cProductId)
      Specified by:
      fetchCPDefinitionByCProductId in interface CPDefinitionLocalService
    • fetchCPDefinitionByUuidAndGroupId

      public CPDefinition fetchCPDefinitionByUuidAndGroupId(String uuid, long groupId)
      Returns the cp definition matching the UUID and group.
      Specified by:
      fetchCPDefinitionByUuidAndGroupId in interface CPDefinitionLocalService
      Parameters:
      uuid - the cp definition's UUID
      groupId - the primary key of the group
      Returns:
      the matching cp definition, or null if a matching cp definition could not be found
    • fetchCPDefinitionLocalization

      public CPDefinitionLocalization fetchCPDefinitionLocalization(long CPDefinitionId, String languageId)
      Specified by:
      fetchCPDefinitionLocalization in interface CPDefinitionLocalService
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface CPDefinitionLocalService
    • getCPDefinition

      public CPDefinition getCPDefinition(long CPDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp definition with the primary key.
      Specified by:
      getCPDefinition in interface CPDefinitionLocalService
      Parameters:
      CPDefinitionId - the primary key of the cp definition
      Returns:
      the cp definition
      Throws:
      PortalException - if a cp definition with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPDefinitionByUuidAndGroupId

      public CPDefinition getCPDefinitionByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp definition matching the UUID and group.
      Specified by:
      getCPDefinitionByUuidAndGroupId in interface CPDefinitionLocalService
      Parameters:
      uuid - the cp definition's UUID
      groupId - the primary key of the group
      Returns:
      the matching cp definition
      Throws:
      PortalException - if a matching cp definition could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPDefinitionDescriptionMap

      public Map<Locale,String> getCPDefinitionDescriptionMap(long cpDefinitionId)
      Specified by:
      getCPDefinitionDescriptionMap in interface CPDefinitionLocalService
    • getCPDefinitionLocalization

      public CPDefinitionLocalization getCPDefinitionLocalization(long CPDefinitionId, String languageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPDefinitionLocalization in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPDefinitionLocalizationLanguageIds

      public List<String> getCPDefinitionLocalizationLanguageIds(long cpDefinitionId)
      Specified by:
      getCPDefinitionLocalizationLanguageIds in interface CPDefinitionLocalService
    • getCPDefinitionLocalizations

      public List<CPDefinitionLocalization> getCPDefinitionLocalizations(long CPDefinitionId)
      Specified by:
      getCPDefinitionLocalizations in interface CPDefinitionLocalService
    • getCPDefinitionMetaDescriptionMap

      public Map<Locale,String> getCPDefinitionMetaDescriptionMap(long cpDefinitionId)
      Specified by:
      getCPDefinitionMetaDescriptionMap in interface CPDefinitionLocalService
    • getCPDefinitionMetaKeywordsMap

      public Map<Locale,String> getCPDefinitionMetaKeywordsMap(long cpDefinitionId)
      Specified by:
      getCPDefinitionMetaKeywordsMap in interface CPDefinitionLocalService
    • getCPDefinitionMetaTitleMap

      public Map<Locale,String> getCPDefinitionMetaTitleMap(long cpDefinitionId)
      Specified by:
      getCPDefinitionMetaTitleMap in interface CPDefinitionLocalService
    • getCPDefinitionNameMap

      public Map<Locale,String> getCPDefinitionNameMap(long cpDefinitionId)
      Specified by:
      getCPDefinitionNameMap in interface CPDefinitionLocalService
    • getCPDefinitions

      public List<CPDefinition> getCPDefinitions(int start, int end)
      Returns a range of all the cp definitions.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.product.model.impl.CPDefinitionModelImpl.

      Specified by:
      getCPDefinitions in interface CPDefinitionLocalService
      Parameters:
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      Returns:
      the range of cp definitions
    • getCPDefinitions

      public List<CPDefinition> getCPDefinitions(long groupId, boolean subscriptionEnabled)
      Specified by:
      getCPDefinitions in interface CPDefinitionLocalService
    • getCPDefinitions

      public List<CPDefinition> getCPDefinitions(long groupId, int status, int start, int end)
      Specified by:
      getCPDefinitions in interface CPDefinitionLocalService
    • getCPDefinitions

      public List<CPDefinition> getCPDefinitions(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
      Specified by:
      getCPDefinitions in interface CPDefinitionLocalService
    • getCPDefinitions

      public List<CPDefinition> getCPDefinitions(long groupId, String productTypeName, String languageId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
      Specified by:
      getCPDefinitions in interface CPDefinitionLocalService
    • getCPDefinitionsByUuidAndCompanyId

      public List<CPDefinition> getCPDefinitionsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the cp definitions matching the UUID and company.
      Specified by:
      getCPDefinitionsByUuidAndCompanyId in interface CPDefinitionLocalService
      Parameters:
      uuid - the UUID of the cp definitions
      companyId - the primary key of the company
      Returns:
      the matching cp definitions, or an empty list if no matches were found
    • getCPDefinitionsByUuidAndCompanyId

      public List<CPDefinition> getCPDefinitionsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
      Returns a range of cp definitions matching the UUID and company.
      Specified by:
      getCPDefinitionsByUuidAndCompanyId in interface CPDefinitionLocalService
      Parameters:
      uuid - the UUID of the cp definitions
      companyId - the primary key of the company
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching cp definitions, or an empty list if no matches were found
    • getCPDefinitionsCount

      public int getCPDefinitionsCount()
      Returns the number of cp definitions.
      Specified by:
      getCPDefinitionsCount in interface CPDefinitionLocalService
      Returns:
      the number of cp definitions
    • getCPDefinitionsCount

      public int getCPDefinitionsCount(long groupId, boolean subscriptionEnabled)
      Specified by:
      getCPDefinitionsCount in interface CPDefinitionLocalService
    • getCPDefinitionsCount

      public int getCPDefinitionsCount(long groupId, int status)
      Specified by:
      getCPDefinitionsCount in interface CPDefinitionLocalService
    • getCPDefinitionsCount

      public int getCPDefinitionsCount(long groupId, String productTypeName, String languageId, int status)
      Specified by:
      getCPDefinitionsCount in interface CPDefinitionLocalService
    • getCPDefinitionShortDescriptionMap

      public Map<Locale,String> getCPDefinitionShortDescriptionMap(long cpDefinitionId)
      Specified by:
      getCPDefinitionShortDescriptionMap in interface CPDefinitionLocalService
    • getCProductCPDefinition

      public CPDefinition getCProductCPDefinition(long cProductId, int version) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCProductCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCProductCPDefinitions

      public List<CPDefinition> getCProductCPDefinitions(long cProductId, int status, int start, int end)
      Specified by:
      getCProductCPDefinitions in interface CPDefinitionLocalService
    • getCProductCPDefinitions

      public List<CPDefinition> getCProductCPDefinitions(long cProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
      Specified by:
      getCProductCPDefinitions in interface CPDefinitionLocalService
    • getDefaultImageCPAttachmentFileEntry

      public CPAttachmentFileEntry getDefaultImageCPAttachmentFileEntry(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDefaultImageCPAttachmentFileEntry in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface CPDefinitionLocalService
    • getFacets

      public List<com.liferay.portal.kernel.search.facet.Facet> getFacets(String filterFields, String filterValues, com.liferay.portal.kernel.search.SearchContext searchContext)
      Specified by:
      getFacets in interface CPDefinitionLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface CPDefinitionLocalService
    • getLayoutPageTemplateEntryUuid

      public String getLayoutPageTemplateEntryUuid(long groupId, long cpDefinitionId)
      Specified by:
      getLayoutPageTemplateEntryUuid in interface CPDefinitionLocalService
    • getLayoutUuid

      public String getLayoutUuid(long groupId, long cpDefinitionId)
      Specified by:
      getLayoutUuid in interface CPDefinitionLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CPDefinitionLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface CPDefinitionLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getUrlTitleMap

      public Map<Locale,String> getUrlTitleMap(long cpDefinitionId)
      Specified by:
      getUrlTitleMap in interface CPDefinitionLocalService
    • getUrlTitleMapAsXML

      public String getUrlTitleMapAsXML(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUrlTitleMapAsXML in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • hasChildCPDefinitions

      public boolean hasChildCPDefinitions(long cpDefinitionId)
      Specified by:
      hasChildCPDefinitions in interface CPDefinitionLocalService
    • isPublishedCPDefinition

      public boolean isPublishedCPDefinition(CPDefinition cpDefinition)
      Specified by:
      isPublishedCPDefinition in interface CPDefinitionLocalService
    • isPublishedCPDefinition

      public boolean isPublishedCPDefinition(long cpDefinitionId)
      Specified by:
      isPublishedCPDefinition in interface CPDefinitionLocalService
    • isVersionable

      public boolean isVersionable(CPDefinition cpDefinition)
      Specified by:
      isVersionable in interface CPDefinitionLocalService
    • isVersionable

      public boolean isVersionable(long cpDefinitionId)
      Specified by:
      isVersionable in interface CPDefinitionLocalService
    • isVersionable

      public boolean isVersionable(long cpDefinitionId, javax.servlet.http.HttpServletRequest httpServletRequest)
      Specified by:
      isVersionable in interface CPDefinitionLocalService
    • maintainVersionThreshold

      public void maintainVersionThreshold(long cProductId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      maintainVersionThreshold in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPDefinitions

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPDefinition> searchCPDefinitions(long companyId, long[] groupIds, String keywords, int status, boolean ignoreCommerceAccountGroup, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPDefinitions in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPDefinitions

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPDefinition> searchCPDefinitions(long companyId, long[] groupIds, String keywords, String filterFields, String filterValues, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPDefinitions in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPDefinitionsByChannelGroupId

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPDefinition> searchCPDefinitionsByChannelGroupId(long companyId, long[] groupIds, long commerceChannelGroupId, String keywords, int status, boolean ignoreCommerceAccountGroup, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPDefinitionsByChannelGroupId in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAsset

      public void updateAsset(long userId, CPDefinition cpDefinition, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateAsset in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinition

      public CPDefinition updateCPDefinition(CPDefinition cpDefinition)
      Updates the cp definition in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CPDefinitionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      updateCPDefinition in interface CPDefinitionLocalService
      Parameters:
      cpDefinition - the cp definition
      Returns:
      the cp definition that was updated
    • updateCPDefinition

      public CPDefinition updateCPDefinition(long cpDefinitionId, Map<Locale,String> nameMap, Map<Locale,String> shortDescriptionMap, Map<Locale,String> descriptionMap, Map<Locale,String> urlTitleMap, Map<Locale,String> metaTitleMap, Map<Locale,String> metaDescriptionMap, Map<Locale,String> metaKeywordsMap, boolean ignoreSKUCombinations, boolean shippable, boolean freeShipping, boolean shipSeparately, double shippingExtraPrice, double width, double height, double depth, double weight, long cpTaxCategoryId, boolean taxExempt, boolean telcoOrElectronics, String ddmStructureKey, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinition

      public CPDefinition updateCPDefinition(long cpDefinitionId, Map<Locale,String> nameMap, Map<Locale,String> shortDescriptionMap, Map<Locale,String> descriptionMap, Map<Locale,String> urlTitleMap, Map<Locale,String> metaTitleMap, Map<Locale,String> metaDescriptionMap, Map<Locale,String> metaKeywordsMap, boolean ignoreSKUCombinations, String ddmStructureKey, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinition in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinitionAccountGroupFilter

      public CPDefinition updateCPDefinitionAccountGroupFilter(long cpDefinitionId, boolean enable) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinitionAccountGroupFilter in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinitionCategorization

      public CPDefinition updateCPDefinitionCategorization(long cpDefinitionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinitionCategorization in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinitionChannelFilter

      public CPDefinition updateCPDefinitionChannelFilter(long cpDefinitionId, boolean enable) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinitionChannelFilter in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinitionIgnoreSKUCombinations

      public CPDefinition updateCPDefinitionIgnoreSKUCombinations(long cpDefinitionId, boolean ignoreSKUCombinations, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinitionIgnoreSKUCombinations in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinitionLocalization

      public CPDefinitionLocalization updateCPDefinitionLocalization(CPDefinition cpDefinition, String languageId, String name, String shortDescription, String description, String metaTitle, String metaDescription, String metaKeywords) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinitionLocalization in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinitionLocalizations

      public List<CPDefinitionLocalization> updateCPDefinitionLocalizations(CPDefinition cpDefinition, Map<String,String> nameMap, Map<String,String> shortDescriptionMap, Map<String,String> descriptionMap, Map<String,String> metaTitleMap, Map<String,String> metaDescriptionMap, Map<String,String> metaKeywordsMap) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinitionLocalizations in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDefinitionsByCPTaxCategoryId

      public void updateCPDefinitionsByCPTaxCategoryId(long cpTaxCategoryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDefinitionsByCPTaxCategoryId in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public CPDefinition updateExternalReferenceCode(String externalReferenceCode, long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateExternalReferenceCode in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateShippingInfo

      public CPDefinition updateShippingInfo(long cpDefinitionId, boolean shippable, boolean freeShipping, boolean shipSeparately, double shippingExtraPrice, double width, double height, double depth, double weight, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateShippingInfo in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public CPDefinition updateStatus(long userId, long cpDefinitionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSubscriptionInfo

      public CPDefinition updateSubscriptionInfo(long cpDefinitionId, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateSubscriptionInfo in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateTaxCategoryInfo

      public CPDefinition updateTaxCategoryInfo(long cpDefinitionId, long cpTaxCategoryId, boolean taxExempt, boolean telcoOrElectronics) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateTaxCategoryInfo in interface CPDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPDefinition> getCTPersistence()
      Specified by:
      getCTPersistence in interface CPDefinitionLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPDefinition>
    • getModelClass

      public Class<CPDefinition> getModelClass()
      Specified by:
      getModelClass in interface CPDefinitionLocalService
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPDefinition>
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPDefinition>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface CPDefinitionLocalService
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPDefinition>
      Throws:
      E extends Throwable
    • getWrappedService

      public CPDefinitionLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CPDefinitionLocalService>
    • setWrappedService

      public void setWrappedService(CPDefinitionLocalService cpDefinitionLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CPDefinitionLocalService>