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