1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="CompanyLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link CompanyLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       CompanyLocalService
32   * @generated
33   */
34  public class CompanyLocalServiceWrapper implements CompanyLocalService {
35      public CompanyLocalServiceWrapper(CompanyLocalService companyLocalService) {
36          _companyLocalService = companyLocalService;
37      }
38  
39      public com.liferay.portal.model.Company addCompany(
40          com.liferay.portal.model.Company company)
41          throws com.liferay.portal.kernel.exception.SystemException {
42          return _companyLocalService.addCompany(company);
43      }
44  
45      public com.liferay.portal.model.Company createCompany(long companyId) {
46          return _companyLocalService.createCompany(companyId);
47      }
48  
49      public void deleteCompany(long companyId)
50          throws com.liferay.portal.kernel.exception.PortalException,
51              com.liferay.portal.kernel.exception.SystemException {
52          _companyLocalService.deleteCompany(companyId);
53      }
54  
55      public void deleteCompany(com.liferay.portal.model.Company company)
56          throws com.liferay.portal.kernel.exception.SystemException {
57          _companyLocalService.deleteCompany(company);
58      }
59  
60      @SuppressWarnings("unchecked")
61      public java.util.List dynamicQuery(
62          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63          throws com.liferay.portal.kernel.exception.SystemException {
64          return _companyLocalService.dynamicQuery(dynamicQuery);
65      }
66  
67      @SuppressWarnings("unchecked")
68      public java.util.List dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.kernel.exception.SystemException {
71          return _companyLocalService.dynamicQuery(dynamicQuery, start, end);
72      }
73  
74      @SuppressWarnings("unchecked")
75      public java.util.List dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException {
80          return _companyLocalService.dynamicQuery(dynamicQuery, start, end,
81              orderByComparator);
82      }
83  
84      public long dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return _companyLocalService.dynamicQueryCount(dynamicQuery);
88      }
89  
90      public com.liferay.portal.model.Company getCompany(long companyId)
91          throws com.liferay.portal.kernel.exception.PortalException,
92              com.liferay.portal.kernel.exception.SystemException {
93          return _companyLocalService.getCompany(companyId);
94      }
95  
96      public java.util.List<com.liferay.portal.model.Company> getCompanies(
97          int start, int end)
98          throws com.liferay.portal.kernel.exception.SystemException {
99          return _companyLocalService.getCompanies(start, end);
100     }
101 
102     public int getCompaniesCount()
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return _companyLocalService.getCompaniesCount();
105     }
106 
107     public com.liferay.portal.model.Company updateCompany(
108         com.liferay.portal.model.Company company)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return _companyLocalService.updateCompany(company);
111     }
112 
113     public com.liferay.portal.model.Company updateCompany(
114         com.liferay.portal.model.Company company, boolean merge)
115         throws com.liferay.portal.kernel.exception.SystemException {
116         return _companyLocalService.updateCompany(company, merge);
117     }
118 
119     public com.liferay.portal.model.Company addCompany(java.lang.String webId,
120         java.lang.String virtualHost, java.lang.String mx,
121         java.lang.String shardName, boolean system, int maxUsers)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException {
124         return _companyLocalService.addCompany(webId, virtualHost, mx,
125             shardName, system, maxUsers);
126     }
127 
128     public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
129         throws com.liferay.portal.kernel.exception.PortalException,
130             com.liferay.portal.kernel.exception.SystemException {
131         return _companyLocalService.checkCompany(webId);
132     }
133 
134     public com.liferay.portal.model.Company checkCompany(
135         java.lang.String webId, java.lang.String mx, java.lang.String shardName)
136         throws com.liferay.portal.kernel.exception.PortalException,
137             com.liferay.portal.kernel.exception.SystemException {
138         return _companyLocalService.checkCompany(webId, mx, shardName);
139     }
140 
141     public void checkCompanyKey(long companyId)
142         throws com.liferay.portal.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException {
144         _companyLocalService.checkCompanyKey(companyId);
145     }
146 
147     public void deleteLogo(long companyId)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException {
150         _companyLocalService.deleteLogo(companyId);
151     }
152 
153     public java.util.List<com.liferay.portal.model.Company> getCompanies()
154         throws com.liferay.portal.kernel.exception.SystemException {
155         return _companyLocalService.getCompanies();
156     }
157 
158     public java.util.List<com.liferay.portal.model.Company> getCompanies(
159         boolean system)
160         throws com.liferay.portal.kernel.exception.SystemException {
161         return _companyLocalService.getCompanies(system);
162     }
163 
164     public int getCompaniesCount(boolean system)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         return _companyLocalService.getCompaniesCount(system);
167     }
168 
169     public com.liferay.portal.model.Company getCompanyById(long companyId)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException {
172         return _companyLocalService.getCompanyById(companyId);
173     }
174 
175     public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
176         throws com.liferay.portal.kernel.exception.PortalException,
177             com.liferay.portal.kernel.exception.SystemException {
178         return _companyLocalService.getCompanyByLogoId(logoId);
179     }
180 
181     public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
182         throws com.liferay.portal.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.SystemException {
184         return _companyLocalService.getCompanyByMx(mx);
185     }
186 
187     public com.liferay.portal.model.Company getCompanyByVirtualHost(
188         java.lang.String virtualHost)
189         throws com.liferay.portal.kernel.exception.PortalException,
190             com.liferay.portal.kernel.exception.SystemException {
191         return _companyLocalService.getCompanyByVirtualHost(virtualHost);
192     }
193 
194     public com.liferay.portal.model.Company getCompanyByWebId(
195         java.lang.String webId)
196         throws com.liferay.portal.kernel.exception.PortalException,
197             com.liferay.portal.kernel.exception.SystemException {
198         return _companyLocalService.getCompanyByWebId(webId);
199     }
200 
201     public void removePreferences(long companyId, java.lang.String[] keys)
202         throws com.liferay.portal.kernel.exception.SystemException {
203         _companyLocalService.removePreferences(companyId, keys);
204     }
205 
206     public com.liferay.portal.kernel.search.Hits search(long companyId,
207         long userId, java.lang.String keywords, int start, int end)
208         throws com.liferay.portal.kernel.exception.SystemException {
209         return _companyLocalService.search(companyId, userId, keywords, start,
210             end);
211     }
212 
213     public com.liferay.portal.kernel.search.Hits search(long companyId,
214         long userId, java.lang.String portletId, long groupId,
215         java.lang.String type, java.lang.String keywords, int start, int end)
216         throws com.liferay.portal.kernel.exception.SystemException {
217         return _companyLocalService.search(companyId, userId, portletId,
218             groupId, type, keywords, start, end);
219     }
220 
221     public com.liferay.portal.model.Company updateCompany(long companyId,
222         java.lang.String virtualHost, java.lang.String mx, int maxUsers)
223         throws com.liferay.portal.kernel.exception.PortalException,
224             com.liferay.portal.kernel.exception.SystemException {
225         return _companyLocalService.updateCompany(companyId, virtualHost, mx,
226             maxUsers);
227     }
228 
229     public com.liferay.portal.model.Company updateCompany(long companyId,
230         java.lang.String virtualHost, java.lang.String mx,
231         java.lang.String homeURL, java.lang.String name,
232         java.lang.String legalName, java.lang.String legalId,
233         java.lang.String legalType, java.lang.String sicCode,
234         java.lang.String tickerSymbol, java.lang.String industry,
235         java.lang.String type, java.lang.String size)
236         throws com.liferay.portal.kernel.exception.PortalException,
237             com.liferay.portal.kernel.exception.SystemException {
238         return _companyLocalService.updateCompany(companyId, virtualHost, mx,
239             homeURL, name, legalName, legalId, legalType, sicCode,
240             tickerSymbol, industry, type, size);
241     }
242 
243     public void updateDisplay(long companyId, java.lang.String languageId,
244         java.lang.String timeZoneId)
245         throws com.liferay.portal.kernel.exception.PortalException,
246             com.liferay.portal.kernel.exception.SystemException {
247         _companyLocalService.updateDisplay(companyId, languageId, timeZoneId);
248     }
249 
250     public void updateLogo(long companyId, byte[] bytes)
251         throws com.liferay.portal.kernel.exception.PortalException,
252             com.liferay.portal.kernel.exception.SystemException {
253         _companyLocalService.updateLogo(companyId, bytes);
254     }
255 
256     public void updateLogo(long companyId, java.io.File file)
257         throws com.liferay.portal.kernel.exception.PortalException,
258             com.liferay.portal.kernel.exception.SystemException {
259         _companyLocalService.updateLogo(companyId, file);
260     }
261 
262     public void updateLogo(long companyId, java.io.InputStream is)
263         throws com.liferay.portal.kernel.exception.PortalException,
264             com.liferay.portal.kernel.exception.SystemException {
265         _companyLocalService.updateLogo(companyId, is);
266     }
267 
268     public void updatePreferences(long companyId,
269         com.liferay.portal.kernel.util.UnicodeProperties properties)
270         throws com.liferay.portal.kernel.exception.SystemException {
271         _companyLocalService.updatePreferences(companyId, properties);
272     }
273 
274     public void updateSecurity(long companyId, java.lang.String authType,
275         boolean autoLogin, boolean sendPassword, boolean strangers,
276         boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
277         throws com.liferay.portal.kernel.exception.SystemException {
278         _companyLocalService.updateSecurity(companyId, authType, autoLogin,
279             sendPassword, strangers, strangersWithMx, strangersVerify,
280             communityLogo);
281     }
282 
283     public CompanyLocalService getWrappedCompanyLocalService() {
284         return _companyLocalService;
285     }
286 
287     private CompanyLocalService _companyLocalService;
288 }