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