public class CPMeasurementUnitServiceUtil
extends java.lang.Object
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.CPMeasurementUnitService
Constructor and Description |
---|
CPMeasurementUnitServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CPMeasurementUnit |
addCPMeasurementUnit(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.lang.String key,
double rate,
boolean primary,
double priority,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
deleteCPMeasurementUnit(long cpMeasurementUnitId) |
static CPMeasurementUnit |
fetchPrimaryCPMeasurementUnit(long companyId,
int type) |
static CPMeasurementUnit |
getCPMeasurementUnit(long cpMeasurementUnitId) |
static java.util.List<CPMeasurementUnit> |
getCPMeasurementUnits(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) |
static java.util.List<CPMeasurementUnit> |
getCPMeasurementUnits(long companyId,
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 java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CPMeasurementUnitService |
getService() |
static CPMeasurementUnit |
setPrimary(long cpMeasurementUnitId,
boolean primary) |
static CPMeasurementUnit |
updateCPMeasurementUnit(long cpMeasurementUnitId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.lang.String key,
double rate,
boolean primary,
double priority,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static CPMeasurementUnit addCPMeasurementUnit(java.util.Map<java.util.Locale,java.lang.String> nameMap, java.lang.String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CPMeasurementUnit fetchPrimaryCPMeasurementUnit(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CPMeasurementUnit getCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.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
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCPMeasurementUnitsCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCPMeasurementUnitsCount(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static CPMeasurementUnit setPrimary(long cpMeasurementUnitId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CPMeasurementUnit updateCPMeasurementUnit(long cpMeasurementUnitId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.lang.String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CPMeasurementUnitService getService()