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="CompanyLocalServiceUtil.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 CompanyLocalService} 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       CompanyLocalService
37   * @generated
38   */
39  public class CompanyLocalServiceUtil {
40      public static com.liferay.portal.model.Company addCompany(
41          com.liferay.portal.model.Company company)
42          throws com.liferay.portal.SystemException {
43          return getService().addCompany(company);
44      }
45  
46      public static com.liferay.portal.model.Company createCompany(long companyId) {
47          return getService().createCompany(companyId);
48      }
49  
50      public static void deleteCompany(long companyId)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          getService().deleteCompany(companyId);
54      }
55  
56      public static void deleteCompany(com.liferay.portal.model.Company company)
57          throws com.liferay.portal.SystemException {
58          getService().deleteCompany(company);
59      }
60  
61      public static java.util.List<Object> dynamicQuery(
62          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63          throws com.liferay.portal.SystemException {
64          return getService().dynamicQuery(dynamicQuery);
65      }
66  
67      public static java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException {
70          return getService().dynamicQuery(dynamicQuery, start, end);
71      }
72  
73      public static com.liferay.portal.model.Company getCompany(long companyId)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException {
76          return getService().getCompany(companyId);
77      }
78  
79      public static java.util.List<com.liferay.portal.model.Company> getCompanies(
80          int start, int end) throws com.liferay.portal.SystemException {
81          return getService().getCompanies(start, end);
82      }
83  
84      public static int getCompaniesCount()
85          throws com.liferay.portal.SystemException {
86          return getService().getCompaniesCount();
87      }
88  
89      public static com.liferay.portal.model.Company updateCompany(
90          com.liferay.portal.model.Company company)
91          throws com.liferay.portal.SystemException {
92          return getService().updateCompany(company);
93      }
94  
95      public static com.liferay.portal.model.Company updateCompany(
96          com.liferay.portal.model.Company company, boolean merge)
97          throws com.liferay.portal.SystemException {
98          return getService().updateCompany(company, merge);
99      }
100 
101     public static com.liferay.portal.model.Company addCompany(
102         java.lang.String webId, java.lang.String virtualHost,
103         java.lang.String mx)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException {
106         return getService().addCompany(webId, virtualHost, mx);
107     }
108 
109     public static com.liferay.portal.model.Company addCompany(
110         java.lang.String webId, java.lang.String virtualHost,
111         java.lang.String mx, java.lang.String shardName, boolean system)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException {
114         return getService().addCompany(webId, virtualHost, mx, shardName, system);
115     }
116 
117     public static com.liferay.portal.model.Company checkCompany(
118         java.lang.String webId)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return getService().checkCompany(webId);
122     }
123 
124     public static com.liferay.portal.model.Company checkCompany(
125         java.lang.String webId, java.lang.String mx, java.lang.String shardName)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         return getService().checkCompany(webId, mx, shardName);
129     }
130 
131     public static void checkCompanyKey(long companyId)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         getService().checkCompanyKey(companyId);
135     }
136 
137     public static java.util.List<com.liferay.portal.model.Company> getCompanies()
138         throws com.liferay.portal.SystemException {
139         return getService().getCompanies();
140     }
141 
142     public static java.util.List<com.liferay.portal.model.Company> getCompanies(
143         boolean system) throws com.liferay.portal.SystemException {
144         return getService().getCompanies(system);
145     }
146 
147     public static int getCompaniesCount(boolean system)
148         throws com.liferay.portal.SystemException {
149         return getService().getCompaniesCount(system);
150     }
151 
152     public static com.liferay.portal.model.Company getCompanyById(
153         long companyId)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         return getService().getCompanyById(companyId);
157     }
158 
159     public static com.liferay.portal.model.Company getCompanyByLogoId(
160         long logoId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         return getService().getCompanyByLogoId(logoId);
164     }
165 
166     public static com.liferay.portal.model.Company getCompanyByMx(
167         java.lang.String mx)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException {
170         return getService().getCompanyByMx(mx);
171     }
172 
173     public static com.liferay.portal.model.Company getCompanyByVirtualHost(
174         java.lang.String virtualHost)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException {
177         return getService().getCompanyByVirtualHost(virtualHost);
178     }
179 
180     public static com.liferay.portal.model.Company getCompanyByWebId(
181         java.lang.String webId)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         return getService().getCompanyByWebId(webId);
185     }
186 
187     public static com.liferay.portal.kernel.search.Hits search(long companyId,
188         java.lang.String keywords, int start, int end)
189         throws com.liferay.portal.SystemException {
190         return getService().search(companyId, keywords, start, end);
191     }
192 
193     public static com.liferay.portal.kernel.search.Hits search(long companyId,
194         java.lang.String portletId, long groupId, java.lang.String type,
195         java.lang.String keywords, int start, int end)
196         throws com.liferay.portal.SystemException {
197         return getService()
198                    .search(companyId, portletId, groupId, type, keywords,
199             start, end);
200     }
201 
202     public static com.liferay.portal.model.Company updateCompany(
203         long companyId, java.lang.String virtualHost, java.lang.String mx)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException {
206         return getService().updateCompany(companyId, virtualHost, mx);
207     }
208 
209     public static com.liferay.portal.model.Company updateCompany(
210         long companyId, java.lang.String virtualHost, java.lang.String mx,
211         java.lang.String name, java.lang.String legalName,
212         java.lang.String legalId, java.lang.String legalType,
213         java.lang.String sicCode, java.lang.String tickerSymbol,
214         java.lang.String industry, java.lang.String type, java.lang.String size)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         return getService()
218                    .updateCompany(companyId, virtualHost, mx, name, legalName,
219             legalId, legalType, sicCode, tickerSymbol, industry, type, size);
220     }
221 
222     public static void updateDisplay(long companyId,
223         java.lang.String languageId, java.lang.String timeZoneId)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException {
226         getService().updateDisplay(companyId, languageId, timeZoneId);
227     }
228 
229     public static void updateLogo(long companyId, java.io.File file)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException {
232         getService().updateLogo(companyId, file);
233     }
234 
235     public static void updateSecurity(long companyId,
236         java.lang.String authType, boolean autoLogin, boolean sendPassword,
237         boolean strangers, boolean strangersWithMx, boolean strangersVerify,
238         boolean communityLogo) throws com.liferay.portal.SystemException {
239         getService()
240             .updateSecurity(companyId, authType, autoLogin, sendPassword,
241             strangers, strangersWithMx, strangersVerify, communityLogo);
242     }
243 
244     public static CompanyLocalService getService() {
245         if (_service == null) {
246             _service = (CompanyLocalService)PortalBeanLocatorUtil.locate(CompanyLocalService.class.getName());
247         }
248 
249         return _service;
250     }
251 
252     public void setService(CompanyLocalService service) {
253         _service = service;
254     }
255 
256     private static CompanyLocalService _service;
257 }