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