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 OrganizationService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see OrganizationService 024 * @generated 025 */ 026 @ProviderType 027 public class OrganizationServiceWrapper implements OrganizationService, 028 ServiceWrapper<OrganizationService> { 029 public OrganizationServiceWrapper(OrganizationService organizationService) { 030 _organizationService = organizationService; 031 } 032 033 /** 034 * Adds the organizations to the group. 035 * 036 * @param groupId the primary key of the group 037 * @param organizationIds the primary keys of the organizations 038 * @throws PortalException if a group or organization with the primary key 039 could not be found or if the user did not have permission to 040 assign group members 041 */ 042 @Override 043 public void addGroupOrganizations(long groupId, long[] organizationIds) 044 throws com.liferay.portal.kernel.exception.PortalException { 045 _organizationService.addGroupOrganizations(groupId, organizationIds); 046 } 047 048 /** 049 * Adds an organization with additional parameters. 050 * 051 * <p> 052 * This method handles the creation and bookkeeping of the organization 053 * including its resources, metadata, and internal data structures. 054 * </p> 055 * 056 * @param parentOrganizationId the primary key of the organization's 057 parent organization 058 * @param name the organization's name 059 * @param type the organization's type 060 * @param recursable whether the permissions of the organization are to 061 be inherited by its suborganizations 062 * @param regionId the primary key of the organization's region 063 * @param countryId the primary key of the organization's country 064 * @param statusId the organization's workflow status 065 * @param comments the comments about the organization 066 * @param site whether the organization is to be associated with a main 067 site 068 * @param addresses the organization's addresses 069 * @param emailAddresses the organization's email addresses 070 * @param orgLabors the organization's hours of operation 071 * @param phones the organization's phone numbers 072 * @param websites the organization's websites 073 * @param serviceContext the service context to be applied (optionally 074 <code>null</code>). Can set asset category IDs, asset tag 075 names, and expando bridge attributes for the organization. 076 * @return the organization 077 * @throws PortalException if a parent organization with the primary key 078 could not be found, if the organization's information was 079 invalid, or if the user did not have permission to add the 080 organization 081 * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long, 082 String, String, long, long, int, String, boolean, List, List, 083 List, List, List, ServiceContext)} 084 */ 085 @Deprecated 086 @Override 087 public com.liferay.portal.model.Organization addOrganization( 088 long parentOrganizationId, java.lang.String name, 089 java.lang.String type, boolean recursable, long regionId, 090 long countryId, long statusId, java.lang.String comments, boolean site, 091 java.util.List<com.liferay.portal.model.Address> addresses, 092 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 093 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors, 094 java.util.List<com.liferay.portal.model.Phone> phones, 095 java.util.List<com.liferay.portal.model.Website> websites, 096 com.liferay.portal.service.ServiceContext serviceContext) 097 throws com.liferay.portal.kernel.exception.PortalException { 098 return _organizationService.addOrganization(parentOrganizationId, name, 099 type, recursable, regionId, countryId, statusId, comments, site, 100 addresses, emailAddresses, orgLabors, phones, websites, 101 serviceContext); 102 } 103 104 /** 105 * Adds an organization. 106 * 107 * <p> 108 * This method handles the creation and bookkeeping of the organization 109 * including its resources, metadata, and internal data structures. 110 * </p> 111 * 112 * @param parentOrganizationId the primary key of the organization's 113 parent organization 114 * @param name the organization's name 115 * @param type the organization's type 116 * @param recursable whether the permissions of the organization are to 117 be inherited by its suborganizations 118 * @param regionId the primary key of the organization's region 119 * @param countryId the primary key of the organization's country 120 * @param statusId the organization's workflow status 121 * @param comments the comments about the organization 122 * @param site whether the organization is to be associated with a main 123 site 124 * @param serviceContext the service context to be applied (optionally 125 <code>null</code>). Can set asset category IDs, asset tag 126 names, and expando bridge attributes for the organization. 127 * @return the organization 128 * @throws PortalException if the parent organization with the primary 129 key could not be found, if the organization information was 130 invalid, or if the user did not have permission to add the 131 organization 132 * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long, 133 String, String, long, long, int, String, boolean, 134 ServiceContext)} 135 */ 136 @Deprecated 137 @Override 138 public com.liferay.portal.model.Organization addOrganization( 139 long parentOrganizationId, java.lang.String name, 140 java.lang.String type, boolean recursable, long regionId, 141 long countryId, long statusId, java.lang.String comments, boolean site, 142 com.liferay.portal.service.ServiceContext serviceContext) 143 throws com.liferay.portal.kernel.exception.PortalException { 144 return _organizationService.addOrganization(parentOrganizationId, name, 145 type, recursable, regionId, countryId, statusId, comments, site, 146 serviceContext); 147 } 148 149 /** 150 * Adds an organization with additional parameters. 151 * 152 * <p> 153 * This method handles the creation and bookkeeping of the organization 154 * including its resources, metadata, and internal data structures. 155 * </p> 156 * 157 * @param parentOrganizationId the primary key of the organization's parent 158 organization 159 * @param name the organization's name 160 * @param type the organization's type 161 * @param regionId the primary key of the organization's region 162 * @param countryId the primary key of the organization's country 163 * @param statusId the organization's workflow status 164 * @param comments the comments about the organization 165 * @param site whether the organization is to be associated with a main 166 site 167 * @param addresses the organization's addresses 168 * @param emailAddresses the organization's email addresses 169 * @param orgLabors the organization's hours of operation 170 * @param phones the organization's phone numbers 171 * @param websites the organization's websites 172 * @param serviceContext the service context to be applied (optionally 173 <code>null</code>). Can set asset category IDs, asset tag names, 174 and expando bridge attributes for the organization. 175 * @return the organization 176 * @throws PortalException if a parent organization with the primary key 177 could not be found, if the organization's information was 178 invalid, or if the user did not have permission to add the 179 organization 180 */ 181 @Override 182 public com.liferay.portal.model.Organization addOrganization( 183 long parentOrganizationId, java.lang.String name, 184 java.lang.String type, long regionId, long countryId, long statusId, 185 java.lang.String comments, boolean site, 186 java.util.List<com.liferay.portal.model.Address> addresses, 187 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 188 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors, 189 java.util.List<com.liferay.portal.model.Phone> phones, 190 java.util.List<com.liferay.portal.model.Website> websites, 191 com.liferay.portal.service.ServiceContext serviceContext) 192 throws com.liferay.portal.kernel.exception.PortalException { 193 return _organizationService.addOrganization(parentOrganizationId, name, 194 type, regionId, countryId, statusId, comments, site, addresses, 195 emailAddresses, orgLabors, phones, websites, serviceContext); 196 } 197 198 /** 199 * Adds an organization. 200 * 201 * <p> 202 * This method handles the creation and bookkeeping of the organization 203 * including its resources, metadata, and internal data structures. 204 * </p> 205 * 206 * @param parentOrganizationId the primary key of the organization's parent 207 organization 208 * @param name the organization's name 209 * @param type the organization's type 210 * @param regionId the primary key of the organization's region 211 * @param countryId the primary key of the organization's country 212 * @param statusId the organization's workflow status 213 * @param comments the comments about the organization 214 * @param site whether the organization is to be associated with a main 215 site 216 * @param serviceContext the service context to be applied (optionally 217 <code>null</code>). Can set asset category IDs, asset tag names, 218 and expando bridge attributes for the organization. 219 * @return the organization 220 * @throws PortalException if the parent organization with the primary key 221 could not be found, if the organization information was invalid, 222 or if the user did not have permission to add the organization 223 */ 224 @Override 225 public com.liferay.portal.model.Organization addOrganization( 226 long parentOrganizationId, java.lang.String name, 227 java.lang.String type, long regionId, long countryId, long statusId, 228 java.lang.String comments, boolean site, 229 com.liferay.portal.service.ServiceContext serviceContext) 230 throws com.liferay.portal.kernel.exception.PortalException { 231 return _organizationService.addOrganization(parentOrganizationId, name, 232 type, regionId, countryId, statusId, comments, site, serviceContext); 233 } 234 235 /** 236 * Assigns the password policy to the organizations, removing any other 237 * currently assigned password policies. 238 * 239 * @param passwordPolicyId the primary key of the password policy 240 * @param organizationIds the primary keys of the organizations 241 * @throws PortalException if the user did not have permission to update the 242 password policy 243 */ 244 @Override 245 public void addPasswordPolicyOrganizations(long passwordPolicyId, 246 long[] organizationIds) 247 throws com.liferay.portal.kernel.exception.PortalException { 248 _organizationService.addPasswordPolicyOrganizations(passwordPolicyId, 249 organizationIds); 250 } 251 252 /** 253 * Deletes the organization's logo. 254 * 255 * @param organizationId the primary key of the organization 256 * @throws PortalException if an organization with the primary key could not 257 be found, if the organization's logo could not be found, or if 258 the user did not have permission to update the organization 259 */ 260 @Override 261 public void deleteLogo(long organizationId) 262 throws com.liferay.portal.kernel.exception.PortalException { 263 _organizationService.deleteLogo(organizationId); 264 } 265 266 /** 267 * Deletes the organization. The organization's associated resources and 268 * assets are also deleted. 269 * 270 * @param organizationId the primary key of the organization 271 * @throws PortalException if an organization with the primary key could not 272 be found, if the user did not have permission to delete the 273 organization, if the organization had a workflow in approved 274 status, or if the organization was a parent organization 275 */ 276 @Override 277 public void deleteOrganization(long organizationId) 278 throws com.liferay.portal.kernel.exception.PortalException { 279 _organizationService.deleteOrganization(organizationId); 280 } 281 282 /** 283 * Returns the organization with the primary key. 284 * 285 * @param organizationId the primary key of the organization 286 * @return the organization with the primary key, or <code>null</code> if an 287 organization with the primary key could not be found or if the 288 user did not have permission to view the organization 289 * @throws PortalException if a portal exception occurred 290 */ 291 @Override 292 public com.liferay.portal.model.Organization fetchOrganization( 293 long organizationId) 294 throws com.liferay.portal.kernel.exception.PortalException { 295 return _organizationService.fetchOrganization(organizationId); 296 } 297 298 /** 299 * Returns the Spring bean ID for this bean. 300 * 301 * @return the Spring bean ID for this bean 302 */ 303 @Override 304 public java.lang.String getBeanIdentifier() { 305 return _organizationService.getBeanIdentifier(); 306 } 307 308 /** 309 * Returns all the organizations which the user has permission to manage. 310 * 311 * @param actionId the permitted action 312 * @param max the maximum number of the organizations to be considered 313 * @return the organizations which the user has permission to manage 314 * @throws PortalException if a portal exception occurred 315 * @deprecated As of 6.2.0, replaced by {@link #getOrganizations(long, long, 316 int, int)} 317 */ 318 @Deprecated 319 @Override 320 public java.util.List<com.liferay.portal.model.Organization> getManageableOrganizations( 321 java.lang.String actionId, int max) 322 throws com.liferay.portal.kernel.exception.PortalException { 323 return _organizationService.getManageableOrganizations(actionId, max); 324 } 325 326 /** 327 * Returns the organization with the primary key. 328 * 329 * @param organizationId the primary key of the organization 330 * @return the organization with the primary key 331 * @throws PortalException if an organization with the primary key could not 332 be found or if the user did not have permission to view the 333 organization 334 */ 335 @Override 336 public com.liferay.portal.model.Organization getOrganization( 337 long organizationId) 338 throws com.liferay.portal.kernel.exception.PortalException { 339 return _organizationService.getOrganization(organizationId); 340 } 341 342 /** 343 * Returns the primary key of the organization with the name. 344 * 345 * @param companyId the primary key of the organization's company 346 * @param name the organization's name 347 * @return the primary key of the organization with the name, or 348 <code>0</code> if the organization could not be found 349 * @throws PortalException if the user did not have permission to view the 350 organization 351 */ 352 @Override 353 public long getOrganizationId(long companyId, java.lang.String name) 354 throws com.liferay.portal.kernel.exception.PortalException { 355 return _organizationService.getOrganizationId(companyId, name); 356 } 357 358 /** 359 * Returns all the organizations belonging to the parent organization. 360 * 361 * @param companyId the primary key of the organizations' company 362 * @param parentOrganizationId the primary key of the organizations' parent 363 organization 364 * @return the organizations belonging to the parent organization 365 */ 366 @Override 367 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 368 long companyId, long parentOrganizationId) { 369 return _organizationService.getOrganizations(companyId, 370 parentOrganizationId); 371 } 372 373 /** 374 * Returns a range of all the organizations belonging to the parent 375 * organization. 376 * 377 * <p> 378 * Useful when paginating results. Returns a maximum of <code>end - 379 * start</code> instances. <code>start</code> and <code>end</code> are not 380 * primary keys, they are indexes in the result set. Thus, <code>0</code> 381 * refers to the first result in the set. Setting both <code>start</code> 382 * and <code>end</code> to {@link 383 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 384 * result set. 385 * </p> 386 * 387 * @param companyId the primary key of the organizations' company 388 * @param parentOrganizationId the primary key of the organizations' parent 389 organization 390 * @param start the lower bound of the range of organizations to return 391 * @param end the upper bound of the range of organizations to return (not 392 inclusive) 393 * @return the range of organizations belonging to the parent organization 394 */ 395 @Override 396 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 397 long companyId, long parentOrganizationId, int start, int end) { 398 return _organizationService.getOrganizations(companyId, 399 parentOrganizationId, start, end); 400 } 401 402 /** 403 * Returns the number of organizations belonging to the parent organization. 404 * 405 * @param companyId the primary key of the organizations' company 406 * @param parentOrganizationId the primary key of the organizations' parent 407 organization 408 * @return the number of organizations belonging to the parent organization 409 */ 410 @Override 411 public int getOrganizationsCount(long companyId, long parentOrganizationId) { 412 return _organizationService.getOrganizationsCount(companyId, 413 parentOrganizationId); 414 } 415 416 /** 417 * Returns all the organizations with which the user is explicitly 418 * associated. 419 * 420 * <p> 421 * A user is considered to be <i>explicitly</i> associated with an 422 * organization if his account is individually created within the 423 * organization or if the user is later added as a member. 424 * </p> 425 * 426 * @param userId the primary key of the user 427 * @return the organizations with which the user is explicitly associated 428 * @throws PortalException if a user with the primary key could not be found 429 */ 430 @Override 431 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 432 long userId) throws com.liferay.portal.kernel.exception.PortalException { 433 return _organizationService.getUserOrganizations(userId); 434 } 435 436 /** 437 * Sets the Spring bean ID for this bean. 438 * 439 * @param beanIdentifier the Spring bean ID for this bean 440 */ 441 @Override 442 public void setBeanIdentifier(java.lang.String beanIdentifier) { 443 _organizationService.setBeanIdentifier(beanIdentifier); 444 } 445 446 /** 447 * Sets the organizations in the group, removing and adding organizations to 448 * the group as necessary. 449 * 450 * @param groupId the primary key of the group 451 * @param organizationIds the primary keys of the organizations 452 * @throws PortalException if a group or organization with the primary key 453 could not be found or if the user did not have permission to 454 assign group members 455 */ 456 @Override 457 public void setGroupOrganizations(long groupId, long[] organizationIds) 458 throws com.liferay.portal.kernel.exception.PortalException { 459 _organizationService.setGroupOrganizations(groupId, organizationIds); 460 } 461 462 /** 463 * Removes the organizations from the group. 464 * 465 * @param groupId the primary key of the group 466 * @param organizationIds the primary keys of the organizations 467 * @throws PortalException if a group or organization with the primary key 468 could not be found or if the user did not have permission to 469 assign group members 470 */ 471 @Override 472 public void unsetGroupOrganizations(long groupId, long[] organizationIds) 473 throws com.liferay.portal.kernel.exception.PortalException { 474 _organizationService.unsetGroupOrganizations(groupId, organizationIds); 475 } 476 477 /** 478 * Removes the organizations from the password policy. 479 * 480 * @param passwordPolicyId the primary key of the password policy 481 * @param organizationIds the primary keys of the organizations 482 * @throws PortalException if a password policy or organization with the 483 primary key could not be found, or if the user did not have 484 permission to update the password policy 485 */ 486 @Override 487 public void unsetPasswordPolicyOrganizations(long passwordPolicyId, 488 long[] organizationIds) 489 throws com.liferay.portal.kernel.exception.PortalException { 490 _organizationService.unsetPasswordPolicyOrganizations(passwordPolicyId, 491 organizationIds); 492 } 493 494 /** 495 * Updates the organization with additional parameters. 496 * 497 * @param organizationId the primary key of the organization 498 * @param parentOrganizationId the primary key of the organization's 499 parent organization 500 * @param name the organization's name 501 * @param type the organization's type 502 * @param recursable whether the permissions of the organization are to 503 be inherited by its suborganizations 504 * @param regionId the primary key of the organization's region 505 * @param countryId the primary key of the organization's country 506 * @param statusId the organization's workflow status 507 * @param comments the comments about the organization 508 * @param site whether the organization is to be associated with a main 509 site 510 * @param addresses the organization's addresses 511 * @param emailAddresses the organization's email addresses 512 * @param orgLabors the organization's hours of operation 513 * @param phones the organization's phone numbers 514 * @param websites the organization's websites 515 * @param serviceContext the service context to be applied (optionally 516 <code>null</code>). Can set asset category IDs and asset tag 517 names for the organization, and merge expando bridge 518 attributes for the organization. 519 * @return the organization 520 * @throws PortalException if an organization or parent organization 521 with the primary key could not be found, if the user did not 522 have permission to update the organization information, or if 523 the new information was invalid 524 * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long, 525 long, String, String, long, long, int, String, boolean, 526 byte[], boolean, List, List, List, List, List, 527 ServiceContext)} 528 */ 529 @Deprecated 530 @Override 531 public com.liferay.portal.model.Organization updateOrganization( 532 long organizationId, long parentOrganizationId, java.lang.String name, 533 java.lang.String type, boolean recursable, long regionId, 534 long countryId, long statusId, java.lang.String comments, boolean site, 535 java.util.List<com.liferay.portal.model.Address> addresses, 536 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 537 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors, 538 java.util.List<com.liferay.portal.model.Phone> phones, 539 java.util.List<com.liferay.portal.model.Website> websites, 540 com.liferay.portal.service.ServiceContext serviceContext) 541 throws com.liferay.portal.kernel.exception.PortalException { 542 return _organizationService.updateOrganization(organizationId, 543 parentOrganizationId, name, type, recursable, regionId, countryId, 544 statusId, comments, site, addresses, emailAddresses, orgLabors, 545 phones, websites, serviceContext); 546 } 547 548 /** 549 * Updates the organization. 550 * 551 * @param organizationId the primary key of the organization 552 * @param parentOrganizationId the primary key of the organization's 553 parent organization 554 * @param name the organization's name 555 * @param type the organization's type 556 * @param recursable whether permissions of the organization are to be 557 inherited by its suborganizations 558 * @param regionId the primary key of the organization's region 559 * @param countryId the primary key of the organization's country 560 * @param statusId the organization's workflow status 561 * @param comments the comments about the organization 562 * @param site whether the organization is to be associated with a main 563 site 564 * @param serviceContext the service context to be applied (optionally 565 <code>null</code>). Can set asset category IDs and asset tag 566 names for the organization, and merge expando bridge 567 attributes for the organization. 568 * @return the organization 569 * @throws PortalException if an organization or parent organization 570 with the primary key could not be found, if the user did not 571 have permission to update the organization, or if the new 572 information was invalid 573 * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long, 574 long, String, String, long, long, int, String, boolean, 575 ServiceContext)} 576 */ 577 @Deprecated 578 @Override 579 public com.liferay.portal.model.Organization updateOrganization( 580 long organizationId, long parentOrganizationId, java.lang.String name, 581 java.lang.String type, boolean recursable, long regionId, 582 long countryId, long statusId, java.lang.String comments, boolean site, 583 com.liferay.portal.service.ServiceContext serviceContext) 584 throws com.liferay.portal.kernel.exception.PortalException { 585 return _organizationService.updateOrganization(organizationId, 586 parentOrganizationId, name, type, recursable, regionId, countryId, 587 statusId, comments, site, serviceContext); 588 } 589 590 /** 591 * Updates the organization with additional parameters. 592 * 593 * @param organizationId the primary key of the organization 594 * @param parentOrganizationId the primary key of the organization's parent 595 organization 596 * @param name the organization's name 597 * @param type the organization's type 598 * @param regionId the primary key of the organization's region 599 * @param countryId the primary key of the organization's country 600 * @param statusId the organization's workflow status 601 * @param comments the comments about the organization 602 * @param logo whether to update the ogranization's logo 603 * @param logoBytes the new logo image data 604 * @param site whether the organization is to be associated with a main 605 site 606 * @param addresses the organization's addresses 607 * @param emailAddresses the organization's email addresses 608 * @param orgLabors the organization's hours of operation 609 * @param phones the organization's phone numbers 610 * @param websites the organization's websites 611 * @param serviceContext the service context to be applied (optionally 612 <code>null</code>). Can set asset category IDs and asset tag 613 names for the organization, and merge expando bridge attributes 614 for the organization. 615 * @return the organization 616 * @throws PortalException if an organization or parent organization with 617 the primary key could not be found, if the user did not have 618 permission to update the organization information, or if the new 619 information was invalid 620 */ 621 @Override 622 public com.liferay.portal.model.Organization updateOrganization( 623 long organizationId, long parentOrganizationId, java.lang.String name, 624 java.lang.String type, long regionId, long countryId, long statusId, 625 java.lang.String comments, boolean logo, byte[] logoBytes, 626 boolean site, 627 java.util.List<com.liferay.portal.model.Address> addresses, 628 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 629 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors, 630 java.util.List<com.liferay.portal.model.Phone> phones, 631 java.util.List<com.liferay.portal.model.Website> websites, 632 com.liferay.portal.service.ServiceContext serviceContext) 633 throws com.liferay.portal.kernel.exception.PortalException { 634 return _organizationService.updateOrganization(organizationId, 635 parentOrganizationId, name, type, regionId, countryId, statusId, 636 comments, logo, logoBytes, site, addresses, emailAddresses, 637 orgLabors, phones, websites, serviceContext); 638 } 639 640 /** 641 * Updates the organization with additional parameters. 642 * 643 * @param organizationId the primary key of the organization 644 * @param parentOrganizationId the primary key of the organization's 645 parent organization 646 * @param name the organization's name 647 * @param type the organization's type 648 * @param regionId the primary key of the organization's region 649 * @param countryId the primary key of the organization's country 650 * @param statusId the organization's workflow status 651 * @param comments the comments about the organization 652 * @param site whether the organization is to be associated with a main 653 site 654 * @param addresses the organization's addresses 655 * @param emailAddresses the organization's email addresses 656 * @param orgLabors the organization's hours of operation 657 * @param phones the organization's phone numbers 658 * @param websites the organization's websites 659 * @param serviceContext the service context to be applied (optionally 660 <code>null</code>). Can set asset category IDs and asset tag 661 names for the organization, and merge expando bridge 662 attributes for the organization. 663 * @return the organization 664 * @throws PortalException if an organization or parent organization 665 with the primary key could not be found, if the user did not 666 have permission to update the organization information, or if 667 the new information was invalid 668 * @deprecated As of 7.0.0, replaced by {@link #updateOrganization(long, 669 long, String, String, long, long, int, String, boolean, 670 byte[], boolean, List, List, List, List, List, 671 ServiceContext)} 672 */ 673 @Deprecated 674 @Override 675 public com.liferay.portal.model.Organization updateOrganization( 676 long organizationId, long parentOrganizationId, java.lang.String name, 677 java.lang.String type, long regionId, long countryId, long statusId, 678 java.lang.String comments, boolean site, 679 java.util.List<com.liferay.portal.model.Address> addresses, 680 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 681 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors, 682 java.util.List<com.liferay.portal.model.Phone> phones, 683 java.util.List<com.liferay.portal.model.Website> websites, 684 com.liferay.portal.service.ServiceContext serviceContext) 685 throws com.liferay.portal.kernel.exception.PortalException { 686 return _organizationService.updateOrganization(organizationId, 687 parentOrganizationId, name, type, regionId, countryId, statusId, 688 comments, site, addresses, emailAddresses, orgLabors, phones, 689 websites, serviceContext); 690 } 691 692 /** 693 * Updates the organization. 694 * 695 * @param organizationId the primary key of the organization 696 * @param parentOrganizationId the primary key of the organization's parent 697 organization 698 * @param name the organization's name 699 * @param type the organization's type 700 * @param regionId the primary key of the organization's region 701 * @param countryId the primary key of the organization's country 702 * @param statusId the organization's workflow status 703 * @param comments the comments about the organization 704 * @param site whether the organization is to be associated with a main 705 site 706 * @param serviceContext the service context to be applied (optionally 707 <code>null</code>). Can set asset category IDs and asset tag 708 names for the organization, and merge expando bridge attributes 709 for the organization. 710 * @return the organization 711 * @throws PortalException if an organization or parent organization with 712 the primary key could not be found, if the user did not have 713 permission to update the organization, or if the new information 714 was invalid 715 */ 716 @Override 717 public com.liferay.portal.model.Organization updateOrganization( 718 long organizationId, long parentOrganizationId, java.lang.String name, 719 java.lang.String type, long regionId, long countryId, long statusId, 720 java.lang.String comments, boolean site, 721 com.liferay.portal.service.ServiceContext serviceContext) 722 throws com.liferay.portal.kernel.exception.PortalException { 723 return _organizationService.updateOrganization(organizationId, 724 parentOrganizationId, name, type, regionId, countryId, statusId, 725 comments, site, serviceContext); 726 } 727 728 /** 729 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 730 */ 731 @Deprecated 732 public OrganizationService getWrappedOrganizationService() { 733 return _organizationService; 734 } 735 736 /** 737 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 738 */ 739 @Deprecated 740 public void setWrappedOrganizationService( 741 OrganizationService organizationService) { 742 _organizationService = organizationService; 743 } 744 745 @Override 746 public OrganizationService getWrappedService() { 747 return _organizationService; 748 } 749 750 @Override 751 public void setWrappedService(OrganizationService organizationService) { 752 _organizationService = organizationService; 753 } 754 755 private OrganizationService _organizationService; 756 }