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