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