public class CommercePriceListLocalServiceUtil
extends java.lang.Object
com.liferay.commerce.price.list.service.impl.CommercePriceListLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.CommercePriceListLocalService
Constructor and Description |
---|
CommercePriceListLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommercePriceList |
addCatalogBaseCommercePriceList(long groupId,
long userId,
long commerceCurrencyId,
java.lang.String type,
java.lang.String name,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static 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)
|
static CommercePriceList |
addCommercePriceList(CommercePriceList commercePriceList)
Adds the commerce price list to the database.
|
static 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) |
static 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) |
static void |
checkCommercePriceLists() |
static void |
cleanPriceListCache() |
static CommercePriceList |
createCommercePriceList(long commercePriceListId)
Creates a new commerce price list with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static CommercePriceList |
deleteCommercePriceList(CommercePriceList commercePriceList)
Deletes the commerce price list from the database.
|
static CommercePriceList |
deleteCommercePriceList(long commercePriceListId)
Deletes the commerce price list with the primary key from the database.
|
static void |
deleteCommercePriceLists(long companyId) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <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.
|
static <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.
|
static <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.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static 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.
|
static CommercePriceList |
fetchByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
static CommercePriceList |
fetchCatalogBaseCommercePriceList(long groupId) |
static CommercePriceList |
fetchCatalogBaseCommercePriceListByType(long groupId,
java.lang.String type) |
static CommercePriceList |
fetchCommerceCatalogBasePriceList(long groupId)
Deprecated.
As of Athanasius (7.3.x)
|
static CommercePriceList |
fetchCommerceCatalogBasePriceListByType(long groupId,
java.lang.String type)
Deprecated.
As of Athanasius (7.3.x)
|
static CommercePriceList |
fetchCommercePriceList(long commercePriceListId) |
static CommercePriceList |
fetchCommercePriceListByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
static CommercePriceList |
fetchCommercePriceListByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the commerce price list matching the UUID and group.
|
static CommercePriceList |
forceDeleteCommercePriceList(CommercePriceList commercePriceList) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static CommercePriceList |
getCatalogBaseCommercePriceList(long groupId) |
static CommercePriceList |
getCatalogBaseCommercePriceListByType(long groupId,
java.lang.String type) |
static CommercePriceList |
getCommerceCatalogBasePriceList(long groupId)
Deprecated.
As of Athanasius (7.3.x)
|
static CommercePriceList |
getCommerceCatalogBasePriceListByType(long groupId,
java.lang.String type)
Deprecated.
As of Athanasius (7.3.x)
|
static CommercePriceList |
getCommercePriceList(long commercePriceListId)
Returns the commerce price list with the primary key.
|
static CommercePriceList |
getCommercePriceList(long groupId,
long commerceAccountId,
long[] commerceAccountGroupIds) |
static CommercePriceList |
getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByAccountAndChannelId(long groupId,
long commerceAccountId,
long commerceChannelId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByAccountAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByAccountGroupIds(long groupId,
long[] commerceAccountGroupIds,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByAccountGroupsAndChannelId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByAccountId(long groupId,
long commerceAccountId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByChannelAndOrderTypeId(long groupId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByChannelId(long groupId,
long commerceChannelId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
static CommercePriceList |
getCommercePriceListByLowestPrice(long groupId,
long commerceAccountId,
long[] commerceAccountGroupIds,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String cPInstanceUuid,
java.lang.String type) |
static CommercePriceList |
getCommercePriceListByOrderTypeId(long groupId,
long commerceOrderTypeId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByUnqualified(long groupId,
java.lang.String type)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommercePriceList |
getCommercePriceListByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the commerce price list matching the UUID and group.
|
static java.util.List<CommercePriceList> |
getCommercePriceLists(int start,
int end)
Returns a range of all the commerce price lists.
|
static java.util.List<CommercePriceList> |
getCommercePriceLists(long[] groupIds,
long companyId,
int start,
int end) |
static java.util.List<CommercePriceList> |
getCommercePriceLists(long[] groupIds,
long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) |
static java.util.List<CommercePriceList> |
getCommercePriceLists(long companyId,
int start,
int end) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByAccountAndChannelAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByAccountAndChannelId(long groupId,
long commerceAccountId,
long commerceChannelId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByAccountAndOrderTypeId(long groupId,
long commerceAccountId,
long commerceOrderTypeId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByAccountGroupIds(long groupId,
long[] commerceAccountGroupIds,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByAccountGroupsAndChannelId(long groupId,
long[] commerceAccountGroupIds,
long commerceChannelId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByAccountGroupsAndOrderTypeId(long groupId,
long[] commerceAccountGroupIds,
long commerceOrderTypeId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByAccountId(long groupId,
long commerceAccountId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByChannelAndOrderTypeId(long groupId,
long commerceChannelId,
long commerceOrderTypeId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByChannelId(long groupId,
long commerceChannelId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByOrderTypeId(long groupId,
long commerceOrderTypeId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByUnqualified(long groupId,
java.lang.String type) |
static java.util.List<CommercePriceList> |
getCommercePriceListsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the commerce price lists matching the UUID and company.
|
static 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.
|
static int |
getCommercePriceListsCount()
Returns the number of commerce price lists.
|
static int |
getCommercePriceListsCount(long[] groupIds,
long companyId,
int status) |
static int |
getCommercePriceListsCount(long commercePricingClassId,
java.lang.String name) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static CommercePriceListLocalService |
getService() |
static com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext) |
static java.util.List<CommercePriceList> |
searchByCommercePricingClassId(long commercePricingClassId,
java.lang.String name,
int start,
int end) |
static 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) |
static int |
searchCommercePriceListsCount(long companyId,
long[] groupIds,
java.lang.String keywords,
int status) |
static CommercePriceList |
setCatalogBasePriceList(long commercePriceListId,
boolean catalogBasePriceList) |
static void |
setCatalogBasePriceList(long groupId,
long commercePriceListId,
java.lang.String type) |
static void |
setService(CommercePriceListLocalService service) |
static CommercePriceList |
updateCommercePriceList(CommercePriceList commercePriceList)
Updates the commerce price list in the database or adds it if it does not yet exist.
|
static 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) |
static 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) |
static void |
updateCommercePriceListCurrencies(long commerceCurrencyId) |
static CommercePriceList |
updateExternalReferenceCode(CommercePriceList commercePriceList,
java.lang.String externalReferenceCode) |
static 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 static 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 public static 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
public static 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 listpublic static 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
public static 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
public static void checkCommercePriceLists() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void cleanPriceListCache()
public static CommercePriceList createCommercePriceList(long commercePriceListId)
commercePriceListId
- the primary key for the new commerce price listpublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static 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
public static 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 foundpublic static void deleteCommercePriceLists(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <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)public static <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
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static 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 querypublic static CommercePriceList fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
public static CommercePriceList fetchCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommercePriceList fetchCatalogBaseCommercePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommercePriceList fetchCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommercePriceList fetchCommerceCatalogBasePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommercePriceList fetchCommercePriceList(long commercePriceListId)
public static CommercePriceList fetchCommercePriceListByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
public static 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 foundpublic static CommercePriceList forceDeleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static CommercePriceList getCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommercePriceList getCatalogBaseCommercePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommercePriceList getCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommercePriceList getCommerceCatalogBasePriceListByType(long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static 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 foundpublic static CommercePriceList getCommercePriceList(long groupId, long commerceAccountId, long[] commerceAccountGroupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommercePriceList getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByAccountId(long groupId, long commerceAccountId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByChannelId(long groupId, long commerceChannelId, java.lang.String type)
public static CommercePriceList getCommercePriceListByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static 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 public static CommercePriceList getCommercePriceListByOrderTypeId(long groupId, long commerceOrderTypeId, java.lang.String type)
@Deprecated public static CommercePriceList getCommercePriceListByUnqualified(long groupId, java.lang.String type)
public static 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 foundpublic static 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)public static java.util.List<CommercePriceList> getCommercePriceLists(long companyId, int start, int end)
public static java.util.List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int start, int end)
public static java.util.List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator)
public static java.util.List<CommercePriceList> getCommercePriceListsByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByAccountId(long groupId, long commerceAccountId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByChannelId(long groupId, long commerceChannelId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByOrderTypeId(long groupId, long commerceOrderTypeId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByUnqualified(long groupId, java.lang.String type)
public static java.util.List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the commerce price listscompanyId
- the primary key of the companypublic static 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
)public static int getCommercePriceListsCount()
public static int getCommercePriceListsCount(long commercePricingClassId, java.lang.String name)
public static int getCommercePriceListsCount(long[] groupIds, long companyId, int status)
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
public static java.util.List<CommercePriceList> searchByCommercePricingClassId(long commercePricingClassId, java.lang.String name, int start, int end)
public static 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
public static 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
public static CommercePriceList setCatalogBasePriceList(long commercePriceListId, boolean catalogBasePriceList) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void setCatalogBasePriceList(long groupId, long commercePriceListId, java.lang.String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static 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 listpublic static 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
public static 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
public static void updateCommercePriceListCurrencies(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommercePriceList updateExternalReferenceCode(CommercePriceList commercePriceList, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static 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
public static CommercePriceListLocalService getService()
public static void setService(CommercePriceListLocalService service)