1
22
23 package com.liferay.portal.service;
24
25
26
46 public class RegionServiceUtil {
47 public static com.liferay.portal.model.Region addRegion(long countryId,
48 java.lang.String regionCode, java.lang.String name, boolean active)
49 throws com.liferay.portal.PortalException,
50 com.liferay.portal.SystemException, java.rmi.RemoteException {
51 return getService().addRegion(countryId, regionCode, name, active);
52 }
53
54 public static java.util.List<com.liferay.portal.model.Region> getRegions()
55 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
56 return getService().getRegions();
57 }
58
59 public static java.util.List<com.liferay.portal.model.Region> getRegions(
60 long countryId)
61 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
62 return getService().getRegions(countryId);
63 }
64
65 public static java.util.List<com.liferay.portal.model.Region> getRegions(
66 boolean active)
67 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return getService().getRegions(active);
69 }
70
71 public static java.util.List<com.liferay.portal.model.Region> getRegions(
72 long countryId, boolean active)
73 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
74 return getService().getRegions(countryId, active);
75 }
76
77 public static com.liferay.portal.model.Region getRegion(long regionId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException, java.rmi.RemoteException {
80 return getService().getRegion(regionId);
81 }
82
83 public static RegionService getService() {
84 if (_service == null) {
85 throw new RuntimeException("RegionService is not set");
86 }
87
88 return _service;
89 }
90
91 public void setService(RegionService service) {
92 _service = service;
93 }
94
95 private static RegionService _service;
96 }