1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class CompanyLocalServiceUtil {
42 public static com.liferay.portal.model.Company addCompany(
43 com.liferay.portal.model.Company company)
44 throws com.liferay.portal.SystemException {
45 return getService().addCompany(company);
46 }
47
48 public static com.liferay.portal.model.Company createCompany(long companyId) {
49 return getService().createCompany(companyId);
50 }
51
52 public static void deleteCompany(long companyId)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException {
55 getService().deleteCompany(companyId);
56 }
57
58 public static void deleteCompany(com.liferay.portal.model.Company company)
59 throws com.liferay.portal.SystemException {
60 getService().deleteCompany(company);
61 }
62
63 @SuppressWarnings("rawtypes")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("rawtypes")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("rawtypes")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static int dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portal.model.Company getCompany(long companyId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException {
96 return getService().getCompany(companyId);
97 }
98
99 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
100 int start, int end) throws com.liferay.portal.SystemException {
101 return getService().getCompanies(start, end);
102 }
103
104 public static int getCompaniesCount()
105 throws com.liferay.portal.SystemException {
106 return getService().getCompaniesCount();
107 }
108
109 public static com.liferay.portal.model.Company updateCompany(
110 com.liferay.portal.model.Company company)
111 throws com.liferay.portal.SystemException {
112 return getService().updateCompany(company);
113 }
114
115 public static com.liferay.portal.model.Company updateCompany(
116 com.liferay.portal.model.Company company, boolean merge)
117 throws com.liferay.portal.SystemException {
118 return getService().updateCompany(company, merge);
119 }
120
121 public static com.liferay.portal.model.Company addCompany(
122 java.lang.String webId, java.lang.String virtualHost,
123 java.lang.String mx, java.lang.String shardName, boolean system)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService().addCompany(webId, virtualHost, mx, shardName, system);
127 }
128
129 public static com.liferay.portal.model.Company checkCompany(
130 java.lang.String webId)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException {
133 return getService().checkCompany(webId);
134 }
135
136 public static com.liferay.portal.model.Company checkCompany(
137 java.lang.String webId, java.lang.String mx, java.lang.String shardName)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 return getService().checkCompany(webId, mx, shardName);
141 }
142
143 public static void checkCompanyKey(long companyId)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException {
146 getService().checkCompanyKey(companyId);
147 }
148
149 public static void deleteLogo(long companyId)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException {
152 getService().deleteLogo(companyId);
153 }
154
155 public static java.util.List<com.liferay.portal.model.Company> getCompanies()
156 throws com.liferay.portal.SystemException {
157 return getService().getCompanies();
158 }
159
160 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
161 boolean system) throws com.liferay.portal.SystemException {
162 return getService().getCompanies(system);
163 }
164
165 public static int getCompaniesCount(boolean system)
166 throws com.liferay.portal.SystemException {
167 return getService().getCompaniesCount(system);
168 }
169
170 public static com.liferay.portal.model.Company getCompanyById(
171 long companyId)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 return getService().getCompanyById(companyId);
175 }
176
177 public static com.liferay.portal.model.Company getCompanyByLogoId(
178 long logoId)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 return getService().getCompanyByLogoId(logoId);
182 }
183
184 public static com.liferay.portal.model.Company getCompanyByMx(
185 java.lang.String mx)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException {
188 return getService().getCompanyByMx(mx);
189 }
190
191 public static com.liferay.portal.model.Company getCompanyByVirtualHost(
192 java.lang.String virtualHost)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 return getService().getCompanyByVirtualHost(virtualHost);
196 }
197
198 public static com.liferay.portal.model.Company getCompanyByWebId(
199 java.lang.String webId)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 return getService().getCompanyByWebId(webId);
203 }
204
205 public static void removePreferences(long companyId, java.lang.String[] keys)
206 throws com.liferay.portal.SystemException {
207 getService().removePreferences(companyId, keys);
208 }
209
210 public static com.liferay.portal.kernel.search.Hits search(long companyId,
211 long userId, java.lang.String keywords, int start, int end)
212 throws com.liferay.portal.SystemException {
213 return getService().search(companyId, userId, keywords, start, end);
214 }
215
216 public static com.liferay.portal.kernel.search.Hits search(long companyId,
217 long userId, java.lang.String portletId, long groupId,
218 java.lang.String type, java.lang.String keywords, int start, int end)
219 throws com.liferay.portal.SystemException {
220 return getService()
221 .search(companyId, userId, portletId, groupId, type,
222 keywords, start, end);
223 }
224
225 public static com.liferay.portal.model.Company updateCompany(
226 long companyId, java.lang.String virtualHost, java.lang.String mx)
227 throws com.liferay.portal.PortalException,
228 com.liferay.portal.SystemException {
229 return getService().updateCompany(companyId, virtualHost, mx);
230 }
231
232 public static com.liferay.portal.model.Company updateCompany(
233 long companyId, java.lang.String virtualHost, java.lang.String mx,
234 java.lang.String homeURL, java.lang.String name,
235 java.lang.String legalName, java.lang.String legalId,
236 java.lang.String legalType, java.lang.String sicCode,
237 java.lang.String tickerSymbol, java.lang.String industry,
238 java.lang.String type, java.lang.String size)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException {
241 return getService()
242 .updateCompany(companyId, virtualHost, mx, homeURL, name,
243 legalName, legalId, legalType, sicCode, tickerSymbol, industry,
244 type, size);
245 }
246
247 public static void updateDisplay(long companyId,
248 java.lang.String languageId, java.lang.String timeZoneId)
249 throws com.liferay.portal.PortalException,
250 com.liferay.portal.SystemException {
251 getService().updateDisplay(companyId, languageId, timeZoneId);
252 }
253
254 public static void updateLogo(long companyId, byte[] bytes)
255 throws com.liferay.portal.PortalException,
256 com.liferay.portal.SystemException {
257 getService().updateLogo(companyId, bytes);
258 }
259
260 public static void updateLogo(long companyId, java.io.File file)
261 throws com.liferay.portal.PortalException,
262 com.liferay.portal.SystemException {
263 getService().updateLogo(companyId, file);
264 }
265
266 public static void updateLogo(long companyId, java.io.InputStream is)
267 throws com.liferay.portal.PortalException,
268 com.liferay.portal.SystemException {
269 getService().updateLogo(companyId, is);
270 }
271
272 public static void updatePreferences(long companyId,
273 com.liferay.portal.kernel.util.UnicodeProperties properties)
274 throws com.liferay.portal.SystemException {
275 getService().updatePreferences(companyId, properties);
276 }
277
278 public static void updateSecurity(long companyId,
279 java.lang.String authType, boolean autoLogin, boolean sendPassword,
280 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
281 boolean communityLogo) throws com.liferay.portal.SystemException {
282 getService()
283 .updateSecurity(companyId, authType, autoLogin, sendPassword,
284 strangers, strangersWithMx, strangersVerify, communityLogo);
285 }
286
287 public static CompanyLocalService getService() {
288 if (_service == null) {
289 _service = (CompanyLocalService)PortalBeanLocatorUtil.locate(CompanyLocalService.class.getName());
290
291 ReferenceRegistry.registerReference(CompanyLocalServiceUtil.class,
292 "_service");
293 MethodCache.remove(CompanyLocalService.class);
294 }
295
296 return _service;
297 }
298
299 public void setService(CompanyLocalService service) {
300 MethodCache.remove(CompanyLocalService.class);
301
302 _service = service;
303
304 ReferenceRegistry.registerReference(CompanyLocalServiceUtil.class,
305 "_service");
306 MethodCache.remove(CompanyLocalService.class);
307 }
308
309 private static CompanyLocalService _service;
310 }