Interface CommercePriceListLocalService

All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>, com.liferay.portal.kernel.service.PersistedModelLocalService
All Known Implementing Classes:
CommercePriceListLocalServiceWrapper

@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface CommercePriceListLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for CommercePriceList. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
See Also:
Generated:
  • Method Details

    • addCatalogBaseCommercePriceList

      CommercePriceList addCatalogBaseCommercePriceList(long groupId, long userId, String commerceCurrencyCode, String type, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommercePriceList

      @Indexable(type=REINDEX) CommercePriceList addCommercePriceList(CommercePriceList commercePriceList)
      Adds the commerce price list to the database. Also notifies the appropriate model listeners.

      Important: Inspect CommercePriceListLocalServiceImpl 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.

      Parameters:
      commercePriceList - the commerce price list
      Returns:
      the commerce price list that was added
    • addCommercePriceList

      @Indexable(type=REINDEX) CommercePriceList addCommercePriceList(String externalReferenceCode, long groupId, long userId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCommercePriceList

      @Indexable(type=REINDEX) CommercePriceList addOrUpdateCommercePriceList(String externalReferenceCode, long groupId, long userId, long commercePriceListId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkCommercePriceLists

      void checkCommercePriceLists() throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • cleanPriceListCache

      void cleanPriceListCache()
    • createCommercePriceList

      @Transactional(enabled=false) CommercePriceList createCommercePriceList(long commercePriceListId)
      Creates a new commerce price list with the primary key. Does not add the commerce price list to the database.
      Parameters:
      commercePriceListId - the primary key for the new commerce price list
      Returns:
      the new commerce price list
    • createPersistedModel

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

      @Indexable(type=DELETE) @SystemEvent(type=1) CommercePriceList deleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce price list from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommercePriceListLocalServiceImpl 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.

      Parameters:
      commercePriceList - the commerce price list
      Returns:
      the commerce price list that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommercePriceList

      @Indexable(type=DELETE) CommercePriceList deleteCommercePriceList(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce price list with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommercePriceListLocalServiceImpl 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.

      Parameters:
      commercePriceListId - the primary key of the commerce price list
      Returns:
      the commerce price list that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a commerce price list with the primary key could not be found
    • deleteCommercePriceLists

      void deleteCommercePriceLists(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      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 com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <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.price.list.model.impl.CommercePriceListModelImpl.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) <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.price.list.model.impl.CommercePriceListModelImpl.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) 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.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCatalogBaseCommercePriceList

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCatalogBaseCommercePriceListByType

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCatalogBaseCommercePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceCatalogBasePriceList

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceCatalogBasePriceListByType

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommerceCatalogBasePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommercePriceList

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommercePriceList(long commercePriceListId)
    • fetchCommercePriceListByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommercePriceListByExternalReferenceCode(String externalReferenceCode, long companyId)
    • fetchCommercePriceListByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommercePriceListByUuidAndGroupId(String uuid, long groupId)
      Returns the commerce price list matching the UUID and group.
      Parameters:
      uuid - the commerce price list's UUID
      groupId - the primary key of the group
      Returns:
      the matching commerce price list, or null if a matching commerce price list could not be found
    • forceDeleteCommercePriceList

      @Indexable(type=DELETE) @SystemEvent(type=1) CommercePriceList forceDeleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getCatalogBaseCommercePriceList

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCatalogBaseCommercePriceListByType

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCatalogBaseCommercePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCatalogBasePriceList

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCatalogBasePriceListByType

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommerceCatalogBasePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePriceList

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceList(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce price list with the primary key.
      Parameters:
      commercePriceListId - the primary key of the commerce price list
      Returns:
      the commerce price list
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a commerce price list with the primary key could not be found
    • getCommercePriceList

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceList(long groupId, long commerceAccountId, long[] commerceAccountGroupIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePriceListByAccountAndChannelAndOrderTypeId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByAccountAndChannelId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByAccountAndOrderTypeId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByAccountGroupIds

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByAccountGroupsAndChannelId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByAccountGroupsAndOrderTypeId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByAccountId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountId(long groupId, long commerceAccountId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByChannelAndOrderTypeId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByChannelId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByChannelId(long groupId, long commerceChannelId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePriceListByLowestPrice

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByLowestPrice(long groupId, long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String cPInstanceUuid, String type, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePriceListByOrderTypeId

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByOrderTypeId(long groupId, long commerceOrderTypeId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByUnqualified

      @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByUnqualified(long groupId, String type)
      Deprecated.
      As of Cavanaugh (7.4.x)
    • getCommercePriceListByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce price list matching the UUID and group.
      Parameters:
      uuid - the commerce price list's UUID
      groupId - the primary key of the group
      Returns:
      the matching commerce price list
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching commerce price list could not be found
    • getCommercePriceLists

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceLists(int start, int end)
      Returns a range of all the commerce price lists.

      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.price.list.model.impl.CommercePriceListModelImpl.

      Parameters:
      start - the lower bound of the range of commerce price lists
      end - the upper bound of the range of commerce price lists (not inclusive)
      Returns:
      the range of commerce price lists
    • getCommercePriceLists

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceLists(long companyId, int start, int end)
    • getCommercePriceLists

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int start, int end)
    • getCommercePriceLists

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator)
    • getCommercePriceListsByAccountAndChannelAndOrderTypeId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type)
    • getCommercePriceListsByAccountAndChannelId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, String type)
    • getCommercePriceListsByAccountAndOrderTypeId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, String type)
    • getCommercePriceListsByAccountGroupIds

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, String type)
    • getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type)
    • getCommercePriceListsByAccountGroupsAndChannelId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type)
    • getCommercePriceListsByAccountGroupsAndOrderTypeId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type)
    • getCommercePriceListsByAccountId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByAccountId(long groupId, long commerceAccountId, String type)
    • getCommercePriceListsByChannelAndOrderTypeId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, String type)
    • getCommercePriceListsByChannelId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByChannelId(long groupId, long commerceChannelId, String type)
    • getCommercePriceListsByOrderTypeId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByOrderTypeId(long groupId, long commerceOrderTypeId, String type)
    • getCommercePriceListsByUnqualified

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByUnqualified(long groupId, String type)
    • getCommercePriceListsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the commerce price lists matching the UUID and company.
      Parameters:
      uuid - the UUID of the commerce price lists
      companyId - the primary key of the company
      Returns:
      the matching commerce price lists, or an empty list if no matches were found
    • getCommercePriceListsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator)
      Returns a range of commerce price lists matching the UUID and company.
      Parameters:
      uuid - the UUID of the commerce price lists
      companyId - the primary key of the company
      start - the lower bound of the range of commerce price lists
      end - the upper bound of the range of commerce price lists (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching commerce price lists, or an empty list if no matches were found
    • getCommercePriceListsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommercePriceListsCount()
      Returns the number of commerce price lists.
      Returns:
      the number of commerce price lists
    • getCommercePriceListsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommercePriceListsCount(long commercePricingClassId, String name)
    • getCommercePriceListsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommercePriceListsCount(long[] groupIds, long companyId, int status)
    • getExportActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
    • searchByCommercePricingClassId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommercePriceList> searchByCommercePricingClassId(long commercePricingClassId, String name, int start, int end)
    • searchCommercePriceLists

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceList> searchCommercePriceLists(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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCommercePriceListsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int searchCommercePriceListsCount(long companyId, long[] groupIds, String keywords, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setCatalogBasePriceList

      @Indexable(type=REINDEX) CommercePriceList setCatalogBasePriceList(long commercePriceListId, boolean catalogBasePriceList) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setCatalogBasePriceList

      void setCatalogBasePriceList(long groupId, long commercePriceListId, String type) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommercePriceList

      @Indexable(type=REINDEX) CommercePriceList updateCommercePriceList(CommercePriceList commercePriceList)
      Updates the commerce price list in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CommercePriceListLocalServiceImpl 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.

      Parameters:
      commercePriceList - the commerce price list
      Returns:
      the commerce price list that was updated
    • updateCommercePriceList

      @Indexable(type=REINDEX) CommercePriceList updateCommercePriceList(long commercePriceListId, String commerceCurrencyCode, boolean netPrice, long parentCommercePriceListId, String name, double priority, 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommercePriceList

      @Indexable(type=REINDEX) CommercePriceList updateCommercePriceList(long commercePriceListId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommercePriceListCurrencies

      void updateCommercePriceListCurrencies(long companyId, String oldCommerceCurrencyCode, String newCommerceCurrencyCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      @Indexable(type=REINDEX) CommercePriceList updateExternalReferenceCode(CommercePriceList commercePriceList, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      @Indexable(type=REINDEX) CommercePriceList updateStatus(long userId, long commercePriceListId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCTPersistence

      @Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
    • getModelClass

      @Transactional(enabled=false) Class<CommercePriceList> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
    • updateWithUnsafeFunction

      @Transactional(rollbackFor=java.lang.Throwable.class) <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
      Throws:
      E extends Throwable