public class CommerceRegionServiceUtil
extends java.lang.Object
com.liferay.commerce.service.impl.CommerceRegionServiceImpl 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.CommerceRegionService| Constructor and Description |
|---|
CommerceRegionServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static CommerceRegion |
addCommerceRegion(long commerceCountryId,
java.lang.String name,
java.lang.String code,
double priority,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
deleteCommerceRegion(long commerceRegionId) |
static CommerceRegion |
getCommerceRegion(long commerceRegionId) |
static java.util.List<CommerceRegion> |
getCommerceRegions(long commerceCountryId,
boolean active) |
static java.util.List<CommerceRegion> |
getCommerceRegions(long commerceCountryId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) |
static java.util.List<CommerceRegion> |
getCommerceRegions(long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) |
static java.util.List<CommerceRegion> |
getCommerceRegions(long companyId,
java.lang.String countryTwoLettersISOCode,
boolean active) |
static int |
getCommerceRegionsCount(long commerceCountryId) |
static int |
getCommerceRegionsCount(long commerceCountryId,
boolean active) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CommerceRegionService |
getService() |
static CommerceRegion |
setActive(long commerceRegionId,
boolean active) |
static CommerceRegion |
updateCommerceRegion(long commerceRegionId,
java.lang.String name,
java.lang.String code,
double priority,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static CommerceRegion addCommerceRegion(long commerceCountryId, java.lang.String name, java.lang.String code, double priority, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void deleteCommerceRegion(long commerceRegionId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceRegion getCommerceRegion(long commerceRegionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.util.List<CommerceRegion> getCommerceRegions(long commerceCountryId, boolean active)
public static java.util.List<CommerceRegion> getCommerceRegions(long commerceCountryId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.util.List<CommerceRegion> getCommerceRegions(long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.util.List<CommerceRegion> getCommerceRegions(long companyId, java.lang.String countryTwoLettersISOCode, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static int getCommerceRegionsCount(long commerceCountryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static int getCommerceRegionsCount(long commerceCountryId,
boolean active)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getOSGiServiceIdentifier()
public static CommerceRegion setActive(long commerceRegionId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceRegion updateCommerceRegion(long commerceRegionId, java.lang.String name, java.lang.String code, double priority, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceRegionService getService()