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