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