001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class RegionServiceUtil {
037 public static com.liferay.portal.model.Region addRegion(long countryId,
038 java.lang.String regionCode, java.lang.String name, boolean active)
039 throws com.liferay.portal.kernel.exception.PortalException,
040 com.liferay.portal.kernel.exception.SystemException {
041 return getService().addRegion(countryId, regionCode, name, active);
042 }
043
044 public static java.util.List<com.liferay.portal.model.Region> getRegions()
045 throws com.liferay.portal.kernel.exception.SystemException {
046 return getService().getRegions();
047 }
048
049 public static java.util.List<com.liferay.portal.model.Region> getRegions(
050 long countryId)
051 throws com.liferay.portal.kernel.exception.SystemException {
052 return getService().getRegions(countryId);
053 }
054
055 public static java.util.List<com.liferay.portal.model.Region> getRegions(
056 boolean active)
057 throws com.liferay.portal.kernel.exception.SystemException {
058 return getService().getRegions(active);
059 }
060
061 public static java.util.List<com.liferay.portal.model.Region> getRegions(
062 long countryId, boolean active)
063 throws com.liferay.portal.kernel.exception.SystemException {
064 return getService().getRegions(countryId, active);
065 }
066
067 public static com.liferay.portal.model.Region getRegion(long regionId)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService().getRegion(regionId);
071 }
072
073 public static RegionService getService() {
074 if (_service == null) {
075 _service = (RegionService)PortalBeanLocatorUtil.locate(RegionService.class.getName());
076 }
077
078 return _service;
079 }
080
081 public void setService(RegionService service) {
082 _service = service;
083 }
084
085 private static RegionService _service;
086 }