Class CommercePriceListLocalServiceWrapper
- All Implemented Interfaces:
CommercePriceListLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<CommercePriceListLocalService>
CommercePriceListLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCommercePriceListLocalServiceWrapper
(CommercePriceListLocalService commercePriceListLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddCatalogBaseCommercePriceList
(long groupId, long userId, String commerceCurrencyCode, String type, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) addCommercePriceList
(CommercePriceList commercePriceList) Adds the commerce price list to the database.addCommercePriceList
(String externalReferenceCode, long groupId, long userId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) addOrUpdateCommercePriceList
(String externalReferenceCode, long groupId, long userId, long commercePriceListId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
void
createCommercePriceList
(long commercePriceListId) Creates a new commerce price list with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteCommercePriceList
(long commercePriceListId) Deletes the commerce price list with the primary key from the database.deleteCommercePriceList
(CommercePriceList commercePriceList) Deletes the commerce price list from the database.void
deleteCommercePriceLists
(long companyId) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.fetchCatalogBaseCommercePriceList
(long groupId) fetchCatalogBaseCommercePriceListByType
(long groupId, String type) fetchCommerceCatalogBasePriceList
(long groupId) Deprecated.As of Athanasius (7.3.x)fetchCommerceCatalogBasePriceListByType
(long groupId, String type) Deprecated.As of Athanasius (7.3.x)fetchCommercePriceList
(long commercePriceListId) fetchCommercePriceListByExternalReferenceCode
(String externalReferenceCode, long companyId) fetchCommercePriceListByUuidAndGroupId
(String uuid, long groupId) Returns the commerce price list matching the UUID and group.forceDeleteCommercePriceList
(CommercePriceList commercePriceList) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<?>
getCatalogBaseCommercePriceList
(long groupId) getCatalogBaseCommercePriceListByType
(long groupId, String type) getCommerceCatalogBasePriceList
(long groupId) Deprecated.As of Athanasius (7.3.x)getCommerceCatalogBasePriceListByType
(long groupId, String type) Deprecated.As of Athanasius (7.3.x)getCommercePriceList
(long commercePriceListId) Returns the commerce price list with the primary key.getCommercePriceList
(long groupId, long commerceAccountId, long[] commerceAccountGroupIds) getCommercePriceListByAccountAndChannelAndOrderTypeId
(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountAndChannelId
(long groupId, long commerceAccountId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountAndOrderTypeId
(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountGroupIds
(long groupId, long[] commerceAccountGroupIds, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountGroupsAndChannelId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountGroupsAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByAccountId
(long groupId, long commerceAccountId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByChannelAndOrderTypeId
(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByChannelId
(long groupId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByExternalReferenceCode
(String externalReferenceCode, long companyId) getCommercePriceListByLowestPrice
(long groupId, long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String cPInstanceUuid, String type, String unitOfMeasureKey) getCommercePriceListByOrderTypeId
(long groupId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByUnqualified
(long groupId, String type) Deprecated.As of Cavanaugh (7.4.x)getCommercePriceListByUuidAndGroupId
(String uuid, long groupId) Returns the commerce price list matching the UUID and group.getCommercePriceLists
(int start, int end) Returns a range of all the commerce price lists.getCommercePriceLists
(long[] groupIds, long companyId, int start, int end) getCommercePriceLists
(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) getCommercePriceLists
(long companyId, int start, int end) getCommercePriceListsByAccountAndChannelAndOrderTypeId
(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) getCommercePriceListsByAccountAndChannelId
(long groupId, long commerceAccountId, long commerceChannelId, String type) getCommercePriceListsByAccountAndOrderTypeId
(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) getCommercePriceListsByAccountGroupIds
(long groupId, long[] commerceAccountGroupIds, String type) getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) getCommercePriceListsByAccountGroupsAndChannelId
(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) getCommercePriceListsByAccountGroupsAndOrderTypeId
(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) getCommercePriceListsByAccountId
(long groupId, long commerceAccountId, String type) getCommercePriceListsByChannelAndOrderTypeId
(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) getCommercePriceListsByChannelId
(long groupId, long commerceChannelId, String type) getCommercePriceListsByOrderTypeId
(long groupId, long commerceOrderTypeId, String type) getCommercePriceListsByUnqualified
(long groupId, String type) getCommercePriceListsByUuidAndCompanyId
(String uuid, long companyId) Returns all the commerce price lists matching the UUID and company.getCommercePriceListsByUuidAndCompanyId
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) Returns a range of commerce price lists matching the UUID and company.int
Returns the number of commerce price lists.int
getCommercePriceListsCount
(long[] groupIds, long companyId, int status) int
getCommercePriceListsCount
(long commercePricingClassId, String name) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList>
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) com.liferay.portal.kernel.search.Hits
search
(com.liferay.portal.kernel.search.SearchContext searchContext) searchByCommercePricingClassId
(long commercePricingClassId, String name, int start, int end) com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceList>
searchCommercePriceLists
(long companyId, long[] groupIds, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) int
searchCommercePriceListsCount
(long companyId, long[] groupIds, String keywords, int status) setCatalogBasePriceList
(long commercePriceListId, boolean catalogBasePriceList) void
setCatalogBasePriceList
(long groupId, long commercePriceListId, String type) void
setWrappedService
(CommercePriceListLocalService commercePriceListLocalService) updateCommercePriceList
(long commercePriceListId, String commerceCurrencyCode, boolean netPrice, long parentCommercePriceListId, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommercePriceList
(long commercePriceListId, String commerceCurrencyCode, boolean netPrice, String type, long parentCommercePriceListId, boolean catalogBasePriceList, String name, double priority, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommercePriceList
(CommercePriceList commercePriceList) Updates the commerce price list in the database or adds it if it does not yet exist.void
updateCommercePriceListCurrencies
(long companyId, String oldCommerceCurrencyCode, String newCommerceCurrencyCode) updateExternalReferenceCode
(CommercePriceList commercePriceList, String externalReferenceCode) updateStatus
(long userId, long commercePriceListId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
CommercePriceListLocalServiceWrapper
public CommercePriceListLocalServiceWrapper() -
CommercePriceListLocalServiceWrapper
public CommercePriceListLocalServiceWrapper(CommercePriceListLocalService commercePriceListLocalService)
-
-
Method Details
-
addCatalogBaseCommercePriceList
public 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 - Specified by:
addCatalogBaseCommercePriceList
in interfaceCommercePriceListLocalService
- 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.
- Specified by:
addCommercePriceList
in interfaceCommercePriceListLocalService
- Parameters:
commercePriceList
- the commerce price list- Returns:
- the commerce price list that was added
-
addCommercePriceList
public 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 - Specified by:
addCommercePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommercePriceList
public 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 - Specified by:
addOrUpdateCommercePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCommercePriceLists
public void checkCommercePriceLists() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
checkCommercePriceLists
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
cleanPriceListCache
public void cleanPriceListCache()- Specified by:
cleanPriceListCache
in interfaceCommercePriceListLocalService
-
createCommercePriceList
Creates a new commerce price list with the primary key. Does not add the commerce price list to the database.- Specified by:
createCommercePriceList
in interfaceCommercePriceListLocalService
- Parameters:
commercePriceListId
- the primary key for the new commerce price list- Returns:
- the new commerce price list
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceCommercePriceListLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceList
public 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.
- Specified by:
deleteCommercePriceList
in interfaceCommercePriceListLocalService
- Parameters:
commercePriceList
- the commerce price list- Returns:
- the commerce price list that was removed
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceList
public 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.
- Specified by:
deleteCommercePriceList
in interfaceCommercePriceListLocalService
- Parameters:
commercePriceListId
- the primary key of the commerce price list- Returns:
- the commerce price list that was removed
- Throws:
PortalException
- if a commerce price list with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceLists
public void deleteCommercePriceLists(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommercePriceLists
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfaceCommercePriceListLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceCommercePriceListLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceCommercePriceListLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCommercePriceListLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceCommercePriceListLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <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
.- Specified by:
dynamicQuery
in interfaceCommercePriceListLocalService
- 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 <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
.- Specified by:
dynamicQuery
in interfaceCommercePriceListLocalService
- 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 long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceCommercePriceListLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceCommercePriceListLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCatalogBaseCommercePriceList
public CommercePriceList fetchCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCatalogBaseCommercePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCatalogBaseCommercePriceListByType
public CommercePriceList fetchCatalogBaseCommercePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCatalogBaseCommercePriceListByType
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceCatalogBasePriceList
@Deprecated public CommercePriceList fetchCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Specified by:
fetchCommerceCatalogBasePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceCatalogBasePriceListByType
@Deprecated public CommercePriceList fetchCommerceCatalogBasePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Specified by:
fetchCommerceCatalogBasePriceListByType
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommercePriceList
- Specified by:
fetchCommercePriceList
in interfaceCommercePriceListLocalService
-
fetchCommercePriceListByExternalReferenceCode
public CommercePriceList fetchCommercePriceListByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCommercePriceListByExternalReferenceCode
in interfaceCommercePriceListLocalService
-
fetchCommercePriceListByUuidAndGroupId
Returns the commerce price list matching the UUID and group.- Specified by:
fetchCommercePriceListByUuidAndGroupId
in interfaceCommercePriceListLocalService
- 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 CommercePriceList forceDeleteCommercePriceList(CommercePriceList commercePriceList) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
forceDeleteCommercePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCommercePriceListLocalService
-
getCatalogBaseCommercePriceList
public CommercePriceList getCatalogBaseCommercePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCatalogBaseCommercePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCatalogBaseCommercePriceListByType
public CommercePriceList getCatalogBaseCommercePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCatalogBaseCommercePriceListByType
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCatalogBasePriceList
@Deprecated public CommercePriceList getCommerceCatalogBasePriceList(long groupId) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Specified by:
getCommerceCatalogBasePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCatalogBasePriceListByType
@Deprecated public CommercePriceList getCommerceCatalogBasePriceListByType(long groupId, String type) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Specified by:
getCommerceCatalogBasePriceListByType
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceList
public CommercePriceList getCommercePriceList(long commercePriceListId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce price list with the primary key.- Specified by:
getCommercePriceList
in interfaceCommercePriceListLocalService
- Parameters:
commercePriceListId
- the primary key of the commerce price list- Returns:
- the commerce price list
- Throws:
PortalException
- if a commerce price list with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommercePriceList
public CommercePriceList getCommercePriceList(long groupId, long commerceAccountId, long[] commerceAccountGroupIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommercePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceListByAccountAndChannelAndOrderTypeId
@Deprecated public CommercePriceList getCommercePriceListByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByAccountAndChannelAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByAccountAndChannelId
@Deprecated public CommercePriceList getCommercePriceListByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByAccountAndChannelId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByAccountAndOrderTypeId
@Deprecated public CommercePriceList getCommercePriceListByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByAccountAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByAccountGroupIds
@Deprecated public CommercePriceList getCommercePriceListByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByAccountGroupIds
in interfaceCommercePriceListLocalService
-
getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId
@Deprecated public CommercePriceList getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByAccountGroupsAndChannelAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByAccountGroupsAndChannelId
@Deprecated public CommercePriceList getCommercePriceListByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByAccountGroupsAndChannelId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByAccountGroupsAndOrderTypeId
@Deprecated public CommercePriceList getCommercePriceListByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByAccountGroupsAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByAccountId
@Deprecated public CommercePriceList getCommercePriceListByAccountId(long groupId, long commerceAccountId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByAccountId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByChannelAndOrderTypeId
@Deprecated public CommercePriceList getCommercePriceListByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByChannelAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByChannelId
@Deprecated public CommercePriceList getCommercePriceListByChannelId(long groupId, long commerceChannelId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByChannelId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByExternalReferenceCode
public CommercePriceList getCommercePriceListByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommercePriceListByExternalReferenceCode
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceListByLowestPrice
public 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 - Specified by:
getCommercePriceListByLowestPrice
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceListByOrderTypeId
@Deprecated public CommercePriceList getCommercePriceListByOrderTypeId(long groupId, long commerceOrderTypeId, String type) Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListByUnqualified
Deprecated.As of Cavanaugh (7.4.x)- Specified by:
getCommercePriceListByUnqualified
in interfaceCommercePriceListLocalService
-
getCommercePriceListByUuidAndGroupId
public CommercePriceList getCommercePriceListByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce price list matching the UUID and group.- Specified by:
getCommercePriceListByUuidAndGroupId
in interfaceCommercePriceListLocalService
- Parameters:
uuid
- the commerce price list's UUIDgroupId
- the primary key of the group- Returns:
- the matching commerce price list
- Throws:
PortalException
- if a matching commerce price list could not be foundcom.liferay.portal.kernel.exception.PortalException
-
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
.- Specified by:
getCommercePriceLists
in interfaceCommercePriceListLocalService
- 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
- Specified by:
getCommercePriceLists
in interfaceCommercePriceListLocalService
-
getCommercePriceLists
public List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int start, int end) - Specified by:
getCommercePriceLists
in interfaceCommercePriceListLocalService
-
getCommercePriceLists
public List<CommercePriceList> getCommercePriceLists(long[] groupIds, long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceList> orderByComparator) - Specified by:
getCommercePriceLists
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByAccountAndChannelAndOrderTypeId
public List<CommercePriceList> getCommercePriceListsByAccountAndChannelAndOrderTypeId(long groupId, long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String type) - Specified by:
getCommercePriceListsByAccountAndChannelAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByAccountAndChannelId
public List<CommercePriceList> getCommercePriceListsByAccountAndChannelId(long groupId, long commerceAccountId, long commerceChannelId, String type) - Specified by:
getCommercePriceListsByAccountAndChannelId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByAccountAndOrderTypeId
public List<CommercePriceList> getCommercePriceListsByAccountAndOrderTypeId(long groupId, long commerceAccountId, long commerceOrderTypeId, String type) - Specified by:
getCommercePriceListsByAccountAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByAccountGroupIds
public List<CommercePriceList> getCommercePriceListsByAccountGroupIds(long groupId, long[] commerceAccountGroupIds, String type) - Specified by:
getCommercePriceListsByAccountGroupIds
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId
public List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String type) - Specified by:
getCommercePriceListsByAccountGroupsAndChannelAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByAccountGroupsAndChannelId
public List<CommercePriceList> getCommercePriceListsByAccountGroupsAndChannelId(long groupId, long[] commerceAccountGroupIds, long commerceChannelId, String type) - Specified by:
getCommercePriceListsByAccountGroupsAndChannelId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByAccountGroupsAndOrderTypeId
public List<CommercePriceList> getCommercePriceListsByAccountGroupsAndOrderTypeId(long groupId, long[] commerceAccountGroupIds, long commerceOrderTypeId, String type) - Specified by:
getCommercePriceListsByAccountGroupsAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByAccountId
public List<CommercePriceList> getCommercePriceListsByAccountId(long groupId, long commerceAccountId, String type) - Specified by:
getCommercePriceListsByAccountId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByChannelAndOrderTypeId
public List<CommercePriceList> getCommercePriceListsByChannelAndOrderTypeId(long groupId, long commerceChannelId, long commerceOrderTypeId, String type) - Specified by:
getCommercePriceListsByChannelAndOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByChannelId
public List<CommercePriceList> getCommercePriceListsByChannelId(long groupId, long commerceChannelId, String type) - Specified by:
getCommercePriceListsByChannelId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByOrderTypeId
public List<CommercePriceList> getCommercePriceListsByOrderTypeId(long groupId, long commerceOrderTypeId, String type) - Specified by:
getCommercePriceListsByOrderTypeId
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByUnqualified
- Specified by:
getCommercePriceListsByUnqualified
in interfaceCommercePriceListLocalService
-
getCommercePriceListsByUuidAndCompanyId
Returns all the commerce price lists matching the UUID and company.- Specified by:
getCommercePriceListsByUuidAndCompanyId
in interfaceCommercePriceListLocalService
- 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 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.- Specified by:
getCommercePriceListsByUuidAndCompanyId
in interfaceCommercePriceListLocalService
- 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 int getCommercePriceListsCount()Returns the number of commerce price lists.- Specified by:
getCommercePriceListsCount
in interfaceCommercePriceListLocalService
- Returns:
- the number of commerce price lists
-
getCommercePriceListsCount
- Specified by:
getCommercePriceListsCount
in interfaceCommercePriceListLocalService
-
getCommercePriceListsCount
public int getCommercePriceListsCount(long[] groupIds, long companyId, int status) - Specified by:
getCommercePriceListsCount
in interfaceCommercePriceListLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceCommercePriceListLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCommercePriceListLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCommercePriceListLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceCommercePriceListLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext) - Specified by:
search
in interfaceCommercePriceListLocalService
-
searchByCommercePricingClassId
public List<CommercePriceList> searchByCommercePricingClassId(long commercePricingClassId, String name, int start, int end) - Specified by:
searchByCommercePricingClassId
in interfaceCommercePriceListLocalService
-
searchCommercePriceLists
public 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 - Specified by:
searchCommercePriceLists
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommercePriceListsCount
public int searchCommercePriceListsCount(long companyId, long[] groupIds, String keywords, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCommercePriceListsCount
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
setCatalogBasePriceList
public CommercePriceList setCatalogBasePriceList(long commercePriceListId, boolean catalogBasePriceList) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setCatalogBasePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
setCatalogBasePriceList
public void setCatalogBasePriceList(long groupId, long commercePriceListId, String type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setCatalogBasePriceList
in interfaceCommercePriceListLocalService
- 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.
- Specified by:
updateCommercePriceList
in interfaceCommercePriceListLocalService
- Parameters:
commercePriceList
- the commerce price list- Returns:
- the commerce price list that was updated
-
updateCommercePriceList
public 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 - Specified by:
updateCommercePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommercePriceList
public 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 - Specified by:
updateCommercePriceList
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommercePriceListCurrencies
public void updateCommercePriceListCurrencies(long companyId, String oldCommerceCurrencyCode, String newCommerceCurrencyCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommercePriceListCurrencies
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public CommercePriceList updateExternalReferenceCode(CommercePriceList commercePriceList, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateExternalReferenceCode
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public 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- Specified by:
updateStatus
in interfaceCommercePriceListLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList> getCTPersistence()- Specified by:
getCTPersistence
in interfaceCommercePriceListLocalService
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
-
getModelClass
- Specified by:
getModelClass
in interfaceCommercePriceListLocalService
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceList>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCommercePriceListLocalService
- Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CommercePriceList>
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommercePriceListLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommercePriceListLocalService>
-