001    /**
002     * Copyright (c) 2000-2013 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    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link CompanyLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see CompanyLocalService
024     * @generated
025     */
026    @ProviderType
027    public class CompanyLocalServiceWrapper implements CompanyLocalService,
028            ServiceWrapper<CompanyLocalService> {
029            public CompanyLocalServiceWrapper(CompanyLocalService companyLocalService) {
030                    _companyLocalService = companyLocalService;
031            }
032    
033            /**
034            * Adds the company to the database. Also notifies the appropriate model listeners.
035            *
036            * @param company the company
037            * @return the company that was added
038            * @throws SystemException if a system exception occurred
039            */
040            @Override
041            public com.liferay.portal.model.Company addCompany(
042                    com.liferay.portal.model.Company company)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _companyLocalService.addCompany(company);
045            }
046    
047            /**
048            * Creates a new company with the primary key. Does not add the company to the database.
049            *
050            * @param companyId the primary key for the new company
051            * @return the new company
052            */
053            @Override
054            public com.liferay.portal.model.Company createCompany(long companyId) {
055                    return _companyLocalService.createCompany(companyId);
056            }
057    
058            /**
059            * Deletes the company with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param companyId the primary key of the company
062            * @return the company that was removed
063            * @throws PortalException if a company with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            @Override
067            public com.liferay.portal.model.Company deleteCompany(long companyId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _companyLocalService.deleteCompany(companyId);
071            }
072    
073            /**
074            * Deletes the company from the database. Also notifies the appropriate model listeners.
075            *
076            * @param company the company
077            * @return the company that was removed
078            * @throws PortalException
079            * @throws SystemException if a system exception occurred
080            */
081            @Override
082            public com.liferay.portal.model.Company deleteCompany(
083                    com.liferay.portal.model.Company company)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return _companyLocalService.deleteCompany(company);
087            }
088    
089            @Override
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091                    return _companyLocalService.dynamicQuery();
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @Override
102            @SuppressWarnings("rawtypes")
103            public java.util.List dynamicQuery(
104                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return _companyLocalService.dynamicQuery(dynamicQuery);
107            }
108    
109            /**
110            * Performs a dynamic query on the database and returns a range of the matching rows.
111            *
112            * <p>
113            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.CompanyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
114            * </p>
115            *
116            * @param dynamicQuery the dynamic query
117            * @param start the lower bound of the range of model instances
118            * @param end the upper bound of the range of model instances (not inclusive)
119            * @return the range of matching rows
120            * @throws SystemException if a system exception occurred
121            */
122            @Override
123            @SuppressWarnings("rawtypes")
124            public java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return _companyLocalService.dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.CompanyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @Override
145            @SuppressWarnings("rawtypes")
146            public java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _companyLocalService.dynamicQuery(dynamicQuery, start, end,
152                            orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _companyLocalService.dynamicQueryCount(dynamicQuery);
167            }
168    
169            /**
170            * Returns the number of rows that match the dynamic query.
171            *
172            * @param dynamicQuery the dynamic query
173            * @param projection the projection to apply to the query
174            * @return the number of rows that match the dynamic query
175            * @throws SystemException if a system exception occurred
176            */
177            @Override
178            public long dynamicQueryCount(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
180                    com.liferay.portal.kernel.dao.orm.Projection projection)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return _companyLocalService.dynamicQueryCount(dynamicQuery, projection);
183            }
184    
185            @Override
186            public com.liferay.portal.model.Company fetchCompany(long companyId)
187                    throws com.liferay.portal.kernel.exception.SystemException {
188                    return _companyLocalService.fetchCompany(companyId);
189            }
190    
191            /**
192            * Returns the company with the primary key.
193            *
194            * @param companyId the primary key of the company
195            * @return the company
196            * @throws PortalException if a company with the primary key could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            @Override
200            public com.liferay.portal.model.Company getCompany(long companyId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _companyLocalService.getCompany(companyId);
204            }
205    
206            @Override
207            public com.liferay.portal.model.PersistedModel getPersistedModel(
208                    java.io.Serializable primaryKeyObj)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    return _companyLocalService.getPersistedModel(primaryKeyObj);
212            }
213    
214            /**
215            * Returns a range of all the companies.
216            *
217            * <p>
218            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.CompanyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
219            * </p>
220            *
221            * @param start the lower bound of the range of companies
222            * @param end the upper bound of the range of companies (not inclusive)
223            * @return the range of companies
224            * @throws SystemException if a system exception occurred
225            */
226            @Override
227            public java.util.List<com.liferay.portal.model.Company> getCompanies(
228                    int start, int end)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _companyLocalService.getCompanies(start, end);
231            }
232    
233            /**
234            * Returns the number of companies.
235            *
236            * @return the number of companies
237            * @throws SystemException if a system exception occurred
238            */
239            @Override
240            public int getCompaniesCount()
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return _companyLocalService.getCompaniesCount();
243            }
244    
245            /**
246            * Updates the company in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
247            *
248            * @param company the company
249            * @return the company that was updated
250            * @throws SystemException if a system exception occurred
251            */
252            @Override
253            public com.liferay.portal.model.Company updateCompany(
254                    com.liferay.portal.model.Company company)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    return _companyLocalService.updateCompany(company);
257            }
258    
259            /**
260            * Returns the Spring bean ID for this bean.
261            *
262            * @return the Spring bean ID for this bean
263            */
264            @Override
265            public java.lang.String getBeanIdentifier() {
266                    return _companyLocalService.getBeanIdentifier();
267            }
268    
269            /**
270            * Sets the Spring bean ID for this bean.
271            *
272            * @param beanIdentifier the Spring bean ID for this bean
273            */
274            @Override
275            public void setBeanIdentifier(java.lang.String beanIdentifier) {
276                    _companyLocalService.setBeanIdentifier(beanIdentifier);
277            }
278    
279            /**
280            * Adds a company.
281            *
282            * @param webId the the company's web domain
283            * @param virtualHostname the company's virtual host name
284            * @param mx the company's mail domain
285            * @param shardName the company's shard
286            * @param system whether the company is the very first company (i.e., the
287            super company)
288            * @param maxUsers the max number of company users (optionally
289            <code>0</code>)
290            * @param active whether the company is active
291            * @return the company
292            * @throws PortalException if the web domain, virtual host name, or mail
293            domain was invalid
294            * @throws SystemException if a system exception occurred
295            */
296            @Override
297            public com.liferay.portal.model.Company addCompany(java.lang.String webId,
298                    java.lang.String virtualHostname, java.lang.String mx,
299                    java.lang.String shardName, boolean system, int maxUsers, boolean active)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    return _companyLocalService.addCompany(webId, virtualHostname, mx,
303                            shardName, system, maxUsers, active);
304            }
305    
306            /**
307            * Returns the company with the web domain.
308            *
309            * The method sets mail domain to the web domain, and the shard name to
310            * the default name set in portal.properties
311            *
312            * @param webId the company's web domain
313            * @return the company with the web domain
314            * @throws PortalException if a portal exception occurred
315            * @throws SystemException if a system exception occurred
316            */
317            @Override
318            public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _companyLocalService.checkCompany(webId);
322            }
323    
324            /**
325            * Returns the company with the web domain, mail domain, and shard. If no
326            * such company exits, the method will create a new company.
327            *
328            * The method goes through a series of checks to ensure that the company
329            * contains default users, groups, etc.
330            *
331            * @param webId the company's web domain
332            * @param mx the company's mail domain
333            * @param shardName the company's shard
334            * @return the company with the web domain, mail domain, and shard
335            * @throws PortalException if a portal exception occurred
336            * @throws SystemException if a system exception occurred
337            */
338            @Override
339            public com.liferay.portal.model.Company checkCompany(
340                    java.lang.String webId, java.lang.String mx, java.lang.String shardName)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException {
343                    return _companyLocalService.checkCompany(webId, mx, shardName);
344            }
345    
346            /**
347            * Checks if the company has an encryption key. It will create a key if one
348            * does not exist.
349            *
350            * @param companyId the primary key of the company
351            * @throws PortalException if a company with the primary key could not be
352            found
353            * @throws SystemException if a system exception occurred
354            */
355            @Override
356            public void checkCompanyKey(long companyId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    _companyLocalService.checkCompanyKey(companyId);
360            }
361    
362            /**
363            * Deletes the company's logo.
364            *
365            * @param companyId the primary key of the company
366            * @throws PortalException if the company with the primary key could not be
367            found or if the company's logo could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            @Override
371            public void deleteLogo(long companyId)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    _companyLocalService.deleteLogo(companyId);
375            }
376    
377            /**
378            * Returns the company with the primary key.
379            *
380            * @param companyId the primary key of the company
381            * @return the company with the primary key, <code>null</code> if a company
382            with the primary key could not be found
383            * @throws SystemException if a system exception occurred
384            */
385            @Override
386            public com.liferay.portal.model.Company fetchCompanyById(long companyId)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _companyLocalService.fetchCompanyById(companyId);
389            }
390    
391            /**
392            * Returns the company with the virtual host name.
393            *
394            * @param virtualHostname the virtual host name
395            * @return the company with the virtual host name, <code>null</code> if a
396            company with the virtual host could not be found
397            * @throws SystemException if a system exception occurred
398            */
399            @Override
400            public com.liferay.portal.model.Company fetchCompanyByVirtualHost(
401                    java.lang.String virtualHostname)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _companyLocalService.fetchCompanyByVirtualHost(virtualHostname);
404            }
405    
406            /**
407            * Returns all the companies.
408            *
409            * @return the companies
410            * @throws SystemException if a system exception occurred
411            */
412            @Override
413            public java.util.List<com.liferay.portal.model.Company> getCompanies()
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return _companyLocalService.getCompanies();
416            }
417    
418            /**
419            * Returns all the companies used by WSRP.
420            *
421            * @param system whether the company is the very first company (i.e., the
422            super company)
423            * @return the companies used by WSRP
424            * @throws SystemException if a system exception occurred
425            */
426            @Override
427            public java.util.List<com.liferay.portal.model.Company> getCompanies(
428                    boolean system)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return _companyLocalService.getCompanies(system);
431            }
432    
433            /**
434            * Returns the number of companies used by WSRP.
435            *
436            * @param system whether the company is the very first company (i.e., the
437            super company)
438            * @return the number of companies used by WSRP
439            * @throws SystemException if a system exception occurred
440            */
441            @Override
442            public int getCompaniesCount(boolean system)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    return _companyLocalService.getCompaniesCount(system);
445            }
446    
447            /**
448            * Returns the company with the primary key.
449            *
450            * @param companyId the primary key of the company
451            * @return the company with the primary key
452            * @throws PortalException if a company with the primary key could not be
453            found
454            * @throws SystemException if a system exception occurred
455            */
456            @Override
457            public com.liferay.portal.model.Company getCompanyById(long companyId)
458                    throws com.liferay.portal.kernel.exception.PortalException,
459                            com.liferay.portal.kernel.exception.SystemException {
460                    return _companyLocalService.getCompanyById(companyId);
461            }
462    
463            /**
464            * Returns the company with the logo.
465            *
466            * @param logoId the ID of the company's logo
467            * @return the company with the logo
468            * @throws PortalException if the company with the logo could not be found
469            * @throws SystemException if a system exception occurred
470            */
471            @Override
472            public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException {
475                    return _companyLocalService.getCompanyByLogoId(logoId);
476            }
477    
478            /**
479            * Returns the company with the mail domain.
480            *
481            * @param mx the company's mail domain
482            * @return the company with the mail domain
483            * @throws PortalException if the company with the mail domain could not be
484            found
485            * @throws SystemException if a system exception occurred
486            */
487            @Override
488            public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    return _companyLocalService.getCompanyByMx(mx);
492            }
493    
494            /**
495            * Returns the company with the virtual host name.
496            *
497            * @param virtualHostname the company's virtual host name
498            * @return the company with the virtual host name
499            * @throws PortalException if the company with the virtual host name could
500            not be found or if the virtual host was not associated with a
501            company
502            * @throws SystemException if a system exception occurred
503            */
504            @Override
505            public com.liferay.portal.model.Company getCompanyByVirtualHost(
506                    java.lang.String virtualHostname)
507                    throws com.liferay.portal.kernel.exception.PortalException,
508                            com.liferay.portal.kernel.exception.SystemException {
509                    return _companyLocalService.getCompanyByVirtualHost(virtualHostname);
510            }
511    
512            /**
513            * Returns the company with the web domain.
514            *
515            * @param webId the company's web domain
516            * @return the company with the web domain
517            * @throws PortalException if the company with the web domain could not be
518            found
519            * @throws SystemException if a system exception occurred
520            */
521            @Override
522            public com.liferay.portal.model.Company getCompanyByWebId(
523                    java.lang.String webId)
524                    throws com.liferay.portal.kernel.exception.PortalException,
525                            com.liferay.portal.kernel.exception.SystemException {
526                    return _companyLocalService.getCompanyByWebId(webId);
527            }
528    
529            /**
530            * Returns the user's company.
531            *
532            * @param userId the primary key of the user
533            * @return Returns the first company if there is only one company or the
534            user's company if there are more than one company; <code>0</code>
535            otherwise
536            * @throws Exception if a user with the primary key could not be found
537            */
538            @Override
539            public long getCompanyIdByUserId(long userId) throws java.lang.Exception {
540                    return _companyLocalService.getCompanyIdByUserId(userId);
541            }
542    
543            /**
544            * Removes the values that match the keys of the company's preferences.
545            *
546            * This method is called by {@link
547            * com.liferay.portlet.portalsettings.action.EditLDAPServerAction} remotely
548            * through {@link com.liferay.portal.service.CompanyService}.
549            *
550            * @param companyId the primary key of the company
551            * @param keys the company's preferences keys to be remove
552            * @throws SystemException if a system exception occurred
553            */
554            @Override
555            public void removePreferences(long companyId, java.lang.String[] keys)
556                    throws com.liferay.portal.kernel.exception.SystemException {
557                    _companyLocalService.removePreferences(companyId, keys);
558            }
559    
560            /**
561            * Returns an ordered range of all assets that match the keywords in the
562            * company.
563            *
564            * The method is called in {@link
565            * com.liferay.portal.search.PortalOpenSearchImpl} which is not longer used
566            * by the Search portlet.
567            *
568            * @param companyId the primary key of the company
569            * @param userId the primary key of the user
570            * @param keywords the keywords (space separated),which may occur in assets
571            in the company (optionally <code>null</code>)
572            * @param start the lower bound of the range of assets to return
573            * @param end the upper bound of the range of assets to return (not
574            inclusive)
575            * @return the matching assets in the company
576            * @throws SystemException if a system exception occurred
577            */
578            @Override
579            public com.liferay.portal.kernel.search.Hits search(long companyId,
580                    long userId, java.lang.String keywords, int start, int end)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return _companyLocalService.search(companyId, userId, keywords, start,
583                            end);
584            }
585    
586            /**
587            * Returns an ordered range of all assets that match the keywords in the
588            * portlet within the company.
589            *
590            * @param companyId the primary key of the company
591            * @param userId the primary key of the user
592            * @param portletId the primary key of the portlet (optionally
593            <code>null</code>)
594            * @param groupId the primary key of the group (optionally <code>0</code>)
595            * @param type the mime type of assets to return(optionally
596            <code>null</code>)
597            * @param keywords the keywords (space separated), which may occur in any
598            assets in the portlet (optionally <code>null</code>)
599            * @param start the lower bound of the range of assets to return
600            * @param end the upper bound of the range of assets to return (not
601            inclusive)
602            * @return the matching assets in the portlet within the company
603            * @throws SystemException if a system exception occurred
604            */
605            @Override
606            public com.liferay.portal.kernel.search.Hits search(long companyId,
607                    long userId, java.lang.String portletId, long groupId,
608                    java.lang.String type, java.lang.String keywords, int start, int end)
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    return _companyLocalService.search(companyId, userId, portletId,
611                            groupId, type, keywords, start, end);
612            }
613    
614            /**
615            * Updates the company.
616            *
617            * @param companyId the primary key of the company
618            * @param virtualHostname the company's virtual host name
619            * @param mx the company's mail domain
620            * @param maxUsers the max number of company users (optionally
621            <code>0</code>)
622            * @param active whether the company is active
623            * @return the company with the primary key
624            * @throws PortalException if a company with primary key could not be found
625            or if the new information was invalid
626            * @throws SystemException if a system exception occurred
627            */
628            @Override
629            public com.liferay.portal.model.Company updateCompany(long companyId,
630                    java.lang.String virtualHostname, java.lang.String mx, int maxUsers,
631                    boolean active)
632                    throws com.liferay.portal.kernel.exception.PortalException,
633                            com.liferay.portal.kernel.exception.SystemException {
634                    return _companyLocalService.updateCompany(companyId, virtualHostname,
635                            mx, maxUsers, active);
636            }
637    
638            /**
639            * Update the company with additional account information.
640            *
641            * @param companyId the primary key of the company
642            * @param virtualHostname the company's virtual host name
643            * @param mx the company's mail domain
644            * @param homeURL the company's home URL (optionally <code>null</code>)
645            * @param name the company's account name(optionally <code>null</code>)
646            * @param legalName the company's account legal name (optionally
647            <code>null</code>)
648            * @param legalId the company's account legal ID (optionally
649            <code>null</code>)
650            * @param legalType the company's account legal type (optionally
651            <code>null</code>)
652            * @param sicCode the company's account SIC code (optionally
653            <code>null</code>)
654            * @param tickerSymbol the company's account ticker symbol (optionally
655            <code>null</code>)
656            * @param industry the company's account industry (optionally
657            <code>null</code>)
658            * @param type the company's account type (optionally <code>null</code>)
659            * @param size the company's account size (optionally <code>null</code>)
660            * @return the company with the primary key
661            * @throws PortalException if a company with the primary key could not be
662            found or if the new information was invalid
663            * @throws SystemException if a system exception occurred
664            */
665            @Override
666            public com.liferay.portal.model.Company updateCompany(long companyId,
667                    java.lang.String virtualHostname, java.lang.String mx,
668                    java.lang.String homeURL, java.lang.String name,
669                    java.lang.String legalName, java.lang.String legalId,
670                    java.lang.String legalType, java.lang.String sicCode,
671                    java.lang.String tickerSymbol, java.lang.String industry,
672                    java.lang.String type, java.lang.String size)
673                    throws com.liferay.portal.kernel.exception.PortalException,
674                            com.liferay.portal.kernel.exception.SystemException {
675                    return _companyLocalService.updateCompany(companyId, virtualHostname,
676                            mx, homeURL, name, legalName, legalId, legalType, sicCode,
677                            tickerSymbol, industry, type, size);
678            }
679    
680            /**
681            * Update the company's display.
682            *
683            * @param companyId the primary key of the company
684            * @param languageId the ID of the company's default user's language
685            * @param timeZoneId the ID of the company's default user's time zone
686            * @throws PortalException if the company's default user could not be found
687            * @throws SystemException if a system exception occurred
688            */
689            @Override
690            public void updateDisplay(long companyId, java.lang.String languageId,
691                    java.lang.String timeZoneId)
692                    throws com.liferay.portal.kernel.exception.PortalException,
693                            com.liferay.portal.kernel.exception.SystemException {
694                    _companyLocalService.updateDisplay(companyId, languageId, timeZoneId);
695            }
696    
697            /**
698            * Updates the company's logo.
699            *
700            * @param companyId the primary key of the company
701            * @param bytes the bytes of the company's logo image
702            * @return the company with the primary key
703            * @throws PortalException if the company's logo ID could not be found or if
704            the logo's image was corrupted
705            * @throws SystemException if a system exception occurred
706            */
707            @Override
708            public com.liferay.portal.model.Company updateLogo(long companyId,
709                    byte[] bytes)
710                    throws com.liferay.portal.kernel.exception.PortalException,
711                            com.liferay.portal.kernel.exception.SystemException {
712                    return _companyLocalService.updateLogo(companyId, bytes);
713            }
714    
715            /**
716            * Updates the company's logo.
717            *
718            * @param companyId the primary key of the company
719            * @param file the file of the company's logo image
720            * @return the company with the primary key
721            * @throws PortalException the company's logo ID could not be found or if
722            the logo's image was corrupted
723            * @throws SystemException if a system exception occurred
724            */
725            @Override
726            public com.liferay.portal.model.Company updateLogo(long companyId,
727                    java.io.File file)
728                    throws com.liferay.portal.kernel.exception.PortalException,
729                            com.liferay.portal.kernel.exception.SystemException {
730                    return _companyLocalService.updateLogo(companyId, file);
731            }
732    
733            /**
734            * Update the company's logo.
735            *
736            * @param companyId the primary key of the company
737            * @param is the input stream of the company's logo image
738            * @return the company with the primary key
739            * @throws PortalException if the company's logo ID could not be found or if
740            the company's logo image was corrupted
741            * @throws SystemException if a system exception occurred
742            */
743            @Override
744            public com.liferay.portal.model.Company updateLogo(long companyId,
745                    java.io.InputStream is)
746                    throws com.liferay.portal.kernel.exception.PortalException,
747                            com.liferay.portal.kernel.exception.SystemException {
748                    return _companyLocalService.updateLogo(companyId, is);
749            }
750    
751            /**
752            * Updates the company's preferences. The company's default properties are
753            * found in portal.properties.
754            *
755            * @param companyId the primary key of the company
756            * @param properties the company's properties. See {@link
757            com.liferay.portal.kernel.util.UnicodeProperties}
758            * @throws PortalException if the properties contained new locales that were
759            not supported
760            * @throws SystemException if a system exception occurred
761            */
762            @Override
763            public void updatePreferences(long companyId,
764                    com.liferay.portal.kernel.util.UnicodeProperties properties)
765                    throws com.liferay.portal.kernel.exception.PortalException,
766                            com.liferay.portal.kernel.exception.SystemException {
767                    _companyLocalService.updatePreferences(companyId, properties);
768            }
769    
770            /**
771            * Updates the company's security properties.
772            *
773            * @param companyId the primary key of the company
774            * @param authType the company's method of authenticating users
775            * @param autoLogin whether to allow users to select the "remember me"
776            feature
777            * @param sendPassword whether to allow users to ask the company to send
778            their password
779            * @param strangers whether to allow strangers to create accounts register
780            themselves in the company
781            * @param strangersWithMx whether to allow strangers to create accounts
782            with email addresses that match the company mail suffix
783            * @param strangersVerify whether to require strangers who create accounts
784            to be verified via email
785            * @param siteLogo whether to allow site administrators to use their own
786            logo instead of the enterprise logo
787            * @throws SystemException if a system exception occurred
788            */
789            @Override
790            public void updateSecurity(long companyId, java.lang.String authType,
791                    boolean autoLogin, boolean sendPassword, boolean strangers,
792                    boolean strangersWithMx, boolean strangersVerify, boolean siteLogo)
793                    throws com.liferay.portal.kernel.exception.SystemException {
794                    _companyLocalService.updateSecurity(companyId, authType, autoLogin,
795                            sendPassword, strangers, strangersWithMx, strangersVerify, siteLogo);
796            }
797    
798            /**
799             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
800             */
801            public CompanyLocalService getWrappedCompanyLocalService() {
802                    return _companyLocalService;
803            }
804    
805            /**
806             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
807             */
808            public void setWrappedCompanyLocalService(
809                    CompanyLocalService companyLocalService) {
810                    _companyLocalService = companyLocalService;
811            }
812    
813            @Override
814            public CompanyLocalService getWrappedService() {
815                    return _companyLocalService;
816            }
817    
818            @Override
819            public void setWrappedService(CompanyLocalService companyLocalService) {
820                    _companyLocalService = companyLocalService;
821            }
822    
823            private CompanyLocalService _companyLocalService;
824    }