1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="CompanyServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link CompanyService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       CompanyService
32   * @generated
33   */
34  public class CompanyServiceWrapper implements CompanyService {
35      public CompanyServiceWrapper(CompanyService companyService) {
36          _companyService = companyService;
37      }
38  
39      public com.liferay.portal.model.Company addCompany(java.lang.String webId,
40          java.lang.String virtualHost, java.lang.String mx,
41          java.lang.String shardName, boolean system, int maxUsers)
42          throws com.liferay.portal.kernel.exception.PortalException,
43              com.liferay.portal.kernel.exception.SystemException {
44          return _companyService.addCompany(webId, virtualHost, mx, shardName,
45              system, maxUsers);
46      }
47  
48      public void deleteLogo(long companyId)
49          throws com.liferay.portal.kernel.exception.PortalException,
50              com.liferay.portal.kernel.exception.SystemException {
51          _companyService.deleteLogo(companyId);
52      }
53  
54      public com.liferay.portal.model.Company getCompanyById(long companyId)
55          throws com.liferay.portal.kernel.exception.PortalException,
56              com.liferay.portal.kernel.exception.SystemException {
57          return _companyService.getCompanyById(companyId);
58      }
59  
60      public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
61          throws com.liferay.portal.kernel.exception.PortalException,
62              com.liferay.portal.kernel.exception.SystemException {
63          return _companyService.getCompanyByLogoId(logoId);
64      }
65  
66      public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
67          throws com.liferay.portal.kernel.exception.PortalException,
68              com.liferay.portal.kernel.exception.SystemException {
69          return _companyService.getCompanyByMx(mx);
70      }
71  
72      public com.liferay.portal.model.Company getCompanyByVirtualHost(
73          java.lang.String virtualHost)
74          throws com.liferay.portal.kernel.exception.PortalException,
75              com.liferay.portal.kernel.exception.SystemException {
76          return _companyService.getCompanyByVirtualHost(virtualHost);
77      }
78  
79      public com.liferay.portal.model.Company getCompanyByWebId(
80          java.lang.String webId)
81          throws com.liferay.portal.kernel.exception.PortalException,
82              com.liferay.portal.kernel.exception.SystemException {
83          return _companyService.getCompanyByWebId(webId);
84      }
85  
86      public void removePreferences(long companyId, java.lang.String[] keys)
87          throws com.liferay.portal.kernel.exception.PortalException,
88              com.liferay.portal.kernel.exception.SystemException {
89          _companyService.removePreferences(companyId, keys);
90      }
91  
92      public com.liferay.portal.model.Company updateCompany(long companyId,
93          java.lang.String virtualHost, java.lang.String mx, int maxUsers)
94          throws com.liferay.portal.kernel.exception.PortalException,
95              com.liferay.portal.kernel.exception.SystemException {
96          return _companyService.updateCompany(companyId, virtualHost, mx,
97              maxUsers);
98      }
99  
100     public com.liferay.portal.model.Company updateCompany(long companyId,
101         java.lang.String virtualHost, java.lang.String mx,
102         java.lang.String homeURL, java.lang.String name,
103         java.lang.String legalName, java.lang.String legalId,
104         java.lang.String legalType, java.lang.String sicCode,
105         java.lang.String tickerSymbol, java.lang.String industry,
106         java.lang.String type, java.lang.String size)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return _companyService.updateCompany(companyId, virtualHost, mx,
110             homeURL, name, legalName, legalId, legalType, sicCode,
111             tickerSymbol, industry, type, size);
112     }
113 
114     public com.liferay.portal.model.Company updateCompany(long companyId,
115         java.lang.String virtualHost, java.lang.String mx,
116         java.lang.String homeURL, java.lang.String name,
117         java.lang.String legalName, java.lang.String legalId,
118         java.lang.String legalType, java.lang.String sicCode,
119         java.lang.String tickerSymbol, java.lang.String industry,
120         java.lang.String type, java.lang.String size,
121         java.lang.String languageId, java.lang.String timeZoneId,
122         java.util.List<com.liferay.portal.model.Address> addresses,
123         java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
124         java.util.List<com.liferay.portal.model.Phone> phones,
125         java.util.List<com.liferay.portal.model.Website> websites,
126         com.liferay.portal.kernel.util.UnicodeProperties properties)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException {
129         return _companyService.updateCompany(companyId, virtualHost, mx,
130             homeURL, name, legalName, legalId, legalType, sicCode,
131             tickerSymbol, industry, type, size, languageId, timeZoneId,
132             addresses, emailAddresses, phones, websites, properties);
133     }
134 
135     public void updateDisplay(long companyId, java.lang.String languageId,
136         java.lang.String timeZoneId)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException {
139         _companyService.updateDisplay(companyId, languageId, timeZoneId);
140     }
141 
142     public void updateLogo(long companyId, java.io.File file)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException {
145         _companyService.updateLogo(companyId, file);
146     }
147 
148     public void updatePreferences(long companyId,
149         com.liferay.portal.kernel.util.UnicodeProperties properties)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException {
152         _companyService.updatePreferences(companyId, properties);
153     }
154 
155     public void updateSecurity(long companyId, java.lang.String authType,
156         boolean autoLogin, boolean sendPassword, boolean strangers,
157         boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException {
160         _companyService.updateSecurity(companyId, authType, autoLogin,
161             sendPassword, strangers, strangersWithMx, strangersVerify,
162             communityLogo);
163     }
164 
165     public CompanyService getWrappedCompanyService() {
166         return _companyService;
167     }
168 
169     private CompanyService _companyService;
170 }