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;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="CompanyServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link CompanyService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       CompanyService
37   * @generated
38   */
39  public class CompanyServiceUtil {
40      public static com.liferay.portal.model.Company addCompany(
41          java.lang.String webId, java.lang.String virtualHost,
42          java.lang.String mx)
43          throws com.liferay.portal.PortalException,
44              com.liferay.portal.SystemException, java.rmi.RemoteException {
45          return getService().addCompany(webId, virtualHost, mx);
46      }
47  
48      public static com.liferay.portal.model.Company addCompany(
49          java.lang.String webId, java.lang.String virtualHost,
50          java.lang.String mx, java.lang.String shardName, boolean system)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException, java.rmi.RemoteException {
53          return getService().addCompany(webId, virtualHost, mx, shardName, system);
54      }
55  
56      public static com.liferay.portal.model.Company updateCompany(
57          long companyId, java.lang.String virtualHost, java.lang.String mx)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException, java.rmi.RemoteException {
60          return getService().updateCompany(companyId, virtualHost, mx);
61      }
62  
63      public static com.liferay.portal.model.Company updateCompany(
64          long companyId, java.lang.String virtualHost, java.lang.String mx,
65          java.lang.String name, java.lang.String legalName,
66          java.lang.String legalId, java.lang.String legalType,
67          java.lang.String sicCode, java.lang.String tickerSymbol,
68          java.lang.String industry, java.lang.String type, java.lang.String size)
69          throws com.liferay.portal.PortalException,
70              com.liferay.portal.SystemException, java.rmi.RemoteException {
71          return getService()
72                     .updateCompany(companyId, virtualHost, mx, name, legalName,
73              legalId, legalType, sicCode, tickerSymbol, industry, type, size);
74      }
75  
76      public static void updateDisplay(long companyId,
77          java.lang.String languageId, java.lang.String timeZoneId)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException, java.rmi.RemoteException {
80          getService().updateDisplay(companyId, languageId, timeZoneId);
81      }
82  
83      public static void updateLogo(long companyId, java.io.File file)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException, java.rmi.RemoteException {
86          getService().updateLogo(companyId, file);
87      }
88  
89      public static void updateSecurity(long companyId,
90          java.lang.String authType, boolean autoLogin, boolean sendPassword,
91          boolean strangers, boolean strangersWithMx, boolean strangersVerify,
92          boolean communityLogo)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException, java.rmi.RemoteException {
95          getService()
96              .updateSecurity(companyId, authType, autoLogin, sendPassword,
97              strangers, strangersWithMx, strangersVerify, communityLogo);
98      }
99  
100     public static CompanyService getService() {
101         if (_service == null) {
102             _service = (CompanyService)PortalBeanLocatorUtil.locate(CompanyService.class.getName());
103         }
104 
105         return _service;
106     }
107 
108     public void setService(CompanyService service) {
109         _service = service;
110     }
111 
112     private static CompanyService _service;
113 }