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