001 /** 002 * Copyright (c) 2000-2012 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 /** 018 * <p> 019 * This class is a wrapper for {@link CompanyLocalService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see CompanyLocalService 024 * @generated 025 */ 026 public class CompanyLocalServiceWrapper implements CompanyLocalService, 027 ServiceWrapper<CompanyLocalService> { 028 public CompanyLocalServiceWrapper(CompanyLocalService companyLocalService) { 029 _companyLocalService = companyLocalService; 030 } 031 032 /** 033 * Adds the company to the database. Also notifies the appropriate model listeners. 034 * 035 * @param company the company 036 * @return the company that was added 037 * @throws SystemException if a system exception occurred 038 */ 039 public com.liferay.portal.model.Company addCompany( 040 com.liferay.portal.model.Company company) 041 throws com.liferay.portal.kernel.exception.SystemException { 042 return _companyLocalService.addCompany(company); 043 } 044 045 /** 046 * Creates a new company with the primary key. Does not add the company to the database. 047 * 048 * @param companyId the primary key for the new company 049 * @return the new company 050 */ 051 public com.liferay.portal.model.Company createCompany(long companyId) { 052 return _companyLocalService.createCompany(companyId); 053 } 054 055 /** 056 * Deletes the company with the primary key from the database. Also notifies the appropriate model listeners. 057 * 058 * @param companyId the primary key of the company 059 * @throws PortalException if a company with the primary key could not be found 060 * @throws SystemException if a system exception occurred 061 */ 062 public void deleteCompany(long companyId) 063 throws com.liferay.portal.kernel.exception.PortalException, 064 com.liferay.portal.kernel.exception.SystemException { 065 _companyLocalService.deleteCompany(companyId); 066 } 067 068 /** 069 * Deletes the company from the database. Also notifies the appropriate model listeners. 070 * 071 * @param company the company 072 * @throws SystemException if a system exception occurred 073 */ 074 public void deleteCompany(com.liferay.portal.model.Company company) 075 throws com.liferay.portal.kernel.exception.SystemException { 076 _companyLocalService.deleteCompany(company); 077 } 078 079 /** 080 * Performs a dynamic query on the database and returns the matching rows. 081 * 082 * @param dynamicQuery the dynamic query 083 * @return the matching rows 084 * @throws SystemException if a system exception occurred 085 */ 086 @SuppressWarnings("rawtypes") 087 public java.util.List dynamicQuery( 088 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 089 throws com.liferay.portal.kernel.exception.SystemException { 090 return _companyLocalService.dynamicQuery(dynamicQuery); 091 } 092 093 /** 094 * Performs a dynamic query on the database and returns a range of the matching rows. 095 * 096 * <p> 097 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 098 * </p> 099 * 100 * @param dynamicQuery the dynamic query 101 * @param start the lower bound of the range of model instances 102 * @param end the upper bound of the range of model instances (not inclusive) 103 * @return the range of matching rows 104 * @throws SystemException if a system exception occurred 105 */ 106 @SuppressWarnings("rawtypes") 107 public java.util.List dynamicQuery( 108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 109 int end) throws com.liferay.portal.kernel.exception.SystemException { 110 return _companyLocalService.dynamicQuery(dynamicQuery, start, end); 111 } 112 113 /** 114 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 115 * 116 * <p> 117 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 118 * </p> 119 * 120 * @param dynamicQuery the dynamic query 121 * @param start the lower bound of the range of model instances 122 * @param end the upper bound of the range of model instances (not inclusive) 123 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 124 * @return the ordered range of matching rows 125 * @throws SystemException if a system exception occurred 126 */ 127 @SuppressWarnings("rawtypes") 128 public java.util.List dynamicQuery( 129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 130 int end, 131 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 132 throws com.liferay.portal.kernel.exception.SystemException { 133 return _companyLocalService.dynamicQuery(dynamicQuery, start, end, 134 orderByComparator); 135 } 136 137 /** 138 * Returns the number of rows that match the dynamic query. 139 * 140 * @param dynamicQuery the dynamic query 141 * @return the number of rows that match the dynamic query 142 * @throws SystemException if a system exception occurred 143 */ 144 public long dynamicQueryCount( 145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 146 throws com.liferay.portal.kernel.exception.SystemException { 147 return _companyLocalService.dynamicQueryCount(dynamicQuery); 148 } 149 150 public com.liferay.portal.model.Company fetchCompany(long companyId) 151 throws com.liferay.portal.kernel.exception.SystemException { 152 return _companyLocalService.fetchCompany(companyId); 153 } 154 155 /** 156 * Returns the company with the primary key. 157 * 158 * @param companyId the primary key of the company 159 * @return the company 160 * @throws PortalException if a company with the primary key could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public com.liferay.portal.model.Company getCompany(long companyId) 164 throws com.liferay.portal.kernel.exception.PortalException, 165 com.liferay.portal.kernel.exception.SystemException { 166 return _companyLocalService.getCompany(companyId); 167 } 168 169 public com.liferay.portal.model.PersistedModel getPersistedModel( 170 java.io.Serializable primaryKeyObj) 171 throws com.liferay.portal.kernel.exception.PortalException, 172 com.liferay.portal.kernel.exception.SystemException { 173 return _companyLocalService.getPersistedModel(primaryKeyObj); 174 } 175 176 /** 177 * Returns a range of all the companies. 178 * 179 * <p> 180 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 181 * </p> 182 * 183 * @param start the lower bound of the range of companies 184 * @param end the upper bound of the range of companies (not inclusive) 185 * @return the range of companies 186 * @throws SystemException if a system exception occurred 187 */ 188 public java.util.List<com.liferay.portal.model.Company> getCompanies( 189 int start, int end) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return _companyLocalService.getCompanies(start, end); 192 } 193 194 /** 195 * Returns the number of companies. 196 * 197 * @return the number of companies 198 * @throws SystemException if a system exception occurred 199 */ 200 public int getCompaniesCount() 201 throws com.liferay.portal.kernel.exception.SystemException { 202 return _companyLocalService.getCompaniesCount(); 203 } 204 205 /** 206 * Updates the company in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 207 * 208 * @param company the company 209 * @return the company that was updated 210 * @throws SystemException if a system exception occurred 211 */ 212 public com.liferay.portal.model.Company updateCompany( 213 com.liferay.portal.model.Company company) 214 throws com.liferay.portal.kernel.exception.SystemException { 215 return _companyLocalService.updateCompany(company); 216 } 217 218 /** 219 * Updates the company in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 220 * 221 * @param company the company 222 * @param merge whether to merge the company with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation. 223 * @return the company that was updated 224 * @throws SystemException if a system exception occurred 225 */ 226 public com.liferay.portal.model.Company updateCompany( 227 com.liferay.portal.model.Company company, boolean merge) 228 throws com.liferay.portal.kernel.exception.SystemException { 229 return _companyLocalService.updateCompany(company, merge); 230 } 231 232 /** 233 * Returns the Spring bean ID for this bean. 234 * 235 * @return the Spring bean ID for this bean 236 */ 237 public java.lang.String getBeanIdentifier() { 238 return _companyLocalService.getBeanIdentifier(); 239 } 240 241 /** 242 * Sets the Spring bean ID for this bean. 243 * 244 * @param beanIdentifier the Spring bean ID for this bean 245 */ 246 public void setBeanIdentifier(java.lang.String beanIdentifier) { 247 _companyLocalService.setBeanIdentifier(beanIdentifier); 248 } 249 250 /** 251 * Adds a company. 252 * 253 * @param webId the the company's web domain 254 * @param virtualHostname the company's virtual host name 255 * @param mx the company's mail domain 256 * @param shardName the company's shard 257 * @param system whether the company is the very first company (i.e., the 258 super company) 259 * @param maxUsers the max number of company users (optionally 260 <code>0</code>) 261 * @param active whether the company is active 262 * @return the company 263 * @throws PortalException if the web domain, virtual host name, or mail 264 domain was invalid 265 * @throws SystemException if a system exception occurred 266 */ 267 public com.liferay.portal.model.Company addCompany(java.lang.String webId, 268 java.lang.String virtualHostname, java.lang.String mx, 269 java.lang.String shardName, boolean system, int maxUsers, boolean active) 270 throws com.liferay.portal.kernel.exception.PortalException, 271 com.liferay.portal.kernel.exception.SystemException { 272 return _companyLocalService.addCompany(webId, virtualHostname, mx, 273 shardName, system, maxUsers, active); 274 } 275 276 /** 277 * Returns the company with the web domain. 278 * 279 * The method sets mail domain to the web domain, and the shard name to 280 * the default name set in portal.properties 281 * 282 * @param webId the company's web domain 283 * @return the company with the web domain 284 * @throws PortalException if a portal exception occurred 285 * @throws SystemException if a system exception occurred 286 */ 287 public com.liferay.portal.model.Company checkCompany(java.lang.String webId) 288 throws com.liferay.portal.kernel.exception.PortalException, 289 com.liferay.portal.kernel.exception.SystemException { 290 return _companyLocalService.checkCompany(webId); 291 } 292 293 /** 294 * Returns the company with the web domain, mail domain, and shard. If no 295 * such company exits, the method will create a new company. 296 * 297 * The method goes through a series of checks to ensure that the company 298 * contains default users, groups, etc. 299 * 300 * @param webId the company's web domain 301 * @param mx the company's mail domain 302 * @param shardName the company's shard 303 * @return the company with the web domain, mail domain, and shard 304 * @throws PortalException if a portal exception occurred 305 * @throws SystemException if a system exception occurred 306 */ 307 public com.liferay.portal.model.Company checkCompany( 308 java.lang.String webId, java.lang.String mx, java.lang.String shardName) 309 throws com.liferay.portal.kernel.exception.PortalException, 310 com.liferay.portal.kernel.exception.SystemException { 311 return _companyLocalService.checkCompany(webId, mx, shardName); 312 } 313 314 /** 315 * Checks if the company has an encryption key. It will create a key if one 316 * does not exist. 317 * 318 * @param companyId the primary key of the company 319 * @throws PortalException if a company with the primary key could not be 320 found 321 * @throws SystemException if a system exception occurred 322 */ 323 public void checkCompanyKey(long companyId) 324 throws com.liferay.portal.kernel.exception.PortalException, 325 com.liferay.portal.kernel.exception.SystemException { 326 _companyLocalService.checkCompanyKey(companyId); 327 } 328 329 /** 330 * Deletes the company's logo. 331 * 332 * @param companyId the primary key of the company 333 * @throws PortalException if the company with the primary key could not be 334 found or if the company's logo could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public void deleteLogo(long companyId) 338 throws com.liferay.portal.kernel.exception.PortalException, 339 com.liferay.portal.kernel.exception.SystemException { 340 _companyLocalService.deleteLogo(companyId); 341 } 342 343 /** 344 * Returns the company with the primary key. 345 * 346 * @param companyId the primary key of the company 347 * @return the company with the primary key, <code>null</code> if a company 348 with the primary key could not be found 349 * @throws SystemException if a system exception occurred 350 */ 351 public com.liferay.portal.model.Company fetchCompanyById(long companyId) 352 throws com.liferay.portal.kernel.exception.SystemException { 353 return _companyLocalService.fetchCompanyById(companyId); 354 } 355 356 /** 357 * Returns the company with the virtual host name. 358 * 359 * @param virtualHostname the virtual host name 360 * @return the company with the virtual host name, <code>null</code> if a 361 company with the virtual host could not be found 362 * @throws SystemException if a system exception occurred 363 */ 364 public com.liferay.portal.model.Company fetchCompanyByVirtualHost( 365 java.lang.String virtualHostname) 366 throws com.liferay.portal.kernel.exception.SystemException { 367 return _companyLocalService.fetchCompanyByVirtualHost(virtualHostname); 368 } 369 370 /** 371 * Returns all the companies. 372 * 373 * @return the companies 374 * @throws SystemException if a system exception occurred 375 */ 376 public java.util.List<com.liferay.portal.model.Company> getCompanies() 377 throws com.liferay.portal.kernel.exception.SystemException { 378 return _companyLocalService.getCompanies(); 379 } 380 381 /** 382 * Returns all the companies used by WSRP. 383 * 384 * @param system whether the company is the very first company (i.e., the 385 super company) 386 * @return the companies used by WSRP 387 * @throws SystemException if a system exception occurred 388 */ 389 public java.util.List<com.liferay.portal.model.Company> getCompanies( 390 boolean system) 391 throws com.liferay.portal.kernel.exception.SystemException { 392 return _companyLocalService.getCompanies(system); 393 } 394 395 /** 396 * Returns the number of companies used by WSRP. 397 * 398 * @param system whether the company is the very first company (i.e., the 399 super company) 400 * @return the number of companies used by WSRP 401 * @throws SystemException if a system exception occurred 402 */ 403 public int getCompaniesCount(boolean system) 404 throws com.liferay.portal.kernel.exception.SystemException { 405 return _companyLocalService.getCompaniesCount(system); 406 } 407 408 /** 409 * Returns the company with the primary key. 410 * 411 * @param companyId the primary key of the company 412 * @return the company with the primary key 413 * @throws PortalException if a company with the primary key could not be 414 found 415 * @throws SystemException if a system exception occurred 416 */ 417 public com.liferay.portal.model.Company getCompanyById(long companyId) 418 throws com.liferay.portal.kernel.exception.PortalException, 419 com.liferay.portal.kernel.exception.SystemException { 420 return _companyLocalService.getCompanyById(companyId); 421 } 422 423 /** 424 * Returns the company with the logo. 425 * 426 * @param logoId the ID of the company's logo 427 * @return the company with the logo 428 * @throws PortalException if the company with the logo could not be found 429 * @throws SystemException if a system exception occurred 430 */ 431 public com.liferay.portal.model.Company getCompanyByLogoId(long logoId) 432 throws com.liferay.portal.kernel.exception.PortalException, 433 com.liferay.portal.kernel.exception.SystemException { 434 return _companyLocalService.getCompanyByLogoId(logoId); 435 } 436 437 /** 438 * Returns the company with the mail domain. 439 * 440 * @param mx the company's mail domain 441 * @return the company with the mail domain 442 * @throws PortalException if the company with the mail domain could not be 443 found 444 * @throws SystemException if a system exception occurred 445 */ 446 public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx) 447 throws com.liferay.portal.kernel.exception.PortalException, 448 com.liferay.portal.kernel.exception.SystemException { 449 return _companyLocalService.getCompanyByMx(mx); 450 } 451 452 /** 453 * Returns the company with the virtual host name. 454 * 455 * @param virtualHostname the company's virtual host name 456 * @return the company with the virtual host name 457 * @throws PortalException if the company with the virtual host name could 458 not be found or if the virtual host was not associated with a 459 company 460 * @throws SystemException if a system exception occurred 461 */ 462 public com.liferay.portal.model.Company getCompanyByVirtualHost( 463 java.lang.String virtualHostname) 464 throws com.liferay.portal.kernel.exception.PortalException, 465 com.liferay.portal.kernel.exception.SystemException { 466 return _companyLocalService.getCompanyByVirtualHost(virtualHostname); 467 } 468 469 /** 470 * Returns the company with the web domain. 471 * 472 * @param webId the company's web domain 473 * @return the company with the web domain 474 * @throws PortalException if the company with the web domain could not be 475 found 476 * @throws SystemException if a system exception occurred 477 */ 478 public com.liferay.portal.model.Company getCompanyByWebId( 479 java.lang.String webId) 480 throws com.liferay.portal.kernel.exception.PortalException, 481 com.liferay.portal.kernel.exception.SystemException { 482 return _companyLocalService.getCompanyByWebId(webId); 483 } 484 485 /** 486 * Returns the user's company. 487 * 488 * @param userId the primary key of the user 489 * @return Returns the first company if there is only one company or the 490 user's company if there are more than one company; <code>0</code> 491 otherwise 492 * @throws Exception if a user with the primary key could not be found 493 */ 494 public long getCompanyIdByUserId(long userId) throws java.lang.Exception { 495 return _companyLocalService.getCompanyIdByUserId(userId); 496 } 497 498 /** 499 * Removes the values that match the keys of the company's preferences. 500 * 501 * This method is called by {@link 502 * com.liferay.portlet.portalsettings.action.EditLDAPServerAction} remotely 503 * through {@link com.liferay.portal.service.CompanyService}. 504 * 505 * @param companyId the primary key of the company 506 * @param keys the company's preferences keys to be remove 507 * @throws SystemException if a system exception occurred 508 */ 509 public void removePreferences(long companyId, java.lang.String[] keys) 510 throws com.liferay.portal.kernel.exception.SystemException { 511 _companyLocalService.removePreferences(companyId, keys); 512 } 513 514 /** 515 * Returns an ordered range of all assets that match the keywords in the 516 * company. 517 * 518 * The method is called in {@link 519 * com.liferay.portal.search.PortalOpenSearchImpl} which is not longer used 520 * by the Search portlet. 521 * 522 * @param companyId the primary key of the company 523 * @param userId the primary key of the user 524 * @param keywords the keywords (space separated),which may occur in assets 525 in the company (optionally <code>null</code>) 526 * @param start the lower bound of the range of assets to return 527 * @param end the upper bound of the range of assets to return (not 528 inclusive) 529 * @return the matching assets in the company 530 * @throws SystemException if a system exception occurred 531 */ 532 public com.liferay.portal.kernel.search.Hits search(long companyId, 533 long userId, java.lang.String keywords, int start, int end) 534 throws com.liferay.portal.kernel.exception.SystemException { 535 return _companyLocalService.search(companyId, userId, keywords, start, 536 end); 537 } 538 539 /** 540 * Returns an ordered range of all assets that match the keywords in the 541 * portlet within the company. 542 * 543 * @param companyId the primary key of the company 544 * @param userId the primary key of the user 545 * @param portletId the primary key of the portlet (optionally 546 <code>null</code>) 547 * @param groupId the primary key of the group (optionally <code>0</code>) 548 * @param type the mime type of assets to return(optionally 549 <code>null</code>) 550 * @param keywords the keywords (space separated), which may occur in any 551 assets in the portlet (optionally <code>null</code>) 552 * @param start the lower bound of the range of assets to return 553 * @param end the upper bound of the range of assets to return (not 554 inclusive) 555 * @return the matching assets in the portlet within the company 556 * @throws SystemException if a system exception occurred 557 */ 558 public com.liferay.portal.kernel.search.Hits search(long companyId, 559 long userId, java.lang.String portletId, long groupId, 560 java.lang.String type, java.lang.String keywords, int start, int end) 561 throws com.liferay.portal.kernel.exception.SystemException { 562 return _companyLocalService.search(companyId, userId, portletId, 563 groupId, type, keywords, start, end); 564 } 565 566 /** 567 * Updates the company. 568 * 569 * @param companyId the primary key of the company 570 * @param virtualHostname the company's virtual host name 571 * @param mx the company's mail domain 572 * @param maxUsers the max number of company users (optionally 573 <code>0</code>) 574 * @param active whether the company is active 575 * @return the company with the primary key 576 * @throws PortalException if a company with primary key could not be found 577 or if the new information was invalid 578 * @throws SystemException if a system exception occurred 579 */ 580 public com.liferay.portal.model.Company updateCompany(long companyId, 581 java.lang.String virtualHostname, java.lang.String mx, int maxUsers, 582 boolean active) 583 throws com.liferay.portal.kernel.exception.PortalException, 584 com.liferay.portal.kernel.exception.SystemException { 585 return _companyLocalService.updateCompany(companyId, virtualHostname, 586 mx, maxUsers, active); 587 } 588 589 /** 590 * Update the company with additional account information. 591 * 592 * @param companyId the primary key of the company 593 * @param virtualHostname the company's virtual host name 594 * @param mx the company's mail domain 595 * @param homeURL the company's home URL (optionally <code>null</code>) 596 * @param name the company's account name(optionally <code>null</code>) 597 * @param legalName the company's account legal name (optionally 598 <code>null</code>) 599 * @param legalId the company's account legal ID (optionally 600 <code>null</code>) 601 * @param legalType the company's account legal type (optionally 602 <code>null</code>) 603 * @param sicCode the company's account SIC code (optionally 604 <code>null</code>) 605 * @param tickerSymbol the company's account ticker symbol (optionally 606 <code>null</code>) 607 * @param industry the company's account industry (optionally 608 <code>null</code>) 609 * @param type the company's account type (optionally <code>null</code>) 610 * @param size the company's account size (optionally <code>null</code>) 611 * @return the company with the primary key 612 * @throws PortalException if a company with the primary key could not be 613 found or if the new information was invalid 614 * @throws SystemException if a system exception occurred 615 */ 616 public com.liferay.portal.model.Company updateCompany(long companyId, 617 java.lang.String virtualHostname, java.lang.String mx, 618 java.lang.String homeURL, java.lang.String name, 619 java.lang.String legalName, java.lang.String legalId, 620 java.lang.String legalType, java.lang.String sicCode, 621 java.lang.String tickerSymbol, java.lang.String industry, 622 java.lang.String type, java.lang.String size) 623 throws com.liferay.portal.kernel.exception.PortalException, 624 com.liferay.portal.kernel.exception.SystemException { 625 return _companyLocalService.updateCompany(companyId, virtualHostname, 626 mx, homeURL, name, legalName, legalId, legalType, sicCode, 627 tickerSymbol, industry, type, size); 628 } 629 630 /** 631 * Update the company's display. 632 * 633 * @param companyId the primary key of the company 634 * @param languageId the ID of the company's default user's language 635 * @param timeZoneId the ID of the company's default user's time zone 636 * @throws PortalException if the company's default user could not be found 637 * @throws SystemException if a system exception occurred 638 */ 639 public void updateDisplay(long companyId, java.lang.String languageId, 640 java.lang.String timeZoneId) 641 throws com.liferay.portal.kernel.exception.PortalException, 642 com.liferay.portal.kernel.exception.SystemException { 643 _companyLocalService.updateDisplay(companyId, languageId, timeZoneId); 644 } 645 646 /** 647 * Updates the company's logo. 648 * 649 * @param companyId the primary key of the company 650 * @param bytes the bytes of the company's logo image 651 * @return the company with the primary key 652 * @throws PortalException if the company's logo ID could not be found or if 653 the logo's image was corrupted 654 * @throws SystemException if a system exception occurred 655 */ 656 public com.liferay.portal.model.Company updateLogo(long companyId, 657 byte[] bytes) 658 throws com.liferay.portal.kernel.exception.PortalException, 659 com.liferay.portal.kernel.exception.SystemException { 660 return _companyLocalService.updateLogo(companyId, bytes); 661 } 662 663 /** 664 * Updates the company's logo. 665 * 666 * @param companyId the primary key of the company 667 * @param file the file of the company's logo image 668 * @return the company with the primary key 669 * @throws PortalException the company's logo ID could not be found or if 670 the logo's image was corrupted 671 * @throws SystemException if a system exception occurred 672 */ 673 public com.liferay.portal.model.Company updateLogo(long companyId, 674 java.io.File file) 675 throws com.liferay.portal.kernel.exception.PortalException, 676 com.liferay.portal.kernel.exception.SystemException { 677 return _companyLocalService.updateLogo(companyId, file); 678 } 679 680 /** 681 * Update the company's logo. 682 * 683 * @param companyId the primary key of the company 684 * @param is the input stream of the company's logo image 685 * @return the company with the primary key 686 * @throws PortalException if the company's logo ID could not be found or if 687 the company's logo image was corrupted 688 * @throws SystemException if a system exception occurred 689 */ 690 public com.liferay.portal.model.Company updateLogo(long companyId, 691 java.io.InputStream is) 692 throws com.liferay.portal.kernel.exception.PortalException, 693 com.liferay.portal.kernel.exception.SystemException { 694 return _companyLocalService.updateLogo(companyId, is); 695 } 696 697 /** 698 * Updates the company's preferences. The company's default properties are 699 * found in portal.properties. 700 * 701 * @param companyId the primary key of the company 702 * @param properties the company's properties. See {@link 703 com.liferay.portal.kernel.util.UnicodeProperties} 704 * @throws PortalException if the properties contained new locales that were 705 not supported 706 * @throws SystemException if a system exception occurred 707 */ 708 public void updatePreferences(long companyId, 709 com.liferay.portal.kernel.util.UnicodeProperties properties) 710 throws com.liferay.portal.kernel.exception.PortalException, 711 com.liferay.portal.kernel.exception.SystemException { 712 _companyLocalService.updatePreferences(companyId, properties); 713 } 714 715 /** 716 * Updates the company's security properties. 717 * 718 * @param companyId the primary key of the company 719 * @param authType the company's method of authenticating users 720 * @param autoLogin whether to allow users to select the "remember me" 721 feature 722 * @param sendPassword whether to allow users to ask the company to send 723 their password 724 * @param strangers whether to allow strangers to create accounts register 725 themselves in the company 726 * @param strangersWithMx whether to allow strangers to create accounts 727 with email addresses that match the company mail suffix 728 * @param strangersVerify whether to require strangers who create accounts 729 to be verified via email 730 * @param siteLogo whether to allow site administrators to use their own 731 logo instead of the enterprise logo 732 * @throws SystemException if a system exception occurred 733 */ 734 public void updateSecurity(long companyId, java.lang.String authType, 735 boolean autoLogin, boolean sendPassword, boolean strangers, 736 boolean strangersWithMx, boolean strangersVerify, boolean siteLogo) 737 throws com.liferay.portal.kernel.exception.SystemException { 738 _companyLocalService.updateSecurity(companyId, authType, autoLogin, 739 sendPassword, strangers, strangersWithMx, strangersVerify, siteLogo); 740 } 741 742 /** 743 * @deprecated Renamed to {@link #getWrappedService} 744 */ 745 public CompanyLocalService getWrappedCompanyLocalService() { 746 return _companyLocalService; 747 } 748 749 /** 750 * @deprecated Renamed to {@link #setWrappedService} 751 */ 752 public void setWrappedCompanyLocalService( 753 CompanyLocalService companyLocalService) { 754 _companyLocalService = companyLocalService; 755 } 756 757 public CompanyLocalService getWrappedService() { 758 return _companyLocalService; 759 } 760 761 public void setWrappedService(CompanyLocalService companyLocalService) { 762 _companyLocalService = companyLocalService; 763 } 764 765 private CompanyLocalService _companyLocalService; 766 }