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