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