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