1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  
26  /**
27   * <a href="CompanyLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * {@link CompanyLocalService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       CompanyLocalService
44   * @generated
45   */
46  public class CompanyLocalServiceUtil {
47      public static com.liferay.portal.model.Company addCompany(
48          com.liferay.portal.model.Company company)
49          throws com.liferay.portal.SystemException {
50          return getService().addCompany(company);
51      }
52  
53      public static com.liferay.portal.model.Company createCompany(long companyId) {
54          return getService().createCompany(companyId);
55      }
56  
57      public static void deleteCompany(long companyId)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException {
60          getService().deleteCompany(companyId);
61      }
62  
63      public static void deleteCompany(com.liferay.portal.model.Company company)
64          throws com.liferay.portal.SystemException {
65          getService().deleteCompany(company);
66      }
67  
68      public static java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70          throws com.liferay.portal.SystemException {
71          return getService().dynamicQuery(dynamicQuery);
72      }
73  
74      public static java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException {
77          return getService().dynamicQuery(dynamicQuery, start, end);
78      }
79  
80      public static com.liferay.portal.model.Company getCompany(long companyId)
81          throws com.liferay.portal.PortalException,
82              com.liferay.portal.SystemException {
83          return getService().getCompany(companyId);
84      }
85  
86      public static java.util.List<com.liferay.portal.model.Company> getCompanies(
87          int start, int end) throws com.liferay.portal.SystemException {
88          return getService().getCompanies(start, end);
89      }
90  
91      public static int getCompaniesCount()
92          throws com.liferay.portal.SystemException {
93          return getService().getCompaniesCount();
94      }
95  
96      public static com.liferay.portal.model.Company updateCompany(
97          com.liferay.portal.model.Company company)
98          throws com.liferay.portal.SystemException {
99          return getService().updateCompany(company);
100     }
101 
102     public static com.liferay.portal.model.Company updateCompany(
103         com.liferay.portal.model.Company company, boolean merge)
104         throws com.liferay.portal.SystemException {
105         return getService().updateCompany(company, merge);
106     }
107 
108     public static com.liferay.portal.model.Company addCompany(
109         java.lang.String webId, java.lang.String virtualHost,
110         java.lang.String mx)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return getService().addCompany(webId, virtualHost, mx);
114     }
115 
116     public static com.liferay.portal.model.Company addCompany(
117         java.lang.String webId, java.lang.String virtualHost,
118         java.lang.String mx, java.lang.String shardName, boolean system)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return getService().addCompany(webId, virtualHost, mx, shardName, system);
122     }
123 
124     public static com.liferay.portal.model.Company checkCompany(
125         java.lang.String webId)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         return getService().checkCompany(webId);
129     }
130 
131     public static com.liferay.portal.model.Company checkCompany(
132         java.lang.String webId, java.lang.String mx, java.lang.String shardName)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         return getService().checkCompany(webId, mx, shardName);
136     }
137 
138     public static void checkCompanyKey(long companyId)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         getService().checkCompanyKey(companyId);
142     }
143 
144     public static java.util.List<com.liferay.portal.model.Company> getCompanies()
145         throws com.liferay.portal.SystemException {
146         return getService().getCompanies();
147     }
148 
149     public static java.util.List<com.liferay.portal.model.Company> getCompanies(
150         boolean system) throws com.liferay.portal.SystemException {
151         return getService().getCompanies(system);
152     }
153 
154     public static int getCompaniesCount(boolean system)
155         throws com.liferay.portal.SystemException {
156         return getService().getCompaniesCount(system);
157     }
158 
159     public static com.liferay.portal.model.Company getCompanyById(
160         long companyId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         return getService().getCompanyById(companyId);
164     }
165 
166     public static com.liferay.portal.model.Company getCompanyByLogoId(
167         long logoId)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException {
170         return getService().getCompanyByLogoId(logoId);
171     }
172 
173     public static com.liferay.portal.model.Company getCompanyByMx(
174         java.lang.String mx)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException {
177         return getService().getCompanyByMx(mx);
178     }
179 
180     public static com.liferay.portal.model.Company getCompanyByVirtualHost(
181         java.lang.String virtualHost)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         return getService().getCompanyByVirtualHost(virtualHost);
185     }
186 
187     public static com.liferay.portal.model.Company getCompanyByWebId(
188         java.lang.String webId)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         return getService().getCompanyByWebId(webId);
192     }
193 
194     public static com.liferay.portal.kernel.search.Hits search(long companyId,
195         java.lang.String keywords, int start, int end)
196         throws com.liferay.portal.SystemException {
197         return getService().search(companyId, keywords, start, end);
198     }
199 
200     public static com.liferay.portal.kernel.search.Hits search(long companyId,
201         java.lang.String portletId, long groupId, java.lang.String type,
202         java.lang.String keywords, int start, int end)
203         throws com.liferay.portal.SystemException {
204         return getService()
205                    .search(companyId, portletId, groupId, type, keywords,
206             start, end);
207     }
208 
209     public static com.liferay.portal.model.Company updateCompany(
210         long companyId, java.lang.String virtualHost, java.lang.String mx)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException {
213         return getService().updateCompany(companyId, virtualHost, mx);
214     }
215 
216     public static com.liferay.portal.model.Company updateCompany(
217         long companyId, java.lang.String virtualHost, java.lang.String mx,
218         java.lang.String name, java.lang.String legalName,
219         java.lang.String legalId, java.lang.String legalType,
220         java.lang.String sicCode, java.lang.String tickerSymbol,
221         java.lang.String industry, java.lang.String type, java.lang.String size)
222         throws com.liferay.portal.PortalException,
223             com.liferay.portal.SystemException {
224         return getService()
225                    .updateCompany(companyId, virtualHost, mx, name, legalName,
226             legalId, legalType, sicCode, tickerSymbol, industry, type, size);
227     }
228 
229     public static void updateDisplay(long companyId,
230         java.lang.String languageId, java.lang.String timeZoneId)
231         throws com.liferay.portal.PortalException,
232             com.liferay.portal.SystemException {
233         getService().updateDisplay(companyId, languageId, timeZoneId);
234     }
235 
236     public static void updateLogo(long companyId, java.io.File file)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException {
239         getService().updateLogo(companyId, file);
240     }
241 
242     public static void updateSecurity(long companyId,
243         java.lang.String authType, boolean autoLogin, boolean sendPassword,
244         boolean strangers, boolean strangersWithMx, boolean strangersVerify,
245         boolean communityLogo) throws com.liferay.portal.SystemException {
246         getService()
247             .updateSecurity(companyId, authType, autoLogin, sendPassword,
248             strangers, strangersWithMx, strangersVerify, communityLogo);
249     }
250 
251     public static CompanyLocalService getService() {
252         if (_service == null) {
253             throw new RuntimeException("CompanyLocalService is not set");
254         }
255 
256         return _service;
257     }
258 
259     public void setService(CompanyLocalService service) {
260         _service = service;
261     }
262 
263     private static CompanyLocalService _service;
264 }