Class CommercePriceListLocalServiceUtil
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.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommercePriceList
addCatalogBaseCommercePriceList
(long groupId, long userId, String commerceCurrencyCode, String type, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommercePriceList
addCommercePriceList
(CommercePriceList commercePriceList) Adds the commerce price list to the database.static CommercePriceList
addCommercePriceList
(String externalReferenceCode, long groupId, long userId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommercePriceList
addOrUpdateCommercePriceList
(String externalReferenceCode, long groupId, long userId, long commercePriceListId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
static void
static CommercePriceList
createCommercePriceList
(long commercePriceListId) Creates a new commerce price list with the primary key.static com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) static CommercePriceList
deleteCommercePriceList
(long commercePriceListId) Deletes the commerce price list with the primary key from the database.static CommercePriceList
deleteCommercePriceList
(CommercePriceList commercePriceList) Deletes the commerce price list 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
static <T> 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> 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> 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
fetchCatalogBaseCommercePriceList
(long groupId) static CommercePriceList
fetchCatalogBaseCommercePriceListByType
(long groupId, String type) static CommercePriceList
fetchCommerceCatalogBasePriceList
(long groupId) Deprecated.As of Athanasius (7.3.x)static CommercePriceList
fetchCommerceCatalogBasePriceListByType
(long groupId, String type) Deprecated.As of Athanasius (7.3.x)static CommercePriceList
fetchCommercePriceList
(long commercePriceListId) static CommercePriceList
fetchCommercePriceListByExternalReferenceCode
(String externalReferenceCode, long companyId) static CommercePriceList
fetchCommercePriceListByUuidAndGroupId
(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
static CommercePriceList
getCatalogBaseCommercePriceList
(long groupId) static CommercePriceList
getCatalogBaseCommercePriceListByType
(long groupId, String type) static CommercePriceList
getCommerceCatalogBasePriceList
(long groupId) Deprecated.As of Athanasius (7.3.x)static CommercePriceList
getCommerceCatalogBasePriceListByType
(long groupId, 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, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByAccountAndChannelId
(long groupId, long commerceAccountId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByAccountAndOrderTypeId
(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByAccountGroupIds
(long groupId, long[] commerceAccountGroupIds, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByAccountGroupsAndChannelId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByAccountGroupsAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByAccountId
(long groupId, long commerceAccountId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByChannelAndOrderTypeId
(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByChannelId
(long groupId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByExternalReferenceCode
(String externalReferenceCode, long companyId) static CommercePriceList
getCommercePriceListByLowestPrice
(long groupId, long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String cPInstanceUuid, String type, String unitOfMeasureKey) static CommercePriceList
getCommercePriceListByOrderTypeId
(long groupId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByUnqualified
(long groupId, String type) Deprecated.As of Cavanaugh (7.4.x)static CommercePriceList
getCommercePriceListByUuidAndGroupId
(String uuid, long groupId) Returns the commerce price list matching the UUID and group.static List<CommercePriceList>
getCommercePriceLists
(int start, int end) Returns a range of all the commerce price lists.static List<CommercePriceList>
getCommercePriceLists
(long[] groupIds, long companyId, int start, int end) static List<CommercePriceList>
getCommercePriceLists
(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) static List<CommercePriceList>
getCommercePriceLists
(long companyId, int start, int end) static List<CommercePriceList>
getCommercePriceListsByAccountAndChannelAndOrderTypeId
(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) static List<CommercePriceList>
getCommercePriceListsByAccountAndChannelId
(long groupId, long commerceAccountId, long commerceChannelId, String type) static List<CommercePriceList>
getCommercePriceListsByAccountAndOrderTypeId
(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) static List<CommercePriceList>
getCommercePriceListsByAccountGroupIds
(long groupId, long[] commerceAccountGroupIds, String type) static List<CommercePriceList>
getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) static List<CommercePriceList>
getCommercePriceListsByAccountGroupsAndChannelId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) static List<CommercePriceList>
getCommercePriceListsByAccountGroupsAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) static List<CommercePriceList>
getCommercePriceListsByAccountId
(long groupId, long commerceAccountId, String type) static List<CommercePriceList>
getCommercePriceListsByChannelAndOrderTypeId
(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) static List<CommercePriceList>
getCommercePriceListsByChannelId
(long groupId, long commerceChannelId, String type) static List<CommercePriceList>
getCommercePriceListsByOrderTypeId
(long groupId, long commerceOrderTypeId, String type) static List<CommercePriceList>
getCommercePriceListsByUnqualified
(long groupId, String type) static List<CommercePriceList>
getCommercePriceListsByUuidAndCompanyId
(String uuid, long companyId) Returns all the commerce price lists matching the UUID and company.static List<CommercePriceList>
getCommercePriceListsByUuidAndCompanyId
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) Returns a range of commerce price lists matching the UUID and company.static int
Returns the number of commerce price lists.static int
getCommercePriceListsCount
(long[] groupIds, long companyId, int status) static int
getCommercePriceListsCount
(long commercePricingClassId, 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
static String
Returns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) static com.liferay.portal.kernel.search.Hits
search
(com.liferay.portal.kernel.search.SearchContext searchContext) static List<CommercePriceList>
searchByCommercePricingClassId
(long commercePricingClassId, String name, int start, int end) static com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceList>
searchCommercePriceLists
(long companyId, long[] groupIds, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) static int
searchCommercePriceListsCount
(long companyId, long[] groupIds, String keywords, int status) static CommercePriceList
setCatalogBasePriceList
(long commercePriceListId, boolean catalogBasePriceList) static void
setCatalogBasePriceList
(long groupId, long commercePriceListId, String type) static CommercePriceList
updateCommercePriceList
(long commercePriceListId, String commerceCurrencyCode, boolean netPrice, long parentCommercePriceListId, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommercePriceList
updateCommercePriceList
(long commercePriceListId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommercePriceList
updateCommercePriceList
(CommercePriceList commercePriceList) Updates the commerce price list in the database or adds it if it does not yet exist.static void
updateCommercePriceListCurrencies
(long companyId, String oldCommerceCurrencyCode, String newCommerceCurrencyCode) static CommercePriceList
updateExternalReferenceCode
(CommercePriceList commercePriceList, String externalReferenceCode) static CommercePriceList
updateStatus
(long userId, long commercePriceListId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext)
-
Constructor Details
-
CommercePriceListLocalServiceUtil
public CommercePriceListLocalServiceUtil()
-
-
Method Details
-
addCatalogBaseCommercePriceList
public static CommercePriceList addCatalogBaseCommercePriceList(long groupId, long userId, String commerceCurrencyCode, String type, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommercePriceList
Adds the commerce price list to the database. Also notifies the appropriate model listeners.Important: Inspect CommercePriceListLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
commercePriceList
- the commerce price list- Returns:
- the commerce price list that was added
-
addCommercePriceList
public static CommercePriceList addCommercePriceList(String externalReferenceCode, long groupId, long userId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommercePriceList
public static CommercePriceList addOrUpdateCommercePriceList(String externalReferenceCode, long groupId, long userId, long commercePriceListId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCommercePriceLists
public static void checkCommercePriceLists() throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
cleanPriceListCache
public static void cleanPriceListCache() -
createCommercePriceList
Creates a new commerce price list with the primary key. Does not add the commerce price list to the database.- Parameters:
commercePriceListId
- the primary key for the new commerce price list- Returns:
- the new commerce price list
-
createPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceList
public static CommercePriceList deleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce price list from the database. Also notifies the appropriate model listeners.Important: Inspect CommercePriceListLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
commercePriceList
- the commerce price list- Returns:
- the commerce price list that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceList
public static CommercePriceList deleteCommercePriceList(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce price list with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect CommercePriceListLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
commercePriceListId
- the primary key of the commerce price list- Returns:
- the commerce price list that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a commerce price list with the primary key could not be found
-
deleteCommercePriceLists
public static void deleteCommercePriceLists(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public static <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.price.list.model.impl.CommercePriceListModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public static <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.price.list.model.impl.CommercePriceListModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCatalogBaseCommercePriceList
public static CommercePriceList fetchCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCatalogBaseCommercePriceListByType
public static CommercePriceList fetchCatalogBaseCommercePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceCatalogBasePriceList
@Deprecated public static CommercePriceList fetchCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceCatalogBasePriceListByType
@Deprecated public static CommercePriceList fetchCommerceCatalogBasePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommercePriceList
-
fetchCommercePriceListByExternalReferenceCode
public static CommercePriceList fetchCommercePriceListByExternalReferenceCode(String externalReferenceCode, long companyId) -
fetchCommercePriceListByUuidAndGroupId
Returns the commerce price list matching the UUID and group.- Parameters:
uuid
- the commerce price list's UUIDgroupId
- the primary key of the group- Returns:
- the matching commerce price list, or
null
if a matching commerce price list could not be found
-
forceDeleteCommercePriceList
public static CommercePriceList forceDeleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getCatalogBaseCommercePriceList
public static CommercePriceList getCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCatalogBaseCommercePriceListByType
public static CommercePriceList getCatalogBaseCommercePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCatalogBasePriceList
@Deprecated public static CommercePriceList getCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCatalogBasePriceListByType
@Deprecated public static CommercePriceList getCommerceCatalogBasePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceList
public static CommercePriceList getCommercePriceList(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce price list with the primary key.- Parameters:
commercePriceListId
- the primary key of the commerce price list- Returns:
- the commerce price list
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a commerce price list with the primary key could not be found
-
getCommercePriceList
public static CommercePriceList getCommercePriceList(long groupId, long commerceAccountId, long[] commerceAccountGroupIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceListByAccountAndChannelAndOrderTypeId
@Deprecated public static CommercePriceList getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByAccountAndChannelId
@Deprecated public static CommercePriceList getCommercePriceListByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByAccountAndOrderTypeId
@Deprecated public static CommercePriceList getCommercePriceListByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByAccountGroupIds
@Deprecated public static CommercePriceList getCommercePriceListByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId
@Deprecated public static CommercePriceList getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByAccountGroupsAndChannelId
@Deprecated public static CommercePriceList getCommercePriceListByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByAccountGroupsAndOrderTypeId
@Deprecated public static CommercePriceList getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByAccountId
@Deprecated public static CommercePriceList getCommercePriceListByAccountId(long groupId, long commerceAccountId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByChannelAndOrderTypeId
@Deprecated public static CommercePriceList getCommercePriceListByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByChannelId
@Deprecated public static CommercePriceList getCommercePriceListByChannelId(long groupId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByExternalReferenceCode
public static CommercePriceList getCommercePriceListByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceListByLowestPrice
public static CommercePriceList getCommercePriceListByLowestPrice(long groupId, long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String cPInstanceUuid, String type, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceListByOrderTypeId
@Deprecated public static CommercePriceList getCommercePriceListByOrderTypeId(long groupId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByUnqualified
@Deprecated public static CommercePriceList getCommercePriceListByUnqualified(long groupId, String type) Deprecated.As of Cavanaugh (7.4.x) -
getCommercePriceListByUuidAndGroupId
public static CommercePriceList getCommercePriceListByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce price list matching the UUID and group.- Parameters:
uuid
- the commerce price list's UUIDgroupId
- the primary key of the group- Returns:
- the matching commerce price list
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a matching commerce price list could not be found
-
getCommercePriceLists
Returns a range of all the commerce price lists.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.price.list.model.impl.CommercePriceListModelImpl
.- Parameters:
start
- the lower bound of the range of commerce price listsend
- the upper bound of the range of commerce price lists (not inclusive)- Returns:
- the range of commerce price lists
-
getCommercePriceLists
-
getCommercePriceLists
public static List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int start, int end) -
getCommercePriceLists
public static List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) -
getCommercePriceListsByAccountAndChannelAndOrderTypeId
public static List<CommercePriceList> getCommercePriceListsByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) -
getCommercePriceListsByAccountAndChannelId
public static List<CommercePriceList> getCommercePriceListsByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, String type) -
getCommercePriceListsByAccountAndOrderTypeId
public static List<CommercePriceList> getCommercePriceListsByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) -
getCommercePriceListsByAccountGroupIds
public static List<CommercePriceList> getCommercePriceListsByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, String type) -
getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId
public static List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) -
getCommercePriceListsByAccountGroupsAndChannelId
public static List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) -
getCommercePriceListsByAccountGroupsAndOrderTypeId
public static List<CommercePriceList> getCommercePriceListsByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) -
getCommercePriceListsByAccountId
public static List<CommercePriceList> getCommercePriceListsByAccountId(long groupId, long commerceAccountId, String type) -
getCommercePriceListsByChannelAndOrderTypeId
public static List<CommercePriceList> getCommercePriceListsByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) -
getCommercePriceListsByChannelId
public static List<CommercePriceList> getCommercePriceListsByChannelId(long groupId, long commerceChannelId, String type) -
getCommercePriceListsByOrderTypeId
public static List<CommercePriceList> getCommercePriceListsByOrderTypeId(long groupId, long commerceOrderTypeId, String type) -
getCommercePriceListsByUnqualified
-
getCommercePriceListsByUuidAndCompanyId
public static List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(String uuid, long companyId) Returns all the commerce price lists matching the UUID and company.- Parameters:
uuid
- the UUID of the commerce price listscompanyId
- the primary key of the company- Returns:
- the matching commerce price lists, or an empty list if no matches were found
-
getCommercePriceListsByUuidAndCompanyId
public static List<CommercePriceList> getCommercePriceListsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) Returns a range of commerce price lists matching the UUID and company.- Parameters:
uuid
- the UUID of the commerce price listscompanyId
- the primary key of the companystart
- the lower bound of the range of commerce price listsend
- the upper bound of the range of commerce price lists (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the range of matching commerce price lists, or an empty list if no matches were found
-
getCommercePriceListsCount
public static int getCommercePriceListsCount()Returns the number of commerce price lists.- Returns:
- the number of commerce price lists
-
getCommercePriceListsCount
-
getCommercePriceListsCount
public static int getCommercePriceListsCount(long[] groupIds, long companyId, int status) -
getExportActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getIndexableActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext) -
searchByCommercePricingClassId
public static List<CommercePriceList> searchByCommercePricingClassId(long commercePricingClassId, String name, int start, int end) -
searchCommercePriceLists
public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceList> searchCommercePriceLists(long companyId, long[] groupIds, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommercePriceListsCount
public static int searchCommercePriceListsCount(long companyId, long[] groupIds, String keywords, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
setCatalogBasePriceList
public static CommercePriceList setCatalogBasePriceList(long commercePriceListId, boolean catalogBasePriceList) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
setCatalogBasePriceList
public static void setCatalogBasePriceList(long groupId, long commercePriceListId, String type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommercePriceList
Updates the commerce price list in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect CommercePriceListLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
commercePriceList
- the commerce price list- Returns:
- the commerce price list that was updated
-
updateCommercePriceList
public static CommercePriceList updateCommercePriceList(long commercePriceListId, String commerceCurrencyCode, boolean netPrice, long parentCommercePriceListId, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommercePriceList
public static CommercePriceList updateCommercePriceList(long commercePriceListId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommercePriceListCurrencies
public static void updateCommercePriceListCurrencies(long companyId, String oldCommerceCurrencyCode, String newCommerceCurrencyCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public static CommercePriceList updateExternalReferenceCode(CommercePriceList commercePriceList, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public static CommercePriceList updateStatus(long userId, long commercePriceListId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-