1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class RegionServiceUtil {
40 public static com.liferay.portal.model.Region addRegion(long countryId,
41 java.lang.String regionCode, java.lang.String name, boolean active)
42 throws com.liferay.portal.kernel.exception.PortalException,
43 com.liferay.portal.kernel.exception.SystemException {
44 return getService().addRegion(countryId, regionCode, name, active);
45 }
46
47 public static java.util.List<com.liferay.portal.model.Region> getRegions()
48 throws com.liferay.portal.kernel.exception.SystemException {
49 return getService().getRegions();
50 }
51
52 public static java.util.List<com.liferay.portal.model.Region> getRegions(
53 long countryId)
54 throws com.liferay.portal.kernel.exception.SystemException {
55 return getService().getRegions(countryId);
56 }
57
58 public static java.util.List<com.liferay.portal.model.Region> getRegions(
59 boolean active)
60 throws com.liferay.portal.kernel.exception.SystemException {
61 return getService().getRegions(active);
62 }
63
64 public static java.util.List<com.liferay.portal.model.Region> getRegions(
65 long countryId, boolean active)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().getRegions(countryId, active);
68 }
69
70 public static com.liferay.portal.model.Region getRegion(long regionId)
71 throws com.liferay.portal.kernel.exception.PortalException,
72 com.liferay.portal.kernel.exception.SystemException {
73 return getService().getRegion(regionId);
74 }
75
76 public static RegionService getService() {
77 if (_service == null) {
78 _service = (RegionService)PortalBeanLocatorUtil.locate(RegionService.class.getName());
79 }
80
81 return _service;
82 }
83
84 public void setService(RegionService service) {
85 _service = service;
86 }
87
88 private static RegionService _service;
89 }