1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.service.http;
16  
17  import com.liferay.portal.kernel.log.Log;
18  import com.liferay.portal.kernel.log.LogFactoryUtil;
19  import com.liferay.portal.service.CompanyServiceUtil;
20  
21  import java.rmi.RemoteException;
22  
23  /**
24   * <a href="CompanyServiceSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class provides a SOAP utility for the
33   * {@link com.liferay.portal.service.CompanyServiceUtil} service utility. The
34   * static methods of this class calls the same methods of the service utility.
35   * However, the signatures are different because it is difficult for SOAP to
36   * support certain types.
37   * </p>
38   *
39   * <p>
40   * ServiceBuilder follows certain rules in translating the methods. For example,
41   * if the method in the service utility returns a {@link java.util.List}, that
42   * is translated to an array of {@link com.liferay.portal.model.CompanySoap}.
43   * If the method in the service utility returns a
44   * {@link com.liferay.portal.model.Company}, that is translated to a
45   * {@link com.liferay.portal.model.CompanySoap}. Methods that SOAP cannot
46   * safely wire are skipped.
47   * </p>
48   *
49   * <p>
50   * The benefits of using the SOAP utility is that it is cross platform
51   * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
52   * even Perl, to call the generated services. One drawback of SOAP is that it is
53   * slow because it needs to serialize all calls into a text format (XML).
54   * </p>
55   *
56   * <p>
57   * You can see a list of services at
58   * http://localhost:8080/tunnel-web/secure/axis. Set the property
59   * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
60   * security.
61   * </p>
62   *
63   * <p>
64   * The SOAP utility is only generated for remote services.
65   * </p>
66   *
67   * @author    Brian Wing Shun Chan
68   * @see       CompanyServiceHttp
69   * @see       com.liferay.portal.model.CompanySoap
70   * @see       com.liferay.portal.service.CompanyServiceUtil
71   * @generated
72   */
73  public class CompanyServiceSoap {
74      public static com.liferay.portal.model.CompanySoap addCompany(
75          java.lang.String webId, java.lang.String virtualHost,
76          java.lang.String mx) throws RemoteException {
77          try {
78              com.liferay.portal.model.Company returnValue = CompanyServiceUtil.addCompany(webId,
79                      virtualHost, mx);
80  
81              return com.liferay.portal.model.CompanySoap.toSoapModel(returnValue);
82          }
83          catch (Exception e) {
84              _log.error(e, e);
85  
86              throw new RemoteException(e.getMessage());
87          }
88      }
89  
90      public static com.liferay.portal.model.CompanySoap addCompany(
91          java.lang.String webId, java.lang.String virtualHost,
92          java.lang.String mx, java.lang.String shardName, boolean system)
93          throws RemoteException {
94          try {
95              com.liferay.portal.model.Company returnValue = CompanyServiceUtil.addCompany(webId,
96                      virtualHost, mx, shardName, system);
97  
98              return com.liferay.portal.model.CompanySoap.toSoapModel(returnValue);
99          }
100         catch (Exception e) {
101             _log.error(e, e);
102 
103             throw new RemoteException(e.getMessage());
104         }
105     }
106 
107     public static com.liferay.portal.model.CompanySoap updateCompany(
108         long companyId, java.lang.String virtualHost, java.lang.String mx)
109         throws RemoteException {
110         try {
111             com.liferay.portal.model.Company returnValue = CompanyServiceUtil.updateCompany(companyId,
112                     virtualHost, mx);
113 
114             return com.liferay.portal.model.CompanySoap.toSoapModel(returnValue);
115         }
116         catch (Exception e) {
117             _log.error(e, e);
118 
119             throw new RemoteException(e.getMessage());
120         }
121     }
122 
123     public static com.liferay.portal.model.CompanySoap updateCompany(
124         long companyId, java.lang.String virtualHost, java.lang.String mx,
125         java.lang.String name, java.lang.String legalName,
126         java.lang.String legalId, java.lang.String legalType,
127         java.lang.String sicCode, java.lang.String tickerSymbol,
128         java.lang.String industry, java.lang.String type, java.lang.String size)
129         throws RemoteException {
130         try {
131             com.liferay.portal.model.Company returnValue = CompanyServiceUtil.updateCompany(companyId,
132                     virtualHost, mx, name, legalName, legalId, legalType,
133                     sicCode, tickerSymbol, industry, type, size);
134 
135             return com.liferay.portal.model.CompanySoap.toSoapModel(returnValue);
136         }
137         catch (Exception e) {
138             _log.error(e, e);
139 
140             throw new RemoteException(e.getMessage());
141         }
142     }
143 
144     public static void updateDisplay(long companyId,
145         java.lang.String languageId, java.lang.String timeZoneId)
146         throws RemoteException {
147         try {
148             CompanyServiceUtil.updateDisplay(companyId, languageId, timeZoneId);
149         }
150         catch (Exception e) {
151             _log.error(e, e);
152 
153             throw new RemoteException(e.getMessage());
154         }
155     }
156 
157     public static void updateSecurity(long companyId,
158         java.lang.String authType, boolean autoLogin, boolean sendPassword,
159         boolean strangers, boolean strangersWithMx, boolean strangersVerify,
160         boolean communityLogo) throws RemoteException {
161         try {
162             CompanyServiceUtil.updateSecurity(companyId, authType, autoLogin,
163                 sendPassword, strangers, strangersWithMx, strangersVerify,
164                 communityLogo);
165         }
166         catch (Exception e) {
167             _log.error(e, e);
168 
169             throw new RemoteException(e.getMessage());
170         }
171     }
172 
173     private static Log _log = LogFactoryUtil.getLog(CompanyServiceSoap.class);
174 }