001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
100            * @param start the lower bound of the range of model instances
101            * @param end the upper bound of the range of model instances (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
120            * @param start the lower bound of the range of model instances
121            * @param end the upper bound of the range of model instances (not inclusive)
122            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
138            *
139            * @param dynamicQuery the dynamic query
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            * Returns the company with the primary key.
151            *
152            * @param companyId the primary key of the company
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
164                    java.io.Serializable primaryKeyObj)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return _companyLocalService.getPersistedModel(primaryKeyObj);
168            }
169    
170            /**
171            * Returns a range of all the companies.
172            *
173            * <p>
174            * 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.
175            * </p>
176            *
177            * @param start the lower bound of the range of companies
178            * @param end the upper bound of the range of companies (not inclusive)
179            * @return the range of companies
180            * @throws SystemException if a system exception occurred
181            */
182            public java.util.List<com.liferay.portal.model.Company> getCompanies(
183                    int start, int end)
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    return _companyLocalService.getCompanies(start, end);
186            }
187    
188            /**
189            * Returns the number of companies.
190            *
191            * @return the number of companies
192            * @throws SystemException if a system exception occurred
193            */
194            public int getCompaniesCount()
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return _companyLocalService.getCompaniesCount();
197            }
198    
199            /**
200            * Updates the company in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
201            *
202            * @param company the company
203            * @return the company that was updated
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portal.model.Company updateCompany(
207                    com.liferay.portal.model.Company company)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _companyLocalService.updateCompany(company);
210            }
211    
212            /**
213            * Updates the company in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
214            *
215            * @param company the company
216            * @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.
217            * @return the company that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.Company updateCompany(
221                    com.liferay.portal.model.Company company, boolean merge)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _companyLocalService.updateCompany(company, merge);
224            }
225    
226            /**
227            * Returns the Spring bean ID for this bean.
228            *
229            * @return the Spring bean ID for this bean
230            */
231            public java.lang.String getBeanIdentifier() {
232                    return _companyLocalService.getBeanIdentifier();
233            }
234    
235            /**
236            * Sets the Spring bean ID for this bean.
237            *
238            * @param beanIdentifier the Spring bean ID for this bean
239            */
240            public void setBeanIdentifier(java.lang.String beanIdentifier) {
241                    _companyLocalService.setBeanIdentifier(beanIdentifier);
242            }
243    
244            public com.liferay.portal.model.Company addCompany(java.lang.String webId,
245                    java.lang.String virtualHostname, java.lang.String mx,
246                    java.lang.String shardName, boolean system, int maxUsers)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return _companyLocalService.addCompany(webId, virtualHostname, mx,
250                            shardName, system, maxUsers);
251            }
252    
253            public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    return _companyLocalService.checkCompany(webId);
257            }
258    
259            public com.liferay.portal.model.Company checkCompany(
260                    java.lang.String webId, java.lang.String mx, java.lang.String shardName)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return _companyLocalService.checkCompany(webId, mx, shardName);
264            }
265    
266            public void checkCompanyKey(long companyId)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    _companyLocalService.checkCompanyKey(companyId);
270            }
271    
272            public void deleteLogo(long companyId)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _companyLocalService.deleteLogo(companyId);
276            }
277    
278            public java.util.List<com.liferay.portal.model.Company> getCompanies()
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    return _companyLocalService.getCompanies();
281            }
282    
283            public java.util.List<com.liferay.portal.model.Company> getCompanies(
284                    boolean system)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return _companyLocalService.getCompanies(system);
287            }
288    
289            public int getCompaniesCount(boolean system)
290                    throws com.liferay.portal.kernel.exception.SystemException {
291                    return _companyLocalService.getCompaniesCount(system);
292            }
293    
294            public com.liferay.portal.model.Company getCompanyById(long companyId)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _companyLocalService.getCompanyById(companyId);
298            }
299    
300            public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return _companyLocalService.getCompanyByLogoId(logoId);
304            }
305    
306            public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return _companyLocalService.getCompanyByMx(mx);
310            }
311    
312            public com.liferay.portal.model.Company getCompanyByVirtualHost(
313                    java.lang.String virtualHostname)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    return _companyLocalService.getCompanyByVirtualHost(virtualHostname);
317            }
318    
319            public com.liferay.portal.model.Company getCompanyByWebId(
320                    java.lang.String webId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    return _companyLocalService.getCompanyByWebId(webId);
324            }
325    
326            public void removePreferences(long companyId, java.lang.String[] keys)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    _companyLocalService.removePreferences(companyId, keys);
329            }
330    
331            public com.liferay.portal.kernel.search.Hits search(long companyId,
332                    long userId, java.lang.String keywords, int start, int end)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _companyLocalService.search(companyId, userId, keywords, start,
335                            end);
336            }
337    
338            public com.liferay.portal.kernel.search.Hits search(long companyId,
339                    long userId, java.lang.String portletId, long groupId,
340                    java.lang.String type, java.lang.String keywords, int start, int end)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return _companyLocalService.search(companyId, userId, portletId,
343                            groupId, type, keywords, start, end);
344            }
345    
346            public com.liferay.portal.model.Company updateCompany(long companyId,
347                    java.lang.String virtualHostname, java.lang.String mx, int maxUsers)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException {
350                    return _companyLocalService.updateCompany(companyId, virtualHostname,
351                            mx, maxUsers);
352            }
353    
354            public com.liferay.portal.model.Company updateCompany(long companyId,
355                    java.lang.String virtualHostname, java.lang.String mx,
356                    java.lang.String homeURL, java.lang.String name,
357                    java.lang.String legalName, java.lang.String legalId,
358                    java.lang.String legalType, java.lang.String sicCode,
359                    java.lang.String tickerSymbol, java.lang.String industry,
360                    java.lang.String type, java.lang.String size)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _companyLocalService.updateCompany(companyId, virtualHostname,
364                            mx, homeURL, name, legalName, legalId, legalType, sicCode,
365                            tickerSymbol, industry, type, size);
366            }
367    
368            public void updateDisplay(long companyId, java.lang.String languageId,
369                    java.lang.String timeZoneId)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    _companyLocalService.updateDisplay(companyId, languageId, timeZoneId);
373            }
374    
375            public void updateLogo(long companyId, byte[] bytes)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    _companyLocalService.updateLogo(companyId, bytes);
379            }
380    
381            public void updateLogo(long companyId, java.io.File file)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException {
384                    _companyLocalService.updateLogo(companyId, file);
385            }
386    
387            public void updateLogo(long companyId, java.io.InputStream is)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    _companyLocalService.updateLogo(companyId, is);
391            }
392    
393            public void updatePreferences(long companyId,
394                    com.liferay.portal.kernel.util.UnicodeProperties properties)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    _companyLocalService.updatePreferences(companyId, properties);
397            }
398    
399            public void updateSecurity(long companyId, java.lang.String authType,
400                    boolean autoLogin, boolean sendPassword, boolean strangers,
401                    boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    _companyLocalService.updateSecurity(companyId, authType, autoLogin,
404                            sendPassword, strangers, strangersWithMx, strangersVerify,
405                            communityLogo);
406            }
407    
408            public CompanyLocalService getWrappedCompanyLocalService() {
409                    return _companyLocalService;
410            }
411    
412            public void setWrappedCompanyLocalService(
413                    CompanyLocalService companyLocalService) {
414                    _companyLocalService = companyLocalService;
415            }
416    
417            private CompanyLocalService _companyLocalService;
418    }