1
22
23 package com.liferay.portal.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27 import com.liferay.portal.service.CountryServiceUtil;
28
29 import java.rmi.RemoteException;
30
31
81 public class CountryServiceSoap {
82 public static com.liferay.portal.model.CountrySoap addCountry(
83 java.lang.String name, java.lang.String a2, java.lang.String a3,
84 java.lang.String number, java.lang.String idd, boolean active)
85 throws RemoteException {
86 try {
87 com.liferay.portal.model.Country returnValue = CountryServiceUtil.addCountry(name,
88 a2, a3, number, idd, active);
89
90 return com.liferay.portal.model.CountrySoap.toSoapModel(returnValue);
91 }
92 catch (Exception e) {
93 _log.error(e, e);
94
95 throw new RemoteException(e.getMessage());
96 }
97 }
98
99 public static com.liferay.portal.model.CountrySoap[] getCountries()
100 throws RemoteException {
101 try {
102 java.util.List<com.liferay.portal.model.Country> returnValue = CountryServiceUtil.getCountries();
103
104 return com.liferay.portal.model.CountrySoap.toSoapModels(returnValue);
105 }
106 catch (Exception e) {
107 _log.error(e, e);
108
109 throw new RemoteException(e.getMessage());
110 }
111 }
112
113 public static com.liferay.portal.model.CountrySoap[] getCountries(
114 boolean active) throws RemoteException {
115 try {
116 java.util.List<com.liferay.portal.model.Country> returnValue = CountryServiceUtil.getCountries(active);
117
118 return com.liferay.portal.model.CountrySoap.toSoapModels(returnValue);
119 }
120 catch (Exception e) {
121 _log.error(e, e);
122
123 throw new RemoteException(e.getMessage());
124 }
125 }
126
127 public static com.liferay.portal.model.CountrySoap getCountry(
128 long countryId) throws RemoteException {
129 try {
130 com.liferay.portal.model.Country returnValue = CountryServiceUtil.getCountry(countryId);
131
132 return com.liferay.portal.model.CountrySoap.toSoapModel(returnValue);
133 }
134 catch (Exception e) {
135 _log.error(e, e);
136
137 throw new RemoteException(e.getMessage());
138 }
139 }
140
141 public static com.liferay.portal.model.CountrySoap getCountryByA2(
142 java.lang.String a2) throws RemoteException {
143 try {
144 com.liferay.portal.model.Country returnValue = CountryServiceUtil.getCountryByA2(a2);
145
146 return com.liferay.portal.model.CountrySoap.toSoapModel(returnValue);
147 }
148 catch (Exception e) {
149 _log.error(e, e);
150
151 throw new RemoteException(e.getMessage());
152 }
153 }
154
155 public static com.liferay.portal.model.CountrySoap getCountryByA3(
156 java.lang.String a3) throws RemoteException {
157 try {
158 com.liferay.portal.model.Country returnValue = CountryServiceUtil.getCountryByA3(a3);
159
160 return com.liferay.portal.model.CountrySoap.toSoapModel(returnValue);
161 }
162 catch (Exception e) {
163 _log.error(e, e);
164
165 throw new RemoteException(e.getMessage());
166 }
167 }
168
169 public static com.liferay.portal.model.CountrySoap getCountryByName(
170 java.lang.String name) throws RemoteException {
171 try {
172 com.liferay.portal.model.Country returnValue = CountryServiceUtil.getCountryByName(name);
173
174 return com.liferay.portal.model.CountrySoap.toSoapModel(returnValue);
175 }
176 catch (Exception e) {
177 _log.error(e, e);
178
179 throw new RemoteException(e.getMessage());
180 }
181 }
182
183 private static Log _log = LogFactoryUtil.getLog(CountryServiceSoap.class);
184 }