public class CommercePriceListLocalServiceWrapper extends java.lang.Object implements CommercePriceListLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommercePriceListLocalService>
CommercePriceListLocalService
.CommercePriceListLocalService
Constructor and Description |
---|
CommercePriceListLocalServiceWrapper() |
CommercePriceListLocalServiceWrapper(CommercePriceListLocalService commercePriceListLocalService) |
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(long companyId) |
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(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce price list with the matching external reference code and company.
|
CommercePriceList |
fetchCommercePriceListByReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchCommercePriceListByExternalReferenceCode(long, String) |
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.
|
java.util.Optional<CommercePriceList> |
getCommercePriceList(long companyId,
long groupId,
long commerceAccountId,
long[] commerceAccountGroupIds) |
CommercePriceList |
getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByAccountAndChannelId(long groupId,
long commerceAccountId,
long commerceChannelId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByAccountAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceOrderTypeId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByAccountGroupAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceOrderTypeId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByAccountGroupIds(long groupId,
long[] commerceAccountGroupIds,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByAccountGroupsAndChannelId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceOrderTypeId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByAccountId(long groupId,
long commerceAccountId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByChannelAndOrderTypeId(long groupId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByChannelId(long groupId,
long commerceChannelId,
java.lang.String type) |
CommercePriceList |
getCommercePriceListByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce price list with the matching external reference code and company.
|
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) |
CommercePriceList |
getCommercePriceListByUnqualified(long groupId,
java.lang.String type) |
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> |
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.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
CommercePriceListLocalService |
getWrappedService() |
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) |
void |
setWrappedService(CommercePriceListLocalService commercePriceListLocalService) |
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) |
public CommercePriceListLocalServiceWrapper()
public CommercePriceListLocalServiceWrapper(CommercePriceListLocalService commercePriceListLocalService)
public 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
addCatalogBaseCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public 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
addCommerceCatalogBasePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public 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.
addCommercePriceList
in interface CommercePriceListLocalService
commercePriceList
- the commerce price listpublic 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
addCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public 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
addOrUpdateCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public void checkCommercePriceLists() throws com.liferay.portal.kernel.exception.PortalException
checkCommercePriceLists
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public void cleanPriceListCache(long companyId)
cleanPriceListCache
in interface CommercePriceListLocalService
public CommercePriceList createCommercePriceList(long commercePriceListId)
createCommercePriceList
in interface CommercePriceListLocalService
commercePriceListId
- the primary key for the new commerce price listpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface CommercePriceListLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public 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.
deleteCommercePriceList
in interface CommercePriceListLocalService
commercePriceList
- the commerce price listPortalException
public 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.
deleteCommercePriceList
in interface CommercePriceListLocalService
commercePriceListId
- the primary key of the commerce price listPortalException
- if a commerce price list with the primary key could not be foundpublic void deleteCommercePriceLists(long companyId) throws com.liferay.portal.kernel.exception.PortalException
deleteCommercePriceLists
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface CommercePriceListLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface CommercePriceListLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface CommercePriceListLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface CommercePriceListLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface CommercePriceListLocalService
dynamicQuery
- the dynamic querypublic <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
in interface CommercePriceListLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <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
in interface CommercePriceListLocalService
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
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface CommercePriceListLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface CommercePriceListLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic CommercePriceList fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
fetchByExternalReferenceCode
in interface CommercePriceListLocalService
public CommercePriceList fetchCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
fetchCatalogBaseCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceList fetchCatalogBaseCommercePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
fetchCatalogBaseCommercePriceListByType
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public CommercePriceList fetchCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
fetchCommerceCatalogBasePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public CommercePriceList fetchCommerceCatalogBasePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
fetchCommerceCatalogBasePriceListByType
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceList fetchCommercePriceList(long commercePriceListId)
fetchCommercePriceList
in interface CommercePriceListLocalService
public CommercePriceList fetchCommercePriceListByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCommercePriceListByExternalReferenceCode
in interface CommercePriceListLocalService
companyId
- the primary key of the companyexternalReferenceCode
- the commerce price list's external reference codenull
if a matching commerce price list could not be found@Deprecated public CommercePriceList fetchCommercePriceListByReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCommercePriceListByExternalReferenceCode(long, String)
fetchCommercePriceListByReferenceCode
in interface CommercePriceListLocalService
public CommercePriceList fetchCommercePriceListByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchCommercePriceListByUuidAndGroupId
in interface CommercePriceListLocalService
uuid
- the commerce price list's UUIDgroupId
- the primary key of the groupnull
if a matching commerce price list could not be foundpublic CommercePriceList forceDeleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException
forceDeleteCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface CommercePriceListLocalService
public CommercePriceList getCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
getCatalogBaseCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceList getCatalogBaseCommercePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
getCatalogBaseCommercePriceListByType
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public CommercePriceList getCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceCatalogBasePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public CommercePriceList getCommerceCatalogBasePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
getCommerceCatalogBasePriceListByType
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceList getCommercePriceList(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException
getCommercePriceList
in interface CommercePriceListLocalService
commercePriceListId
- the primary key of the commerce price listPortalException
- if a commerce price list with the primary key could not be foundpublic java.util.Optional<CommercePriceList> getCommercePriceList(long companyId, long groupId, long commerceAccountId, long[] commerceAccountGroupIds) throws com.liferay.portal.kernel.exception.PortalException
getCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceList getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
getCommercePriceListByAccountAndChannelAndOrderTypeId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, java.lang.String type)
getCommercePriceListByAccountAndChannelId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, java.lang.String type)
getCommercePriceListByAccountAndOrderTypeId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByAccountGroupAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, java.lang.String type)
getCommercePriceListByAccountGroupAndOrderTypeId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, java.lang.String type)
getCommercePriceListByAccountGroupIds
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, java.lang.String type)
getCommercePriceListByAccountGroupsAndChannelId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, java.lang.String type)
getCommercePriceListByAccountGroupsAndOrderTypeId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByAccountId(long groupId, long commerceAccountId, java.lang.String type)
getCommercePriceListByAccountId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
getCommercePriceListByChannelAndOrderTypeId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByChannelId(long groupId, long commerceChannelId, java.lang.String type)
getCommercePriceListByChannelId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
getCommercePriceListByExternalReferenceCode
in interface CommercePriceListLocalService
companyId
- the primary key of the companyexternalReferenceCode
- the commerce price list's external reference codePortalException
- if a matching commerce price list could not be foundpublic 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
getCommercePriceListByLowestPrice
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceList getCommercePriceListByOrderTypeId(long groupId, long commerceOrderTypeId, java.lang.String type)
getCommercePriceListByOrderTypeId
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByUnqualified(long groupId, java.lang.String type)
getCommercePriceListByUnqualified
in interface CommercePriceListLocalService
public CommercePriceList getCommercePriceListByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getCommercePriceListByUuidAndGroupId
in interface CommercePriceListLocalService
uuid
- the commerce price list's UUIDgroupId
- the primary key of the groupPortalException
- if a matching commerce price list could not be foundpublic 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
.
getCommercePriceLists
in interface CommercePriceListLocalService
start
- the lower bound of the range of commerce price listsend
- the upper bound of the range of commerce price lists (not inclusive)public java.util.List<CommercePriceList> getCommercePriceLists(long companyId, int start, int end)
getCommercePriceLists
in interface CommercePriceListLocalService
public java.util.List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int start, int end)
getCommercePriceLists
in interface CommercePriceListLocalService
public java.util.List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator)
getCommercePriceLists
in interface CommercePriceListLocalService
public java.util.List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(java.lang.String uuid, long companyId)
getCommercePriceListsByUuidAndCompanyId
in interface CommercePriceListLocalService
uuid
- the UUID of the commerce price listscompanyId
- the primary key of the companypublic java.util.List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator)
getCommercePriceListsByUuidAndCompanyId
in interface CommercePriceListLocalService
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
)public int getCommercePriceListsCount()
getCommercePriceListsCount
in interface CommercePriceListLocalService
public int getCommercePriceListsCount(long commercePricingClassId, java.lang.String name)
getCommercePriceListsCount
in interface CommercePriceListLocalService
public int getCommercePriceListsCount(long[] groupIds, long companyId, int status)
getCommercePriceListsCount
in interface CommercePriceListLocalService
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface CommercePriceListLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface CommercePriceListLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface CommercePriceListLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface CommercePriceListLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
search
in interface CommercePriceListLocalService
public java.util.List<CommercePriceList> searchByCommercePricingClassId(long commercePricingClassId, java.lang.String name, int start, int end)
searchByCommercePricingClassId
in interface CommercePriceListLocalService
public 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
searchCommercePriceLists
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public int searchCommercePriceListsCount(long companyId, long[] groupIds, java.lang.String keywords, int status) throws com.liferay.portal.kernel.exception.PortalException
searchCommercePriceListsCount
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceList setCatalogBasePriceList(long commercePriceListId, boolean catalogBasePriceList) throws com.liferay.portal.kernel.exception.PortalException
setCatalogBasePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public void setCatalogBasePriceList(long groupId, long commercePriceListId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
setCatalogBasePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public 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.
updateCommercePriceList
in interface CommercePriceListLocalService
commercePriceList
- the commerce price listpublic 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
updateCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public 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
updateCommercePriceList
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public void updateCommercePriceListCurrencies(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
updateCommercePriceListCurrencies
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceList updateExternalReferenceCode(CommercePriceList commercePriceList, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
updateExternalReferenceCode
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public 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
updateStatus
in interface CommercePriceListLocalService
com.liferay.portal.kernel.exception.PortalException
public CommercePriceListLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommercePriceListLocalService>
public void setWrappedService(CommercePriceListLocalService commercePriceListLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommercePriceListLocalService>