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