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