001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link CompanyLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       CompanyLocalService
024     * @generated
025     */
026    public class CompanyLocalServiceWrapper implements CompanyLocalService {
027            public CompanyLocalServiceWrapper(CompanyLocalService companyLocalService) {
028                    _companyLocalService = companyLocalService;
029            }
030    
031            /**
032            * Adds the company to the database. Also notifies the appropriate model listeners.
033            *
034            * @param company the company to add
035            * @return the company that was added
036            * @throws SystemException if a system exception occurred
037            */
038            public com.liferay.portal.model.Company addCompany(
039                    com.liferay.portal.model.Company company)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _companyLocalService.addCompany(company);
042            }
043    
044            /**
045            * Creates a new company with the primary key. Does not add the company to the database.
046            *
047            * @param companyId the primary key for the new company
048            * @return the new company
049            */
050            public com.liferay.portal.model.Company createCompany(long companyId) {
051                    return _companyLocalService.createCompany(companyId);
052            }
053    
054            /**
055            * Deletes the company with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param companyId the primary key of the company to delete
058            * @throws PortalException if a company with the primary key could not be found
059            * @throws SystemException if a system exception occurred
060            */
061            public void deleteCompany(long companyId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _companyLocalService.deleteCompany(companyId);
065            }
066    
067            /**
068            * Deletes the company from the database. Also notifies the appropriate model listeners.
069            *
070            * @param company the company to delete
071            * @throws SystemException if a system exception occurred
072            */
073            public void deleteCompany(com.liferay.portal.model.Company company)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    _companyLocalService.deleteCompany(company);
076            }
077    
078            /**
079            * Performs a dynamic query on the database and returns the matching rows.
080            *
081            * @param dynamicQuery the dynamic query to search with
082            * @return the matching rows
083            * @throws SystemException if a system exception occurred
084            */
085            @SuppressWarnings("rawtypes")
086            public java.util.List dynamicQuery(
087                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return _companyLocalService.dynamicQuery(dynamicQuery);
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns a range of the matching rows.
094            *
095            * <p>
096            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
097            * </p>
098            *
099            * @param dynamicQuery the dynamic query to search with
100            * @param start the lower bound of the range of model instances to return
101            * @param end the upper bound of the range of model instances to return (not inclusive)
102            * @return the range of matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
108                    int end) throws com.liferay.portal.kernel.exception.SystemException {
109                    return _companyLocalService.dynamicQuery(dynamicQuery, start, end);
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
114            *
115            * <p>
116            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query to search with
120            * @param start the lower bound of the range of model instances to return
121            * @param end the upper bound of the range of model instances to return (not inclusive)
122            * @param orderByComparator the comparator to order the results by
123            * @return the ordered range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return _companyLocalService.dynamicQuery(dynamicQuery, start, end,
133                            orderByComparator);
134            }
135    
136            /**
137            * Counts the number of rows that match the dynamic query.
138            *
139            * @param dynamicQuery the dynamic query to search with
140            * @return the number of rows that match the dynamic query
141            * @throws SystemException if a system exception occurred
142            */
143            public long dynamicQueryCount(
144                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _companyLocalService.dynamicQueryCount(dynamicQuery);
147            }
148    
149            /**
150            * Gets the company with the primary key.
151            *
152            * @param companyId the primary key of the company to get
153            * @return the company
154            * @throws PortalException if a company with the primary key could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public com.liferay.portal.model.Company getCompany(long companyId)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _companyLocalService.getCompany(companyId);
161            }
162    
163            /**
164            * Gets a range of all the companies.
165            *
166            * <p>
167            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
168            * </p>
169            *
170            * @param start the lower bound of the range of companies to return
171            * @param end the upper bound of the range of companies to return (not inclusive)
172            * @return the range of companies
173            * @throws SystemException if a system exception occurred
174            */
175            public java.util.List<com.liferay.portal.model.Company> getCompanies(
176                    int start, int end)
177                    throws com.liferay.portal.kernel.exception.SystemException {
178                    return _companyLocalService.getCompanies(start, end);
179            }
180    
181            /**
182            * Gets the number of companies.
183            *
184            * @return the number of companies
185            * @throws SystemException if a system exception occurred
186            */
187            public int getCompaniesCount()
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return _companyLocalService.getCompaniesCount();
190            }
191    
192            /**
193            * Updates the company in the database. Also notifies the appropriate model listeners.
194            *
195            * @param company the company to update
196            * @return the company that was updated
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portal.model.Company updateCompany(
200                    com.liferay.portal.model.Company company)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return _companyLocalService.updateCompany(company);
203            }
204    
205            /**
206            * Updates the company in the database. Also notifies the appropriate model listeners.
207            *
208            * @param company the company to update
209            * @param merge whether to merge the company with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
210            * @return the company that was updated
211            * @throws SystemException if a system exception occurred
212            */
213            public com.liferay.portal.model.Company updateCompany(
214                    com.liferay.portal.model.Company company, boolean merge)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _companyLocalService.updateCompany(company, merge);
217            }
218    
219            public com.liferay.portal.model.Company addCompany(java.lang.String webId,
220                    java.lang.String virtualHost, java.lang.String mx,
221                    java.lang.String shardName, boolean system, int maxUsers)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException {
224                    return _companyLocalService.addCompany(webId, virtualHost, mx,
225                            shardName, system, maxUsers);
226            }
227    
228            public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException {
231                    return _companyLocalService.checkCompany(webId);
232            }
233    
234            public com.liferay.portal.model.Company checkCompany(
235                    java.lang.String webId, java.lang.String mx, java.lang.String shardName)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _companyLocalService.checkCompany(webId, mx, shardName);
239            }
240    
241            public void checkCompanyKey(long companyId)
242                    throws com.liferay.portal.kernel.exception.PortalException,
243                            com.liferay.portal.kernel.exception.SystemException {
244                    _companyLocalService.checkCompanyKey(companyId);
245            }
246    
247            public void deleteLogo(long companyId)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    _companyLocalService.deleteLogo(companyId);
251            }
252    
253            public java.util.List<com.liferay.portal.model.Company> getCompanies()
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return _companyLocalService.getCompanies();
256            }
257    
258            public java.util.List<com.liferay.portal.model.Company> getCompanies(
259                    boolean system)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _companyLocalService.getCompanies(system);
262            }
263    
264            public int getCompaniesCount(boolean system)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return _companyLocalService.getCompaniesCount(system);
267            }
268    
269            public com.liferay.portal.model.Company getCompanyById(long companyId)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _companyLocalService.getCompanyById(companyId);
273            }
274    
275            public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return _companyLocalService.getCompanyByLogoId(logoId);
279            }
280    
281            public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    return _companyLocalService.getCompanyByMx(mx);
285            }
286    
287            public com.liferay.portal.model.Company getCompanyByVirtualHost(
288                    java.lang.String virtualHost)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _companyLocalService.getCompanyByVirtualHost(virtualHost);
292            }
293    
294            public com.liferay.portal.model.Company getCompanyByWebId(
295                    java.lang.String webId)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    return _companyLocalService.getCompanyByWebId(webId);
299            }
300    
301            public void removePreferences(long companyId, java.lang.String[] keys)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    _companyLocalService.removePreferences(companyId, keys);
304            }
305    
306            public com.liferay.portal.kernel.search.Hits search(long companyId,
307                    long userId, java.lang.String keywords, int start, int end)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _companyLocalService.search(companyId, userId, keywords, start,
310                            end);
311            }
312    
313            public com.liferay.portal.kernel.search.Hits search(long companyId,
314                    long userId, java.lang.String portletId, long groupId,
315                    java.lang.String type, java.lang.String keywords, int start, int end)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _companyLocalService.search(companyId, userId, portletId,
318                            groupId, type, keywords, start, end);
319            }
320    
321            public com.liferay.portal.model.Company updateCompany(long companyId,
322                    java.lang.String virtualHost, java.lang.String mx, int maxUsers)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    return _companyLocalService.updateCompany(companyId, virtualHost, mx,
326                            maxUsers);
327            }
328    
329            public com.liferay.portal.model.Company updateCompany(long companyId,
330                    java.lang.String virtualHost, java.lang.String mx,
331                    java.lang.String homeURL, java.lang.String name,
332                    java.lang.String legalName, java.lang.String legalId,
333                    java.lang.String legalType, java.lang.String sicCode,
334                    java.lang.String tickerSymbol, java.lang.String industry,
335                    java.lang.String type, java.lang.String size)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return _companyLocalService.updateCompany(companyId, virtualHost, mx,
339                            homeURL, name, legalName, legalId, legalType, sicCode,
340                            tickerSymbol, industry, type, size);
341            }
342    
343            public void updateDisplay(long companyId, java.lang.String languageId,
344                    java.lang.String timeZoneId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    _companyLocalService.updateDisplay(companyId, languageId, timeZoneId);
348            }
349    
350            public void updateLogo(long companyId, byte[] bytes)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    _companyLocalService.updateLogo(companyId, bytes);
354            }
355    
356            public void updateLogo(long companyId, java.io.File file)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    _companyLocalService.updateLogo(companyId, file);
360            }
361    
362            public void updateLogo(long companyId, java.io.InputStream is)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    _companyLocalService.updateLogo(companyId, is);
366            }
367    
368            public void updatePreferences(long companyId,
369                    com.liferay.portal.kernel.util.UnicodeProperties properties)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    _companyLocalService.updatePreferences(companyId, properties);
372            }
373    
374            public void updateSecurity(long companyId, java.lang.String authType,
375                    boolean autoLogin, boolean sendPassword, boolean strangers,
376                    boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    _companyLocalService.updateSecurity(companyId, authType, autoLogin,
379                            sendPassword, strangers, strangersWithMx, strangersVerify,
380                            communityLogo);
381            }
382    
383            public CompanyLocalService getWrappedCompanyLocalService() {
384                    return _companyLocalService;
385            }
386    
387            private CompanyLocalService _companyLocalService;
388    }