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