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