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)
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);
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)
94          throws com.liferay.portal.kernel.exception.PortalException,
95              com.liferay.portal.kernel.exception.SystemException {
96          return _companyService.updateCompany(companyId, virtualHost, mx);
97      }
98  
99      public com.liferay.portal.model.Company updateCompany(long companyId,
100         java.lang.String virtualHost, java.lang.String mx,
101         java.lang.String homeURL, java.lang.String name,
102         java.lang.String legalName, java.lang.String legalId,
103         java.lang.String legalType, java.lang.String sicCode,
104         java.lang.String tickerSymbol, java.lang.String industry,
105         java.lang.String type, java.lang.String size)
106         throws com.liferay.portal.kernel.exception.PortalException,
107             com.liferay.portal.kernel.exception.SystemException {
108         return _companyService.updateCompany(companyId, virtualHost, mx,
109             homeURL, name, legalName, legalId, legalType, sicCode,
110             tickerSymbol, industry, type, size);
111     }
112 
113     public com.liferay.portal.model.Company updateCompany(long companyId,
114         java.lang.String virtualHost, java.lang.String mx,
115         java.lang.String homeURL, java.lang.String name,
116         java.lang.String legalName, java.lang.String legalId,
117         java.lang.String legalType, java.lang.String sicCode,
118         java.lang.String tickerSymbol, java.lang.String industry,
119         java.lang.String type, java.lang.String size,
120         java.lang.String languageId, java.lang.String timeZoneId,
121         java.util.List<com.liferay.portal.model.Address> addresses,
122         java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
123         java.util.List<com.liferay.portal.model.Phone> phones,
124         java.util.List<com.liferay.portal.model.Website> websites,
125         com.liferay.portal.kernel.util.UnicodeProperties properties)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException {
128         return _companyService.updateCompany(companyId, virtualHost, mx,
129             homeURL, name, legalName, legalId, legalType, sicCode,
130             tickerSymbol, industry, type, size, languageId, timeZoneId,
131             addresses, emailAddresses, phones, websites, properties);
132     }
133 
134     public void updateDisplay(long companyId, java.lang.String languageId,
135         java.lang.String timeZoneId)
136         throws com.liferay.portal.kernel.exception.PortalException,
137             com.liferay.portal.kernel.exception.SystemException {
138         _companyService.updateDisplay(companyId, languageId, timeZoneId);
139     }
140 
141     public void updateLogo(long companyId, java.io.File file)
142         throws com.liferay.portal.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException {
144         _companyService.updateLogo(companyId, file);
145     }
146 
147     public void updatePreferences(long companyId,
148         com.liferay.portal.kernel.util.UnicodeProperties properties)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException {
151         _companyService.updatePreferences(companyId, properties);
152     }
153 
154     public void updateSecurity(long companyId, java.lang.String authType,
155         boolean autoLogin, boolean sendPassword, boolean strangers,
156         boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
157         throws com.liferay.portal.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.SystemException {
159         _companyService.updateSecurity(companyId, authType, autoLogin,
160             sendPassword, strangers, strangersWithMx, strangersVerify,
161             communityLogo);
162     }
163 
164     public CompanyService getWrappedCompanyService() {
165         return _companyService;
166     }
167 
168     private CompanyService _companyService;
169 }