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