1
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
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 }