001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class CompanyLocalServiceUtil {
037
044 public static com.liferay.portal.model.Company addCompany(
045 com.liferay.portal.model.Company company)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().addCompany(company);
048 }
049
050
056 public static com.liferay.portal.model.Company createCompany(long companyId) {
057 return getService().createCompany(companyId);
058 }
059
060
067 public static void deleteCompany(long companyId)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 getService().deleteCompany(companyId);
071 }
072
073
079 public static void deleteCompany(com.liferay.portal.model.Company company)
080 throws com.liferay.portal.kernel.exception.SystemException {
081 getService().deleteCompany(company);
082 }
083
084
091 @SuppressWarnings("rawtypes")
092 public static java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException {
095 return getService().dynamicQuery(dynamicQuery);
096 }
097
098
111 @SuppressWarnings("rawtypes")
112 public static java.util.List dynamicQuery(
113 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114 int end) throws com.liferay.portal.kernel.exception.SystemException {
115 return getService().dynamicQuery(dynamicQuery, start, end);
116 }
117
118
132 @SuppressWarnings("rawtypes")
133 public static java.util.List dynamicQuery(
134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135 int end,
136 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getService()
139 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
140 }
141
142
149 public static long dynamicQueryCount(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService().dynamicQueryCount(dynamicQuery);
153 }
154
155
163 public static com.liferay.portal.model.Company getCompany(long companyId)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException {
166 return getService().getCompany(companyId);
167 }
168
169
181 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
182 int start, int end)
183 throws com.liferay.portal.kernel.exception.SystemException {
184 return getService().getCompanies(start, end);
185 }
186
187
193 public static int getCompaniesCount()
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getService().getCompaniesCount();
196 }
197
198
205 public static com.liferay.portal.model.Company updateCompany(
206 com.liferay.portal.model.Company company)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getService().updateCompany(company);
209 }
210
211
219 public static com.liferay.portal.model.Company updateCompany(
220 com.liferay.portal.model.Company company, boolean merge)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getService().updateCompany(company, merge);
223 }
224
225 public static com.liferay.portal.model.Company addCompany(
226 java.lang.String webId, java.lang.String virtualHost,
227 java.lang.String mx, java.lang.String shardName, boolean system,
228 int maxUsers)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException {
231 return getService()
232 .addCompany(webId, virtualHost, mx, shardName, system,
233 maxUsers);
234 }
235
236 public static com.liferay.portal.model.Company checkCompany(
237 java.lang.String webId)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException {
240 return getService().checkCompany(webId);
241 }
242
243 public static com.liferay.portal.model.Company checkCompany(
244 java.lang.String webId, java.lang.String mx, java.lang.String shardName)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException {
247 return getService().checkCompany(webId, mx, shardName);
248 }
249
250 public static void checkCompanyKey(long companyId)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException {
253 getService().checkCompanyKey(companyId);
254 }
255
256 public static void deleteLogo(long companyId)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException {
259 getService().deleteLogo(companyId);
260 }
261
262 public static java.util.List<com.liferay.portal.model.Company> getCompanies()
263 throws com.liferay.portal.kernel.exception.SystemException {
264 return getService().getCompanies();
265 }
266
267 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
268 boolean system)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 return getService().getCompanies(system);
271 }
272
273 public static int getCompaniesCount(boolean system)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getService().getCompaniesCount(system);
276 }
277
278 public static com.liferay.portal.model.Company getCompanyById(
279 long companyId)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException {
282 return getService().getCompanyById(companyId);
283 }
284
285 public static com.liferay.portal.model.Company getCompanyByLogoId(
286 long logoId)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 return getService().getCompanyByLogoId(logoId);
290 }
291
292 public static com.liferay.portal.model.Company getCompanyByMx(
293 java.lang.String mx)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 return getService().getCompanyByMx(mx);
297 }
298
299 public static com.liferay.portal.model.Company getCompanyByVirtualHost(
300 java.lang.String virtualHost)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 return getService().getCompanyByVirtualHost(virtualHost);
304 }
305
306 public static com.liferay.portal.model.Company getCompanyByWebId(
307 java.lang.String webId)
308 throws com.liferay.portal.kernel.exception.PortalException,
309 com.liferay.portal.kernel.exception.SystemException {
310 return getService().getCompanyByWebId(webId);
311 }
312
313 public static void removePreferences(long companyId, java.lang.String[] keys)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getService().removePreferences(companyId, keys);
316 }
317
318 public static com.liferay.portal.kernel.search.Hits search(long companyId,
319 long userId, java.lang.String keywords, int start, int end)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getService().search(companyId, userId, keywords, start, end);
322 }
323
324 public static com.liferay.portal.kernel.search.Hits search(long companyId,
325 long userId, java.lang.String portletId, long groupId,
326 java.lang.String type, java.lang.String keywords, int start, int end)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getService()
329 .search(companyId, userId, portletId, groupId, type,
330 keywords, start, end);
331 }
332
333 public static com.liferay.portal.model.Company updateCompany(
334 long companyId, java.lang.String virtualHost, java.lang.String mx,
335 int maxUsers)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException {
338 return getService().updateCompany(companyId, virtualHost, mx, maxUsers);
339 }
340
341 public static com.liferay.portal.model.Company updateCompany(
342 long companyId, java.lang.String virtualHost, java.lang.String mx,
343 java.lang.String homeURL, java.lang.String name,
344 java.lang.String legalName, java.lang.String legalId,
345 java.lang.String legalType, java.lang.String sicCode,
346 java.lang.String tickerSymbol, java.lang.String industry,
347 java.lang.String type, java.lang.String size)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException {
350 return getService()
351 .updateCompany(companyId, virtualHost, mx, homeURL, name,
352 legalName, legalId, legalType, sicCode, tickerSymbol, industry,
353 type, size);
354 }
355
356 public static void updateDisplay(long companyId,
357 java.lang.String languageId, java.lang.String timeZoneId)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException {
360 getService().updateDisplay(companyId, languageId, timeZoneId);
361 }
362
363 public static void updateLogo(long companyId, byte[] bytes)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException {
366 getService().updateLogo(companyId, bytes);
367 }
368
369 public static void updateLogo(long companyId, java.io.File file)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException {
372 getService().updateLogo(companyId, file);
373 }
374
375 public static void updateLogo(long companyId, java.io.InputStream is)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException {
378 getService().updateLogo(companyId, is);
379 }
380
381 public static void updatePreferences(long companyId,
382 com.liferay.portal.kernel.util.UnicodeProperties properties)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 getService().updatePreferences(companyId, properties);
385 }
386
387 public static void updateSecurity(long companyId,
388 java.lang.String authType, boolean autoLogin, boolean sendPassword,
389 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
390 boolean communityLogo)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 getService()
393 .updateSecurity(companyId, authType, autoLogin, sendPassword,
394 strangers, strangersWithMx, strangersVerify, communityLogo);
395 }
396
397 public static CompanyLocalService getService() {
398 if (_service == null) {
399 _service = (CompanyLocalService)PortalBeanLocatorUtil.locate(CompanyLocalService.class.getName());
400 }
401
402 return _service;
403 }
404
405 public void setService(CompanyLocalService service) {
406 _service = service;
407 }
408
409 private static CompanyLocalService _service;
410 }