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