Class CPMeasurementUnitServiceWrapper
java.lang.Object
com.liferay.commerce.product.service.CPMeasurementUnitServiceWrapper
- All Implemented Interfaces:
CPMeasurementUnitService
,com.liferay.portal.kernel.service.BaseService
,com.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitService>
public class CPMeasurementUnitServiceWrapper
extends Object
implements CPMeasurementUnitService, com.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitService>
Provides a wrapper for
CPMeasurementUnitService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCPMeasurementUnitServiceWrapper
(CPMeasurementUnitService cpMeasurementUnitService) -
Method Summary
Modifier and TypeMethodDescriptionaddCPMeasurementUnit
(String externalReferenceCode, Map<Locale, String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
deleteCPMeasurementUnit
(long cpMeasurementUnitId) fetchCPMeasurementUnit
(long cpMeasurementUnitId) fetchCPMeasurementUnitByExternalReferenceCode
(long companyId, String externalReferenceCode) fetchCPMeasurementUnitByKey
(long companyId, String key) fetchPrimaryCPMeasurementUnit
(long companyId, int type) fetchPrimaryCPMeasurementUnitByType
(long companyId, int type) getCPMeasurementUnit
(long cpMeasurementUnitId) getCPMeasurementUnitByKey
(long companyId, String key) getCPMeasurementUnits
(long companyId) getCPMeasurementUnits
(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) getCPMeasurementUnits
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) getCPMeasurementUnitsByType
(long companyId, int type) getCPMeasurementUnitsByType
(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) int
getCPMeasurementUnitsCount
(long companyId) int
getCPMeasurementUnitsCount
(long companyId, int type) Returns the OSGi service identifier.setPrimary
(long cpMeasurementUnitId, boolean primary) void
setWrappedService
(CPMeasurementUnitService cpMeasurementUnitService) updateCPMeasurementUnit
(String externalReferenceCode, long cpMeasurementUnitId, Map<Locale, String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
CPMeasurementUnitServiceWrapper
public CPMeasurementUnitServiceWrapper() -
CPMeasurementUnitServiceWrapper
-
-
Method Details
-
addCPMeasurementUnit
public CPMeasurementUnit addCPMeasurementUnit(String externalReferenceCode, Map<Locale, String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
addCPMeasurementUnit
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCPMeasurementUnit
public void deleteCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCPMeasurementUnit
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCPMeasurementUnit
public CPMeasurementUnit fetchCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCPMeasurementUnit
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCPMeasurementUnitByExternalReferenceCode
public CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(long companyId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCPMeasurementUnitByExternalReferenceCode
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCPMeasurementUnitByKey
public CPMeasurementUnit fetchCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCPMeasurementUnitByKey
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchPrimaryCPMeasurementUnit
public CPMeasurementUnit fetchPrimaryCPMeasurementUnit(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchPrimaryCPMeasurementUnit
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchPrimaryCPMeasurementUnitByType
public CPMeasurementUnit fetchPrimaryCPMeasurementUnitByType(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchPrimaryCPMeasurementUnitByType
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnit
public CPMeasurementUnit getCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnit
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitByKey
public CPMeasurementUnit getCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitByKey
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnits
public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnits
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnits
public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnits
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnits
public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnits
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsByType
public List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitsByType
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsByType
public List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitsByType
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsCount
public int getCPMeasurementUnitsCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitsCount
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsCount
public int getCPMeasurementUnitsCount(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPMeasurementUnitsCount
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCPMeasurementUnitService
- Returns:
- the OSGi service identifier
-
setPrimary
public CPMeasurementUnit setPrimary(long cpMeasurementUnitId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setPrimary
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCPMeasurementUnit
public CPMeasurementUnit updateCPMeasurementUnit(String externalReferenceCode, long cpMeasurementUnitId, Map<Locale, String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
updateCPMeasurementUnit
in interfaceCPMeasurementUnitService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitService>
-