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