Class CPInstanceLocalServiceWrapper

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

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

    • CPInstanceLocalServiceWrapper

      public CPInstanceLocalServiceWrapper()
    • CPInstanceLocalServiceWrapper

      public CPInstanceLocalServiceWrapper(CPInstanceLocalService cpInstanceLocalService)
  • Method Details

    • addCPInstance

      public CPInstance addCPInstance(CPInstance cpInstance)
      Adds the cp instance to the database. Also notifies the appropriate model listeners.

      Important: Inspect CPInstanceLocalServiceImpl 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:
      addCPInstance in interface CPInstanceLocalService
      Parameters:
      cpInstance - the cp instance
      Returns:
      the cp instance that was added
    • addCPInstance

      public CPInstance addCPInstance(String externalReferenceCode, long cpDefinitionId, long groupId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, Map<Long,List<Long>> cpDefinitionOptionRelIdCPDefinitionOptionValueRelIds, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean overrideSubscriptionInfo, 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, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPInstance in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCPInstance

      public CPInstance addOrUpdateCPInstance(String externalReferenceCode, long cpDefinitionId, long groupId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, String json, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean overrideSubscriptionInfo, 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, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrUpdateCPInstance in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • buildCPInstances

      public List<CPInstance> buildCPInstances(long cpDefinitionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      buildCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkCPInstances

      public void checkCPInstances(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      checkCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkCPInstancesByDisplayDate

      public void checkCPInstancesByDisplayDate(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      checkCPInstancesByDisplayDate in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCPInstance

      public CPInstance createCPInstance(long CPInstanceId)
      Creates a new cp instance with the primary key. Does not add the cp instance to the database.
      Specified by:
      createCPInstance in interface CPInstanceLocalService
      Parameters:
      CPInstanceId - the primary key for the new cp instance
      Returns:
      the new cp instance
    • createPersistedModel

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

      public CPInstance deleteCPInstance(CPInstance cpInstance) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp instance from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPInstanceLocalServiceImpl 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:
      deleteCPInstance in interface CPInstanceLocalService
      Parameters:
      cpInstance - the cp instance
      Returns:
      the cp instance that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPInstance

      public CPInstance deleteCPInstance(CPInstance cpInstance, boolean makeCopy) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCPInstance in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPInstance

      public CPInstance deleteCPInstance(long CPInstanceId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp instance with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPInstanceLocalServiceImpl 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:
      deleteCPInstance in interface CPInstanceLocalService
      Parameters:
      CPInstanceId - the primary key of the cp instance
      Returns:
      the cp instance that was removed
      Throws:
      PortalException - if a cp instance with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPInstances

      public void deleteCPInstances(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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 CPInstanceLocalService
      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 CPInstanceLocalService
      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 CPInstanceLocalService
      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 CPInstanceLocalService
    • 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 CPInstanceLocalService
      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.CPInstanceModelImpl.

      Specified by:
      dynamicQuery in interface CPInstanceLocalService
      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.CPInstanceModelImpl.

      Specified by:
      dynamicQuery in interface CPInstanceLocalService
      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 CPInstanceLocalService
      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 CPInstanceLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCPInstance

      public CPInstance fetchCPInstance(long CPInstanceId)
      Specified by:
      fetchCPInstance in interface CPInstanceLocalService
    • fetchCPInstance

      public CPInstance fetchCPInstance(long cProductId, String cpInstanceUuid)
      Specified by:
      fetchCPInstance in interface CPInstanceLocalService
    • fetchCPInstanceByExternalReferenceCode

      public CPInstance fetchCPInstanceByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCPInstanceByExternalReferenceCode in interface CPInstanceLocalService
    • fetchCPInstanceByUuidAndGroupId

      public CPInstance fetchCPInstanceByUuidAndGroupId(String uuid, long groupId)
      Returns the cp instance matching the UUID and group.
      Specified by:
      fetchCPInstanceByUuidAndGroupId in interface CPInstanceLocalService
      Parameters:
      uuid - the cp instance's UUID
      groupId - the primary key of the group
      Returns:
      the matching cp instance, or null if a matching cp instance could not be found
    • fetchCProductInstance

      public CPInstance fetchCProductInstance(long cProductId, String cpInstanceUuid)
      Specified by:
      fetchCProductInstance in interface CPInstanceLocalService
    • fetchDefaultCPInstance

      public CPInstance fetchDefaultCPInstance(long cpDefinitionId)
      Specified by:
      fetchDefaultCPInstance in interface CPInstanceLocalService
    • getActionableDynamicQuery

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

      public List<CPInstance> getCPDefinitionApprovedCPInstances(long cpDefinitionId)
      Specified by:
      getCPDefinitionApprovedCPInstances in interface CPInstanceLocalService
    • getCPDefinitionInstances

      public List<CPInstance> getCPDefinitionInstances(long cpDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Specified by:
      getCPDefinitionInstances in interface CPInstanceLocalService
    • getCPDefinitionInstancesCount

      public int getCPDefinitionInstancesCount(long cpDefinitionId, int status)
      Specified by:
      getCPDefinitionInstancesCount in interface CPInstanceLocalService
    • getCPInstance

      public CPInstance getCPInstance(long CPInstanceId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp instance with the primary key.
      Specified by:
      getCPInstance in interface CPInstanceLocalService
      Parameters:
      CPInstanceId - the primary key of the cp instance
      Returns:
      the cp instance
      Throws:
      PortalException - if a cp instance with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstance

      public CPInstance getCPInstance(long cpDefinitionId, String sku) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPInstance in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstanceByExternalReferenceCode

      public CPInstance getCPInstanceByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPInstanceByExternalReferenceCode in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstanceByUuidAndGroupId

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

      public List<CPInstance> getCPInstances(int start, int end)
      Returns a range of all the cp instances.

      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.CPInstanceModelImpl.

      Specified by:
      getCPInstances in interface CPInstanceLocalService
      Parameters:
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      Returns:
      the range of cp instances
    • getCPInstances

      public List<CPInstance> getCPInstances(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstances

      public List<CPInstance> getCPInstances(long companyId, String sku)
      Specified by:
      getCPInstances in interface CPInstanceLocalService
    • getCPInstances

      public List<CPInstance> getCPInstances(String replacementCPInstanceUuid, long replacementCProductId, int status)
      Specified by:
      getCPInstances in interface CPInstanceLocalService
    • getCPInstancesByUuidAndCompanyId

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

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

      public int getCPInstancesCount()
      Returns the number of cp instances.
      Specified by:
      getCPInstancesCount in interface CPInstanceLocalService
      Returns:
      the number of cp instances
    • getCPInstancesCount

      public int getCPInstancesCount(long groupId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPInstancesCount in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstancesCount

      public int getCPInstancesCount(String cpInstanceUuid)
      Specified by:
      getCPInstancesCount in interface CPInstanceLocalService
    • getCProductInstance

      public CPInstance getCProductInstance(long cProductId, String cpInstanceUuid) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCProductInstance in interface CPInstanceLocalService
      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 CPInstanceLocalService
    • getIndexableActionableDynamicQuery

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CPInstanceLocalService
      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 CPInstanceLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getSKUs

      public String[] getSKUs(long cpDefinitionId)
      Specified by:
      getSKUs in interface CPInstanceLocalService
    • inactivateCPDefinitionOptionRelCPInstances

      public void inactivateCPDefinitionOptionRelCPInstances(long userId, long cpDefinitionId, long cpDefinitionOptionRelId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      inactivateCPDefinitionOptionRelCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • inactivateCPDefinitionOptionValueRelCPInstances

      public void inactivateCPDefinitionOptionValueRelCPInstances(long userId, long cpDefinitionId, long cpDefinitionOptionValueRelId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      inactivateCPDefinitionOptionValueRelCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • inactivateIncompatibleCPInstances

      public void inactivateIncompatibleCPInstances(long userId, long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      inactivateIncompatibleCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
      Specified by:
      search in interface CPInstanceLocalService
    • searchCPDefinitionInstances

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPDefinitionInstances(long companyId, long cpDefinitionId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPDefinitionInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPDefinitionInstances

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPDefinitionInstances(long companyId, long cpDefinitionId, String keywords, int status, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPDefinitionInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPInstances

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

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(long companyId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPInstances

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(long companyId, String cpInstanceUuid, long cProductId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPInstances

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPInstances in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPInstancesCount

      public int searchCPInstancesCount(long companyId, String cpInstanceUuid, long cProductId, String keywords, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPInstancesCount in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPInstance

      public CPInstance updateCPInstance(CPInstance cpInstance)
      Updates the cp instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CPInstanceLocalServiceImpl 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:
      updateCPInstance in interface CPInstanceLocalService
      Parameters:
      cpInstance - the cp instance
      Returns:
      the cp instance that was updated
    • updateCPInstance

      public CPInstance updateCPInstance(String externalReferenceCode, long cpInstanceId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean overrideSubscriptionInfo, 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, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPInstance in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public CPInstance updateExternalReferenceCode(long cpInstanceId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateExternalReferenceCode in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updatePricingInfo

      public CPInstance updatePricingInfo(long cpInstanceId, BigDecimal price, BigDecimal promoPrice, BigDecimal cost, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updatePricingInfo in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateShippingInfo

      public CPInstance updateShippingInfo(long cpInstanceId, 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 CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public CPInstance updateStatus(long userId, long cpInstanceId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface CPInstanceLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSubscriptionInfo

      public CPInstance updateSubscriptionInfo(long cpInstanceId, boolean overrideSubscriptionInfo, 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 CPInstanceLocalService
      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<CPInstance> getCTPersistence()
      Specified by:
      getCTPersistence in interface CPInstanceLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPInstance>
    • getModelClass

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

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

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

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