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.CompanyServiceUtil;
28
29 import java.rmi.RemoteException;
30
31
82 public class CompanyServiceSoap {
83 public static com.liferay.portal.model.CompanySoap addCompany(
84 java.lang.String webId, java.lang.String virtualHost,
85 java.lang.String mx) throws RemoteException {
86 try {
87 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.addCompany(webId,
88 virtualHost, mx);
89
90 return com.liferay.portal.model.CompanySoap.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.CompanySoap getCompanyById(
100 long companyId) throws RemoteException {
101 try {
102 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.getCompanyById(companyId);
103
104 return com.liferay.portal.model.CompanySoap.toSoapModel(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.CompanySoap getCompanyByLogoId(
114 long logoId) throws RemoteException {
115 try {
116 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.getCompanyByLogoId(logoId);
117
118 return com.liferay.portal.model.CompanySoap.toSoapModel(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.CompanySoap getCompanyByMx(
128 java.lang.String mx) throws RemoteException {
129 try {
130 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.getCompanyByMx(mx);
131
132 return com.liferay.portal.model.CompanySoap.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.CompanySoap getCompanyByVirtualHost(
142 java.lang.String virtualHost) throws RemoteException {
143 try {
144 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.getCompanyByVirtualHost(virtualHost);
145
146 return com.liferay.portal.model.CompanySoap.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.CompanySoap getCompanyByWebId(
156 java.lang.String webId) throws RemoteException {
157 try {
158 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.getCompanyByWebId(webId);
159
160 return com.liferay.portal.model.CompanySoap.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.CompanySoap updateCompany(
170 long companyId, java.lang.String virtualHost, java.lang.String mx)
171 throws RemoteException {
172 try {
173 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.updateCompany(companyId,
174 virtualHost, mx);
175
176 return com.liferay.portal.model.CompanySoap.toSoapModel(returnValue);
177 }
178 catch (Exception e) {
179 _log.error(e, e);
180
181 throw new RemoteException(e.getMessage());
182 }
183 }
184
185 public static com.liferay.portal.model.CompanySoap updateCompany(
186 long companyId, java.lang.String virtualHost, java.lang.String mx,
187 java.lang.String homeURL, java.lang.String name,
188 java.lang.String legalName, java.lang.String legalId,
189 java.lang.String legalType, java.lang.String sicCode,
190 java.lang.String tickerSymbol, java.lang.String industry,
191 java.lang.String type, java.lang.String size) throws RemoteException {
192 try {
193 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.updateCompany(companyId,
194 virtualHost, mx, homeURL, name, legalName, legalId,
195 legalType, sicCode, tickerSymbol, industry, type, size);
196
197 return com.liferay.portal.model.CompanySoap.toSoapModel(returnValue);
198 }
199 catch (Exception e) {
200 _log.error(e, e);
201
202 throw new RemoteException(e.getMessage());
203 }
204 }
205
206 public static com.liferay.portal.model.CompanySoap updateCompany(
207 long companyId, java.lang.String virtualHost, java.lang.String mx,
208 java.lang.String homeURL, java.lang.String name,
209 java.lang.String legalName, java.lang.String legalId,
210 java.lang.String legalType, java.lang.String sicCode,
211 java.lang.String tickerSymbol, java.lang.String industry,
212 java.lang.String type, java.lang.String size,
213 java.lang.String languageId, java.lang.String timeZoneId,
214 com.liferay.portal.model.AddressSoap[] addresses,
215 com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
216 com.liferay.portal.model.PhoneSoap[] phones,
217 com.liferay.portal.model.WebsiteSoap[] websites,
218 com.liferay.portal.kernel.util.UnicodeProperties properties)
219 throws RemoteException {
220 try {
221 com.liferay.portal.model.Company returnValue = CompanyServiceUtil.updateCompany(companyId,
222 virtualHost, mx, homeURL, name, legalName, legalId,
223 legalType, sicCode, tickerSymbol, industry, type, size,
224 languageId, timeZoneId,
225 com.liferay.portal.model.impl.AddressModelImpl.toModels(
226 addresses),
227 com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
228 emailAddresses),
229 com.liferay.portal.model.impl.PhoneModelImpl.toModels(
230 phones),
231 com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
232 websites), properties);
233
234 return com.liferay.portal.model.CompanySoap.toSoapModel(returnValue);
235 }
236 catch (Exception e) {
237 _log.error(e, e);
238
239 throw new RemoteException(e.getMessage());
240 }
241 }
242
243 public static void updateDisplay(long companyId,
244 java.lang.String languageId, java.lang.String timeZoneId)
245 throws RemoteException {
246 try {
247 CompanyServiceUtil.updateDisplay(companyId, languageId, timeZoneId);
248 }
249 catch (Exception e) {
250 _log.error(e, e);
251
252 throw new RemoteException(e.getMessage());
253 }
254 }
255
256 public static void updatePreferences(long companyId,
257 com.liferay.portal.kernel.util.UnicodeProperties properties)
258 throws RemoteException {
259 try {
260 CompanyServiceUtil.updatePreferences(companyId, properties);
261 }
262 catch (Exception e) {
263 _log.error(e, e);
264
265 throw new RemoteException(e.getMessage());
266 }
267 }
268
269 public static void updateSecurity(long companyId,
270 java.lang.String authType, boolean autoLogin, boolean sendPassword,
271 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
272 boolean communityLogo) throws RemoteException {
273 try {
274 CompanyServiceUtil.updateSecurity(companyId, authType, autoLogin,
275 sendPassword, strangers, strangersWithMx, strangersVerify,
276 communityLogo);
277 }
278 catch (Exception e) {
279 _log.error(e, e);
280
281 throw new RemoteException(e.getMessage());
282 }
283 }
284
285 private static Log _log = LogFactoryUtil.getLog(CompanyServiceSoap.class);
286 }