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
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionaddCatalogBaseCommercePriceList
(long groupId, long userId, String commerceCurrencyCode, String type, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) addCommercePriceList
(CommercePriceList commercePriceList) Adds the commerce price list to the database.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) 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) void
void
createCommercePriceList
(long commercePriceListId) Creates a new commerce price list with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteCommercePriceList
(long commercePriceListId) Deletes the commerce price list with the primary key from the database.deleteCommercePriceList
(CommercePriceList commercePriceList) Deletes the commerce price list from the database.void
deleteCommercePriceLists
(long companyId) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<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.<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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.fetchCatalogBaseCommercePriceList
(long groupId) fetchCatalogBaseCommercePriceListByType
(long groupId, String type) fetchCommerceCatalogBasePriceList
(long groupId) Deprecated.As of Athanasius (7.3.x)fetchCommerceCatalogBasePriceListByType
(long groupId, String type) Deprecated.As of Athanasius (7.3.x)fetchCommercePriceList
(long commercePriceListId) fetchCommercePriceListByExternalReferenceCode
(String externalReferenceCode, long companyId) fetchCommercePriceListByUuidAndGroupId
(String uuid, long groupId) Returns the commerce price list matching the UUID and group.forceDeleteCommercePriceList
(CommercePriceList commercePriceList) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
getCatalogBaseCommercePriceList
(long groupId) getCatalogBaseCommercePriceListByType
(long groupId, String type) getCommerceCatalogBasePriceList
(long groupId) Deprecated.As of Athanasius (7.3.x)getCommerceCatalogBasePriceListByType
(long groupId, String type) Deprecated.As of Athanasius (7.3.x)getCommercePriceList
(long commercePriceListId) Returns the commerce price list with the primary key.getCommercePriceList
(long groupId, long commerceAccountId, long[] commerceAccountGroupIds) getCommercePriceListByAccountAndChannelAndOrderTypeId
(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountAndChannelId
(long groupId, long commerceAccountId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountAndOrderTypeId
(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountGroupIds
(long groupId, long[] commerceAccountGroupIds, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountGroupsAndChannelId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountGroupsAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountId
(long groupId, long commerceAccountId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByChannelAndOrderTypeId
(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByChannelId
(long groupId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByExternalReferenceCode
(String externalReferenceCode, long companyId) getCommercePriceListByLowestPrice
(long groupId, long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String cPInstanceUuid, String type, String unitOfMeasureKey) getCommercePriceListByOrderTypeId
(long groupId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByUnqualified
(long groupId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByUuidAndGroupId
(String uuid, long groupId) Returns the commerce price list matching the UUID and group.getCommercePriceLists
(int start, int end) Returns a range of all the commerce price lists.getCommercePriceLists
(long[] groupIds, long companyId, int start, int end) getCommercePriceLists
(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) getCommercePriceLists
(long companyId, int start, int end) getCommercePriceListsByAccountAndChannelAndOrderTypeId
(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) getCommercePriceListsByAccountAndChannelId
(long groupId, long commerceAccountId, long commerceChannelId, String type) getCommercePriceListsByAccountAndOrderTypeId
(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) getCommercePriceListsByAccountGroupIds
(long groupId, long[] commerceAccountGroupIds, String type) getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) getCommercePriceListsByAccountGroupsAndChannelId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) getCommercePriceListsByAccountGroupsAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) getCommercePriceListsByAccountId
(long groupId, long commerceAccountId, String type) getCommercePriceListsByChannelAndOrderTypeId
(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) getCommercePriceListsByChannelId
(long groupId, long commerceChannelId, String type) getCommercePriceListsByOrderTypeId
(long groupId, long commerceOrderTypeId, String type) getCommercePriceListsByUnqualified
(long groupId, String type) getCommercePriceListsByUuidAndCompanyId
(String uuid, long companyId) Returns all the commerce price lists matching the UUID and company.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.int
Returns the number of commerce price lists.int
getCommercePriceListsCount
(long[] groupIds, long companyId, int status) int
getCommercePriceListsCount
(long commercePricingClassId, String name) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList>
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) com.liferay.portal.kernel.search.Hits
search
(com.liferay.portal.kernel.search.SearchContext searchContext) searchByCommercePricingClassId
(long commercePricingClassId, String name, int start, int end) 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) int
searchCommercePriceListsCount
(long companyId, long[] groupIds, String keywords, int status) setCatalogBasePriceList
(long commercePriceListId, boolean catalogBasePriceList) void
setCatalogBasePriceList
(long groupId, long commercePriceListId, String type) 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) 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) updateCommercePriceList
(CommercePriceList commercePriceList) Updates the commerce price list in the database or adds it if it does not yet exist.void
updateCommercePriceListCurrencies
(long companyId, String oldCommerceCurrencyCode, String newCommerceCurrencyCode) updateExternalReferenceCode
(CommercePriceList commercePriceList, String externalReferenceCode) updateStatus
(long userId, long commercePriceListId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
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
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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.price.list.model.impl.CommercePriceListModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.price.list.model.impl.CommercePriceListModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 queryprojection
- 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 UUIDgroupId
- 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 UUIDgroupId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.price.list.model.impl.CommercePriceListModelImpl
.- Parameters:
start
- the lower bound of the range of commerce price listsend
- 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 listscompanyId
- 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 listscompanyId
- the primary key of the companystart
- the lower bound of the range of commerce price listsend
- the upper bound of the range of commerce price lists (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 interfacecom.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 interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
-
getModelClass
- Specified by:
getModelClass
in interfacecom.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, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
- Throws:
E extends Throwable
-