@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
CommercePriceListLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
CommercePriceList |
addCatalogBaseCommercePriceList(long groupId,
long userId,
long commerceCurrencyId,
java.lang.String type,
java.lang.String name,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommercePriceList |
addCommerceCatalogBasePriceList(long groupId,
long userId,
long commerceCurrencyId,
java.lang.String type,
java.lang.String name,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Athanasius (7.3.x)
|
CommercePriceList |
addCommercePriceList(CommercePriceList commercePriceList)
Adds the commerce price list to the database.
|
CommercePriceList |
addCommercePriceList(java.lang.String externalReferenceCode,
long groupId,
long userId,
long commerceCurrencyId,
boolean netPrice,
java.lang.String type,
long parentCommercePriceListId,
boolean catalogBasePriceList,
java.lang.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) |
CommercePriceList |
addOrUpdateCommercePriceList(java.lang.String externalReferenceCode,
long groupId,
long userId,
long commercePriceListId,
long commerceCurrencyId,
boolean netPrice,
java.lang.String type,
long parentCommercePriceListId,
boolean catalogBasePriceList,
java.lang.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 |
checkCommercePriceLists() |
void |
cleanPriceListCache() |
CommercePriceList |
createCommercePriceList(long commercePriceListId)
Creates a new commerce price list with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
CommercePriceList |
deleteCommercePriceList(CommercePriceList commercePriceList)
Deletes the commerce price list from the database.
|
CommercePriceList |
deleteCommercePriceList(long commercePriceListId)
Deletes the commerce price list with the primary key 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 |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.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> java.util.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.
|
CommercePriceList |
fetchByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommercePriceList |
fetchCatalogBaseCommercePriceList(long groupId) |
CommercePriceList |
fetchCatalogBaseCommercePriceListByType(long groupId,
java.lang.String type) |
CommercePriceList |
fetchCommerceCatalogBasePriceList(long groupId)
Deprecated.
As of Athanasius (7.3.x)
|
CommercePriceList |
fetchCommerceCatalogBasePriceListByType(long groupId,
java.lang.String type)
Deprecated.
As of Athanasius (7.3.x)
|
CommercePriceList |
fetchCommercePriceList(long commercePriceListId) |
CommercePriceList |
fetchCommercePriceListByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommercePriceList |
fetchCommercePriceListByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the commerce price list matching the UUID and group.
|
CommercePriceList |
forceDeleteCommercePriceList(CommercePriceList commercePriceList) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
CommercePriceList |
getCatalogBaseCommercePriceList(long groupId) |
CommercePriceList |
getCatalogBaseCommercePriceListByType(long groupId,
java.lang.String type) |
CommercePriceList |
getCommerceCatalogBasePriceList(long groupId)
Deprecated.
As of Athanasius (7.3.x)
|
CommercePriceList |
getCommerceCatalogBasePriceListByType(long groupId,
java.lang.String type)
Deprecated.
As of Athanasius (7.3.x)
|
CommercePriceList |
getCommercePriceList(long commercePriceListId)
Returns the commerce price list with the primary key.
|
CommercePriceList |
getCommercePriceList(long groupId,
long commerceAccountId,
long[] commerceAccountGroupIds) |
CommercePriceList |
getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByAccountAndChannelId(long groupId,
long commerceAccountId,
long commerceChannelId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByAccountAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByAccountGroupIds(long groupId,
long[] commerceAccountGroupIds,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByAccountGroupsAndChannelId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByAccountId(long groupId,
long commerceAccountId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByChannelAndOrderTypeId(long groupId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByChannelId(long groupId,
long commerceChannelId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommercePriceList |
getCommercePriceListByLowestPrice(long groupId,
long commerceAccountId,
long[] commerceAccountGroupIds,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String cPInstanceUuid,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByOrderTypeId(long groupId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByUnqualified(long groupId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
CommercePriceList |
getCommercePriceListByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the commerce price list matching the UUID and group.
|
java.util.List<CommercePriceList> |
getCommercePriceLists(int start,
int end)
Returns a range of all the commerce price lists.
|
java.util.List<CommercePriceList> |
getCommercePriceLists(long[] groupIds,
long companyId,
int start,
int end) |
java.util.List<CommercePriceList> |
getCommercePriceLists(long[] groupIds,
long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) |
java.util.List<CommercePriceList> |
getCommercePriceLists(long companyId,
int start,
int end) |
java.util.List<CommercePriceList> |
getCommercePriceListsByAccountAndChannelAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByAccountAndChannelId(long groupId,
long commerceAccountId,
long commerceChannelId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByAccountAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceOrderTypeId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByAccountGroupIds(long groupId,
long[] commerceAccountGroupIds,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByAccountGroupsAndChannelId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByAccountGroupsAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceOrderTypeId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByAccountId(long groupId,
long commerceAccountId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByChannelAndOrderTypeId(long groupId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByChannelId(long groupId,
long commerceChannelId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByOrderTypeId(long groupId,
long commerceOrderTypeId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByUnqualified(long groupId,
java.lang.String type) |
java.util.List<CommercePriceList> |
getCommercePriceListsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the commerce price lists matching the UUID and company.
|
java.util.List<CommercePriceList> |
getCommercePriceListsByUuidAndCompanyId(java.lang.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 |
getCommercePriceListsCount()
Returns the number of commerce price lists.
|
int |
getCommercePriceListsCount(long[] groupIds,
long companyId,
int status) |
int |
getCommercePriceListsCount(long commercePricingClassId,
java.lang.String name) |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList> |
getCTPersistence() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<CommercePriceList> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext) |
java.util.List<CommercePriceList> |
searchByCommercePricingClassId(long commercePricingClassId,
java.lang.String name,
int start,
int end) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceList> |
searchCommercePriceLists(long companyId,
long[] groupIds,
java.lang.String keywords,
int status,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
int |
searchCommercePriceListsCount(long companyId,
long[] groupIds,
java.lang.String keywords,
int status) |
CommercePriceList |
setCatalogBasePriceList(long commercePriceListId,
boolean catalogBasePriceList) |
void |
setCatalogBasePriceList(long groupId,
long commercePriceListId,
java.lang.String type) |
CommercePriceList |
updateCommercePriceList(CommercePriceList commercePriceList)
Updates the commerce price list in the database or adds it if it does not yet exist.
|
CommercePriceList |
updateCommercePriceList(long commercePriceListId,
long commerceCurrencyId,
boolean netPrice,
long parentCommercePriceListId,
java.lang.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) |
CommercePriceList |
updateCommercePriceList(long commercePriceListId,
long commerceCurrencyId,
boolean netPrice,
java.lang.String type,
long parentCommercePriceListId,
boolean catalogBasePriceList,
java.lang.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 |
updateCommercePriceListCurrencies(long commerceCurrencyId) |
CommercePriceList |
updateExternalReferenceCode(CommercePriceList commercePriceList,
java.lang.String externalReferenceCode) |
CommercePriceList |
updateStatus(long userId,
long commercePriceListId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext) |
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList>,R,E> updateUnsafeFunction) |
CommercePriceList addCatalogBaseCommercePriceList(long groupId, long userId, long commerceCurrencyId, java.lang.String type, java.lang.String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated CommercePriceList addCommerceCatalogBasePriceList(long groupId, long userId, long commerceCurrencyId, java.lang.String type, java.lang.String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommercePriceList addCommercePriceList(CommercePriceList commercePriceList)
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.
commercePriceList
- the commerce price list@Indexable(type=REINDEX) CommercePriceList addCommercePriceList(java.lang.String externalReferenceCode, long groupId, long userId, long commerceCurrencyId, boolean netPrice, java.lang.String type, long parentCommercePriceListId, boolean catalogBasePriceList, java.lang.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
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommercePriceList addOrUpdateCommercePriceList(java.lang.String externalReferenceCode, long groupId, long userId, long commercePriceListId, long commerceCurrencyId, boolean netPrice, java.lang.String type, long parentCommercePriceListId, boolean catalogBasePriceList, java.lang.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
com.liferay.portal.kernel.exception.PortalException
void checkCommercePriceLists() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void cleanPriceListCache()
@Transactional(enabled=false) CommercePriceList createCommercePriceList(long commercePriceListId)
commercePriceListId
- the primary key for the new commerce price listcom.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) @SystemEvent(type=1) CommercePriceList deleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException
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.
commercePriceList
- the commerce price listcom.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) CommercePriceList deleteCommercePriceList(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException
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.
commercePriceListId
- the primary key of the commerce price listcom.liferay.portal.kernel.exception.PortalException
- if a commerce price list with the primary key could not be foundvoid deleteCommercePriceLists(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
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
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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
.
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 (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCatalogBaseCommercePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommerceCatalogBasePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommercePriceList(long commercePriceListId)
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommercePriceListByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList fetchCommercePriceListByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the commerce price list's UUIDgroupId
- the primary key of the groupnull
if a matching commerce price list could not be found@Indexable(type=DELETE) @SystemEvent(type=1) CommercePriceList forceDeleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCatalogBaseCommercePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommerceCatalogBasePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceList(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException
commercePriceListId
- the primary key of the commerce price listcom.liferay.portal.kernel.exception.PortalException
- if a commerce price list with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceList(long groupId, long commerceAccountId, long[] commerceAccountGroupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByAccountId(long groupId, long commerceAccountId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByChannelId(long groupId, long commerceChannelId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByLowestPrice(long groupId, long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, java.lang.String cPInstanceUuid, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByOrderTypeId(long groupId, long commerceOrderTypeId, java.lang.String type)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByUnqualified(long groupId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) CommercePriceList getCommercePriceListByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the commerce price list's UUIDgroupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
- if a matching commerce price list could not be found@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceLists(int start, int end)
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
.
start
- the lower bound of the range of commerce price listsend
- the upper bound of the range of commerce price lists (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceLists(long companyId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByAccountId(long groupId, long commerceAccountId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByChannelId(long groupId, long commerceChannelId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByOrderTypeId(long groupId, long commerceOrderTypeId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByUnqualified(long groupId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the commerce price listscompanyId
- the primary key of the company@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator)
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 (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) int getCommercePriceListsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommercePriceListsCount(long commercePricingClassId, java.lang.String name)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommercePriceListsCount(long[] groupIds, long companyId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommercePriceList> searchByCommercePricingClassId(long commercePricingClassId, java.lang.String name, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceList> searchCommercePriceLists(long companyId, long[] groupIds, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) int searchCommercePriceListsCount(long companyId, long[] groupIds, java.lang.String keywords, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommercePriceList setCatalogBasePriceList(long commercePriceListId, boolean catalogBasePriceList) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void setCatalogBasePriceList(long groupId, long commercePriceListId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommercePriceList updateCommercePriceList(CommercePriceList commercePriceList)
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.
commercePriceList
- the commerce price list@Indexable(type=REINDEX) CommercePriceList updateCommercePriceList(long commercePriceListId, long commerceCurrencyId, boolean netPrice, long parentCommercePriceListId, java.lang.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
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommercePriceList updateCommercePriceList(long commercePriceListId, long commerceCurrencyId, boolean netPrice, java.lang.String type, long parentCommercePriceListId, boolean catalogBasePriceList, java.lang.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
com.liferay.portal.kernel.exception.PortalException
void updateCommercePriceListCurrencies(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommercePriceList updateExternalReferenceCode(CommercePriceList commercePriceList, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommercePriceList updateStatus(long userId, long commercePriceListId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, java.util.Map<java.lang.String,java.io.Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList> getCTPersistence()
getCTPersistence
in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
@Transactional(enabled=false) java.lang.Class<CommercePriceList> getModelClass()
getModelClass
in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
E extends java.lang.Throwable