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 void updateDisplay(long companyId,
207 java.lang.String languageId, java.lang.String timeZoneId)
208 throws RemoteException {
209 try {
210 CompanyServiceUtil.updateDisplay(companyId, languageId, timeZoneId);
211 }
212 catch (Exception e) {
213 _log.error(e, e);
214
215 throw new RemoteException(e.getMessage());
216 }
217 }
218
219 public static void updateSecurity(long companyId,
220 java.lang.String authType, boolean autoLogin, boolean sendPassword,
221 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
222 boolean communityLogo) throws RemoteException {
223 try {
224 CompanyServiceUtil.updateSecurity(companyId, authType, autoLogin,
225 sendPassword, strangers, strangersWithMx, strangersVerify,
226 communityLogo);
227 }
228 catch (Exception e) {
229 _log.error(e, e);
230
231 throw new RemoteException(e.getMessage());
232 }
233 }
234
235 private static Log _log = LogFactoryUtil.getLog(CompanyServiceSoap.class);
236 }