Class CPMeasurementUnitServiceUtil
java.lang.Object
com.liferay.commerce.product.service.CPMeasurementUnitServiceUtil
Provides the remote service utility for CPMeasurementUnit. This utility wraps
com.liferay.commerce.product.service.impl.CPMeasurementUnitServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) static void
deleteCPMeasurementUnit
(long cpMeasurementUnitId) static CPMeasurementUnit
fetchCPMeasurementUnit
(long cpMeasurementUnitId) static CPMeasurementUnit
fetchCPMeasurementUnitByExternalReferenceCode
(long companyId, String externalReferenceCode) static CPMeasurementUnit
fetchCPMeasurementUnitByKey
(long companyId, String key) static CPMeasurementUnit
fetchPrimaryCPMeasurementUnit
(long companyId, int type) static CPMeasurementUnit
fetchPrimaryCPMeasurementUnitByType
(long companyId, int type) static CPMeasurementUnit
getCPMeasurementUnit
(long cpMeasurementUnitId) static CPMeasurementUnit
getCPMeasurementUnitByKey
(long companyId, String key) static List<CPMeasurementUnit>
getCPMeasurementUnits
(long companyId) static List<CPMeasurementUnit>
getCPMeasurementUnits
(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) static List<CPMeasurementUnit>
getCPMeasurementUnits
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) static List<CPMeasurementUnit>
getCPMeasurementUnitsByType
(long companyId, int type) static List<CPMeasurementUnit>
getCPMeasurementUnitsByType
(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) static int
getCPMeasurementUnitsCount
(long companyId) static int
getCPMeasurementUnitsCount
(long companyId, int type) static String
Returns the OSGi service identifier.static CPMeasurementUnitService
static CPMeasurementUnit
setPrimary
(long cpMeasurementUnitId, boolean primary) static 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)
-
Constructor Details
-
CPMeasurementUnitServiceUtil
public CPMeasurementUnitServiceUtil()
-
-
Method Details
-
addCPMeasurementUnit
public static 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- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCPMeasurementUnit
public static void deleteCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCPMeasurementUnit
public static CPMeasurementUnit fetchCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCPMeasurementUnitByExternalReferenceCode
public static CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(long companyId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCPMeasurementUnitByKey
public static CPMeasurementUnit fetchCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchPrimaryCPMeasurementUnit
public static CPMeasurementUnit fetchPrimaryCPMeasurementUnit(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchPrimaryCPMeasurementUnitByType
public static CPMeasurementUnit fetchPrimaryCPMeasurementUnitByType(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnit
public static CPMeasurementUnit getCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitByKey
public static CPMeasurementUnit getCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnits
public static List<CPMeasurementUnit> getCPMeasurementUnits(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnits
public static 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnits
public static List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsByType
public static List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsByType
public static 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsCount
public static int getCPMeasurementUnitsCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPMeasurementUnitsCount
public static int getCPMeasurementUnitsCount(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
setPrimary
public static CPMeasurementUnit setPrimary(long cpMeasurementUnitId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCPMeasurementUnit
public static 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- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-