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 CompanyService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see CompanyService
024     * @generated
025     */
026    @ProviderType
027    public class CompanyServiceWrapper implements CompanyService,
028            ServiceWrapper<CompanyService> {
029            public CompanyServiceWrapper(CompanyService companyService) {
030                    _companyService = companyService;
031            }
032    
033            /**
034            * Adds a company.
035            *
036            * @param webId the company's web domain
037            * @param virtualHost the company's virtual host name
038            * @param mx the company's mail domain
039            * @param system whether the company is the very first company (i.e., the
040            * @param maxUsers the max number of company users (optionally
041            <code>0</code>)
042            * @param active whether the company is active
043            * @return the company
044            */
045            @Override
046            public com.liferay.portal.kernel.model.Company addCompany(
047                    java.lang.String webId, java.lang.String virtualHost,
048                    java.lang.String mx, boolean system, int maxUsers, boolean active)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _companyService.addCompany(webId, virtualHost, mx, system,
051                            maxUsers, active);
052            }
053    
054            @Override
055            public com.liferay.portal.kernel.model.Company deleteCompany(long companyId)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    return _companyService.deleteCompany(companyId);
058            }
059    
060            /**
061            * Returns the company with the primary key.
062            *
063            * @param companyId the primary key of the company
064            * @return Returns the company with the primary key
065            */
066            @Override
067            public com.liferay.portal.kernel.model.Company getCompanyById(
068                    long companyId)
069                    throws com.liferay.portal.kernel.exception.PortalException {
070                    return _companyService.getCompanyById(companyId);
071            }
072    
073            /**
074            * Returns the company with the logo.
075            *
076            * @param logoId the ID of the company's logo
077            * @return Returns the company with the logo
078            */
079            @Override
080            public com.liferay.portal.kernel.model.Company getCompanyByLogoId(
081                    long logoId) throws com.liferay.portal.kernel.exception.PortalException {
082                    return _companyService.getCompanyByLogoId(logoId);
083            }
084    
085            /**
086            * Returns the company with the mail domian.
087            *
088            * @param mx the company's mail domain
089            * @return Returns the company with the mail domain
090            */
091            @Override
092            public com.liferay.portal.kernel.model.Company getCompanyByMx(
093                    java.lang.String mx)
094                    throws com.liferay.portal.kernel.exception.PortalException {
095                    return _companyService.getCompanyByMx(mx);
096            }
097    
098            /**
099            * Returns the company with the virtual host name.
100            *
101            * @param virtualHost the company's virtual host name
102            * @return Returns the company with the virtual host name
103            */
104            @Override
105            public com.liferay.portal.kernel.model.Company getCompanyByVirtualHost(
106                    java.lang.String virtualHost)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    return _companyService.getCompanyByVirtualHost(virtualHost);
109            }
110    
111            /**
112            * Returns the company with the web domain.
113            *
114            * @param webId the company's web domain
115            * @return Returns the company with the web domain
116            */
117            @Override
118            public com.liferay.portal.kernel.model.Company getCompanyByWebId(
119                    java.lang.String webId)
120                    throws com.liferay.portal.kernel.exception.PortalException {
121                    return _companyService.getCompanyByWebId(webId);
122            }
123    
124            /**
125            * Updates the company
126            *
127            * @param companyId the primary key of the company
128            * @param virtualHost the company's virtual host name
129            * @param mx the company's mail domain
130            * @param maxUsers the max number of company users (optionally
131            <code>0</code>)
132            * @param active whether the company is active
133            * @return the company with the primary key
134            */
135            @Override
136            public com.liferay.portal.kernel.model.Company updateCompany(
137                    long companyId, java.lang.String virtualHost, java.lang.String mx,
138                    int maxUsers, boolean active)
139                    throws com.liferay.portal.kernel.exception.PortalException {
140                    return _companyService.updateCompany(companyId, virtualHost, mx,
141                            maxUsers, active);
142            }
143    
144            /**
145            * Updates the company with additional account information.
146            *
147            * @param companyId the primary key of the company
148            * @param virtualHost the company's virtual host name
149            * @param mx the company's mail domain
150            * @param homeURL the company's home URL (optionally <code>null</code>)
151            * @param logo whether to update the company's logo
152            * @param logoBytes the new logo image data
153            * @param name the company's account name (optionally <code>null</code>)
154            * @param legalName the company's account legal name (optionally
155            <code>null</code>)
156            * @param legalId the company's account legal ID (optionally
157            <code>null</code>)
158            * @param legalType the company's account legal type (optionally
159            <code>null</code>)
160            * @param sicCode the company's account SIC code (optionally
161            <code>null</code>)
162            * @param tickerSymbol the company's account ticker symbol (optionally
163            <code>null</code>)
164            * @param industry the the company's account industry (optionally
165            <code>null</code>)
166            * @param type the company's account type (optionally <code>null</code>)
167            * @param size the company's account size (optionally <code>null</code>)
168            * @return the the company with the primary key
169            */
170            @Override
171            public com.liferay.portal.kernel.model.Company updateCompany(
172                    long companyId, java.lang.String virtualHost, java.lang.String mx,
173                    java.lang.String homeURL, boolean logo, byte[] logoBytes,
174                    java.lang.String name, java.lang.String legalName,
175                    java.lang.String legalId, java.lang.String legalType,
176                    java.lang.String sicCode, java.lang.String tickerSymbol,
177                    java.lang.String industry, java.lang.String type, java.lang.String size)
178                    throws com.liferay.portal.kernel.exception.PortalException {
179                    return _companyService.updateCompany(companyId, virtualHost, mx,
180                            homeURL, logo, logoBytes, name, legalName, legalId, legalType,
181                            sicCode, tickerSymbol, industry, type, size);
182            }
183    
184            /**
185            * Updates the company with addition information.
186            *
187            * @param companyId the primary key of the company
188            * @param virtualHost the company's virtual host name
189            * @param mx the company's mail domain
190            * @param homeURL the company's home URL (optionally <code>null</code>)
191            * @param logo if the company has a custom logo
192            * @param logoBytes the new logo image data
193            * @param name the company's account name (optionally <code>null</code>)
194            * @param legalName the company's account legal name (optionally
195            <code>null</code>)
196            * @param legalId the company's accout legal ID (optionally
197            <code>null</code>)
198            * @param legalType the company's account legal type (optionally
199            <code>null</code>)
200            * @param sicCode the company's account SIC code (optionally
201            <code>null</code>)
202            * @param tickerSymbol the company's account ticker symbol (optionally
203            <code>null</code>)
204            * @param industry the the company's account industry (optionally
205            <code>null</code>)
206            * @param type the company's account type (optionally <code>null</code>)
207            * @param size the company's account size (optionally <code>null</code>)
208            * @param languageId the ID of the company's default user's language
209            * @param timeZoneId the ID of the company's default user's time zone
210            * @param addresses the company's addresses
211            * @param emailAddresses the company's email addresses
212            * @param phones the company's phone numbers
213            * @param websites the company's websites
214            * @param properties the company's properties
215            * @return the company with the primary key
216            */
217            @Override
218            public com.liferay.portal.kernel.model.Company updateCompany(
219                    long companyId, java.lang.String virtualHost, java.lang.String mx,
220                    java.lang.String homeURL, boolean logo, byte[] logoBytes,
221                    java.lang.String name, java.lang.String legalName,
222                    java.lang.String legalId, java.lang.String legalType,
223                    java.lang.String sicCode, java.lang.String tickerSymbol,
224                    java.lang.String industry, java.lang.String type,
225                    java.lang.String size, java.lang.String languageId,
226                    java.lang.String timeZoneId,
227                    java.util.List<com.liferay.portal.kernel.model.Address> addresses,
228                    java.util.List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
229                    java.util.List<com.liferay.portal.kernel.model.Phone> phones,
230                    java.util.List<com.liferay.portal.kernel.model.Website> websites,
231                    com.liferay.portal.kernel.util.UnicodeProperties properties)
232                    throws com.liferay.portal.kernel.exception.PortalException {
233                    return _companyService.updateCompany(companyId, virtualHost, mx,
234                            homeURL, logo, logoBytes, name, legalName, legalId, legalType,
235                            sicCode, tickerSymbol, industry, type, size, languageId,
236                            timeZoneId, addresses, emailAddresses, phones, websites, properties);
237            }
238    
239            /**
240            * Updates the company with additional account information.
241            *
242            * @param companyId the primary key of the company
243            * @param virtualHost the company's virtual host name
244            * @param mx the company's mail domain
245            * @param homeURL the company's home URL (optionally <code>null</code>)
246            * @param name the company's account name (optionally
247            <code>null</code>)
248            * @param legalName the company's account legal name (optionally
249            <code>null</code>)
250            * @param legalId the company's account legal ID (optionally
251            <code>null</code>)
252            * @param legalType the company's account legal type (optionally
253            <code>null</code>)
254            * @param sicCode the company's account SIC code (optionally
255            <code>null</code>)
256            * @param tickerSymbol the company's account ticker symbol (optionally
257            <code>null</code>)
258            * @param industry the the company's account industry (optionally
259            <code>null</code>)
260            * @param type the company's account type (optionally
261            <code>null</code>)
262            * @param size the company's account size (optionally
263            <code>null</code>)
264            * @return the the company with the primary key
265            * @deprecated As of 7.0.0, replaced by {@link #updateCompany(long, String,
266            String, String, boolean, byte[], String, String, String,
267            String, String, String, String, String, String)}
268            */
269            @Deprecated
270            @Override
271            public com.liferay.portal.kernel.model.Company updateCompany(
272                    long companyId, java.lang.String virtualHost, java.lang.String mx,
273                    java.lang.String homeURL, java.lang.String name,
274                    java.lang.String legalName, java.lang.String legalId,
275                    java.lang.String legalType, java.lang.String sicCode,
276                    java.lang.String tickerSymbol, java.lang.String industry,
277                    java.lang.String type, java.lang.String size)
278                    throws com.liferay.portal.kernel.exception.PortalException {
279                    return _companyService.updateCompany(companyId, virtualHost, mx,
280                            homeURL, name, legalName, legalId, legalType, sicCode,
281                            tickerSymbol, industry, type, size);
282            }
283    
284            /**
285            * Updates the company with addition information.
286            *
287            * @param companyId the primary key of the company
288            * @param virtualHost the company's virtual host name
289            * @param mx the company's mail domain
290            * @param homeURL the company's home URL (optionally <code>null</code>)
291            * @param name the company's account name (optionally
292            <code>null</code>)
293            * @param legalName the company's account legal name (optionally
294            <code>null</code>)
295            * @param legalId the company's accout legal ID (optionally
296            <code>null</code>)
297            * @param legalType the company's account legal type (optionally
298            <code>null</code>)
299            * @param sicCode the company's account SIC code (optionally
300            <code>null</code>)
301            * @param tickerSymbol the company's account ticker symbol (optionally
302            <code>null</code>)
303            * @param industry the the company's account industry (optionally
304            <code>null</code>)
305            * @param type the company's account type (optionally
306            <code>null</code>)
307            * @param size the company's account size (optionally
308            <code>null</code>)
309            * @param languageId the ID of the company's default user's language
310            * @param timeZoneId the ID of the company's default user's time zone
311            * @param addresses the company's addresses
312            * @param emailAddresses the company's email addresses
313            * @param phones the company's phone numbers
314            * @param websites the company's websites
315            * @param properties the company's properties
316            * @return the company with the primary key
317            * @deprecated As of 7.0.0, replaced by {@link #updateCompany(long, String,
318            String, String, boolean, byte[], String, String, String,
319            String, String, String, String, String, String, String,
320            String, List, List, List, List, UnicodeProperties)}
321            */
322            @Deprecated
323            @Override
324            public com.liferay.portal.kernel.model.Company updateCompany(
325                    long companyId, java.lang.String virtualHost, java.lang.String mx,
326                    java.lang.String homeURL, java.lang.String name,
327                    java.lang.String legalName, java.lang.String legalId,
328                    java.lang.String legalType, java.lang.String sicCode,
329                    java.lang.String tickerSymbol, java.lang.String industry,
330                    java.lang.String type, java.lang.String size,
331                    java.lang.String languageId, java.lang.String timeZoneId,
332                    java.util.List<com.liferay.portal.kernel.model.Address> addresses,
333                    java.util.List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
334                    java.util.List<com.liferay.portal.kernel.model.Phone> phones,
335                    java.util.List<com.liferay.portal.kernel.model.Website> websites,
336                    com.liferay.portal.kernel.util.UnicodeProperties properties)
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    return _companyService.updateCompany(companyId, virtualHost, mx,
339                            homeURL, name, legalName, legalId, legalType, sicCode,
340                            tickerSymbol, industry, type, size, languageId, timeZoneId,
341                            addresses, emailAddresses, phones, websites, properties);
342            }
343    
344            /**
345            * Updates the company's logo.
346            *
347            * @param companyId the primary key of the company
348            * @param bytes the bytes of the company's logo image
349            * @return the company with the primary key
350            */
351            @Override
352            public com.liferay.portal.kernel.model.Company updateLogo(long companyId,
353                    byte[] bytes)
354                    throws com.liferay.portal.kernel.exception.PortalException {
355                    return _companyService.updateLogo(companyId, bytes);
356            }
357    
358            /**
359            * Updates the company's logo.
360            *
361            * @param companyId the primary key of the company
362            * @param inputStream the input stream of the company's logo image
363            * @return the company with the primary key
364            */
365            @Override
366            public com.liferay.portal.kernel.model.Company updateLogo(long companyId,
367                    java.io.InputStream inputStream)
368                    throws com.liferay.portal.kernel.exception.PortalException {
369                    return _companyService.updateLogo(companyId, inputStream);
370            }
371    
372            /**
373            * Returns the OSGi service identifier.
374            *
375            * @return the OSGi service identifier
376            */
377            @Override
378            public java.lang.String getOSGiServiceIdentifier() {
379                    return _companyService.getOSGiServiceIdentifier();
380            }
381    
382            /**
383            * Deletes the company's logo.
384            *
385            * @param companyId the primary key of the company
386            */
387            @Override
388            public void deleteLogo(long companyId)
389                    throws com.liferay.portal.kernel.exception.PortalException {
390                    _companyService.deleteLogo(companyId);
391            }
392    
393            /**
394            * Removes the values that match the keys of the company's preferences.
395            *
396            * This method is called by {@link
397            * com.liferay.portlet.portalsettings.action.EditLDAPServerAction} remotely
398            * through {@link CompanyService}.
399            *
400            * @param companyId the primary key of the company
401            * @param keys the company's preferences keys to be remove
402            */
403            @Override
404            public void removePreferences(long companyId, java.lang.String[] keys)
405                    throws com.liferay.portal.kernel.exception.PortalException {
406                    _companyService.removePreferences(companyId, keys);
407            }
408    
409            /**
410            * Update the company's display.
411            *
412            * @param companyId the primary key of the company
413            * @param languageId the ID of the company's default user's language
414            * @param timeZoneId the ID of the company's default user's time zone
415            */
416            @Override
417            public void updateDisplay(long companyId, java.lang.String languageId,
418                    java.lang.String timeZoneId)
419                    throws com.liferay.portal.kernel.exception.PortalException {
420                    _companyService.updateDisplay(companyId, languageId, timeZoneId);
421            }
422    
423            /**
424            * Updates the company's preferences. The company's default properties are
425            * found in portal.properties.
426            *
427            * @param companyId the primary key of the company
428            * @param properties the company's properties. See {@link UnicodeProperties}
429            */
430            @Override
431            public void updatePreferences(long companyId,
432                    com.liferay.portal.kernel.util.UnicodeProperties properties)
433                    throws com.liferay.portal.kernel.exception.PortalException {
434                    _companyService.updatePreferences(companyId, properties);
435            }
436    
437            /**
438            * Updates the company's security properties.
439            *
440            * @param companyId the primary key of the company
441            * @param authType the company's method of authenticating users
442            * @param autoLogin whether to allow users to select the "remember me"
443            feature
444            * @param sendPassword whether to allow users to ask the company to send
445            their passwords
446            * @param strangers whether to allow strangers to create accounts to
447            register themselves in the company
448            * @param strangersWithMx whether to allow strangers to create accounts with
449            email addresses that match the company mail suffix
450            * @param strangersVerify whether to require strangers who create accounts
451            to be verified via email
452            * @param siteLogo whether to to allow site administrators to use their own
453            logo instead of the enterprise logo
454            */
455            @Override
456            public void updateSecurity(long companyId, java.lang.String authType,
457                    boolean autoLogin, boolean sendPassword, boolean strangers,
458                    boolean strangersWithMx, boolean strangersVerify, boolean siteLogo)
459                    throws com.liferay.portal.kernel.exception.PortalException {
460                    _companyService.updateSecurity(companyId, authType, autoLogin,
461                            sendPassword, strangers, strangersWithMx, strangersVerify, siteLogo);
462            }
463    
464            @Override
465            public CompanyService getWrappedService() {
466                    return _companyService;
467            }
468    
469            @Override
470            public void setWrappedService(CompanyService companyService) {
471                    _companyService = companyService;
472            }
473    
474            private CompanyService _companyService;
475    }