001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portal.service; 016 017 import com.liferay.portal.kernel.exception.PortalException; 018 import com.liferay.portal.kernel.exception.SystemException; 019 import com.liferay.portal.kernel.transaction.Isolation; 020 import com.liferay.portal.kernel.transaction.Propagation; 021 import com.liferay.portal.kernel.transaction.Transactional; 022 023 /** 024 * The interface for the organization local service. 025 * 026 * <p> 027 * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM. 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see OrganizationLocalServiceUtil 032 * @see com.liferay.portal.service.base.OrganizationLocalServiceBaseImpl 033 * @see com.liferay.portal.service.impl.OrganizationLocalServiceImpl 034 * @generated 035 */ 036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = { 037 PortalException.class, SystemException.class}) 038 public interface OrganizationLocalService extends PersistedModelLocalService { 039 /* 040 * NOTE FOR DEVELOPERS: 041 * 042 * Never modify or reference this interface directly. Always use {@link OrganizationLocalServiceUtil} to access the organization local service. Add custom service methods to {@link com.liferay.portal.service.impl.OrganizationLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. 043 */ 044 045 /** 046 * Adds the organization to the database. Also notifies the appropriate model listeners. 047 * 048 * @param organization the organization 049 * @return the organization that was added 050 * @throws SystemException if a system exception occurred 051 */ 052 public com.liferay.portal.model.Organization addOrganization( 053 com.liferay.portal.model.Organization organization) 054 throws com.liferay.portal.kernel.exception.SystemException; 055 056 /** 057 * Creates a new organization with the primary key. Does not add the organization to the database. 058 * 059 * @param organizationId the primary key for the new organization 060 * @return the new organization 061 */ 062 public com.liferay.portal.model.Organization createOrganization( 063 long organizationId); 064 065 /** 066 * Deletes the organization with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param organizationId the primary key of the organization 069 * @throws PortalException if a organization with the primary key could not be found 070 * @throws SystemException if a system exception occurred 071 */ 072 public void deleteOrganization(long organizationId) 073 throws com.liferay.portal.kernel.exception.PortalException, 074 com.liferay.portal.kernel.exception.SystemException; 075 076 /** 077 * Deletes the organization from the database. Also notifies the appropriate model listeners. 078 * 079 * @param organization the organization 080 * @throws PortalException 081 * @throws SystemException if a system exception occurred 082 */ 083 public void deleteOrganization( 084 com.liferay.portal.model.Organization organization) 085 throws com.liferay.portal.kernel.exception.PortalException, 086 com.liferay.portal.kernel.exception.SystemException; 087 088 /** 089 * Performs a dynamic query on the database and returns the matching rows. 090 * 091 * @param dynamicQuery the dynamic query 092 * @return the matching rows 093 * @throws SystemException if a system exception occurred 094 */ 095 @SuppressWarnings("rawtypes") 096 public java.util.List dynamicQuery( 097 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 098 throws com.liferay.portal.kernel.exception.SystemException; 099 100 /** 101 * Performs a dynamic query on the database and returns a range of the matching rows. 102 * 103 * <p> 104 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 105 * </p> 106 * 107 * @param dynamicQuery the dynamic query 108 * @param start the lower bound of the range of model instances 109 * @param end the upper bound of the range of model instances (not inclusive) 110 * @return the range of matching rows 111 * @throws SystemException if a system exception occurred 112 */ 113 @SuppressWarnings("rawtypes") 114 public java.util.List dynamicQuery( 115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 116 int end) throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 120 * 121 * <p> 122 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 123 * </p> 124 * 125 * @param dynamicQuery the dynamic query 126 * @param start the lower bound of the range of model instances 127 * @param end the upper bound of the range of model instances (not inclusive) 128 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 129 * @return the ordered range of matching rows 130 * @throws SystemException if a system exception occurred 131 */ 132 @SuppressWarnings("rawtypes") 133 public java.util.List dynamicQuery( 134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 135 int end, 136 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 137 throws com.liferay.portal.kernel.exception.SystemException; 138 139 /** 140 * Returns the number of rows that match the dynamic query. 141 * 142 * @param dynamicQuery the dynamic query 143 * @return the number of rows that match the dynamic query 144 * @throws SystemException if a system exception occurred 145 */ 146 public long dynamicQueryCount( 147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 148 throws com.liferay.portal.kernel.exception.SystemException; 149 150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 151 public com.liferay.portal.model.Organization fetchOrganization( 152 long organizationId) 153 throws com.liferay.portal.kernel.exception.SystemException; 154 155 /** 156 * Returns the organization with the primary key. 157 * 158 * @param organizationId the primary key of the organization 159 * @return the organization 160 * @throws PortalException if a organization with the primary key could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 164 public com.liferay.portal.model.Organization getOrganization( 165 long organizationId) 166 throws com.liferay.portal.kernel.exception.PortalException, 167 com.liferay.portal.kernel.exception.SystemException; 168 169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 170 public com.liferay.portal.model.PersistedModel getPersistedModel( 171 java.io.Serializable primaryKeyObj) 172 throws com.liferay.portal.kernel.exception.PortalException, 173 com.liferay.portal.kernel.exception.SystemException; 174 175 /** 176 * Returns a range of all the organizations. 177 * 178 * <p> 179 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 180 * </p> 181 * 182 * @param start the lower bound of the range of organizations 183 * @param end the upper bound of the range of organizations (not inclusive) 184 * @return the range of organizations 185 * @throws SystemException if a system exception occurred 186 */ 187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 188 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 189 int start, int end) 190 throws com.liferay.portal.kernel.exception.SystemException; 191 192 /** 193 * Returns the number of organizations. 194 * 195 * @return the number of organizations 196 * @throws SystemException if a system exception occurred 197 */ 198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 199 public int getOrganizationsCount() 200 throws com.liferay.portal.kernel.exception.SystemException; 201 202 /** 203 * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 204 * 205 * @param organization the organization 206 * @return the organization that was updated 207 * @throws SystemException if a system exception occurred 208 */ 209 public com.liferay.portal.model.Organization updateOrganization( 210 com.liferay.portal.model.Organization organization) 211 throws com.liferay.portal.kernel.exception.SystemException; 212 213 /** 214 * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 215 * 216 * @param organization the organization 217 * @param merge whether to merge the organization with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation. 218 * @return the organization that was updated 219 * @throws SystemException if a system exception occurred 220 */ 221 public com.liferay.portal.model.Organization updateOrganization( 222 com.liferay.portal.model.Organization organization, boolean merge) 223 throws com.liferay.portal.kernel.exception.SystemException; 224 225 /** 226 * Returns the Spring bean ID for this bean. 227 * 228 * @return the Spring bean ID for this bean 229 */ 230 public java.lang.String getBeanIdentifier(); 231 232 /** 233 * Sets the Spring bean ID for this bean. 234 * 235 * @param beanIdentifier the Spring bean ID for this bean 236 */ 237 public void setBeanIdentifier(java.lang.String beanIdentifier); 238 239 /** 240 * Adds the organizations to the group. 241 * 242 * @param groupId the primary key of the group 243 * @param organizationIds the primary keys of the organizations 244 * @throws PortalException if a group or organization with the primary key 245 could not be found 246 * @throws SystemException if a system exception occurred 247 */ 248 public void addGroupOrganizations(long groupId, long[] organizationIds) 249 throws com.liferay.portal.kernel.exception.PortalException, 250 com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Adds an organization. 254 * 255 * <p> 256 * This method handles the creation and bookkeeping of the organization 257 * including its resources, metadata, and internal data structures. It is 258 * not necessary to make a subsequent call to {@link 259 * #addOrganizationResources(long, Organization)}. 260 * </p> 261 * 262 * @param userId the primary key of the creator/owner of the organization 263 * @param parentOrganizationId the primary key of the organization's parent 264 organization 265 * @param name the organization's name 266 * @param type the organization's type 267 * @param recursable whether the permissions of the organization are to be 268 inherited by its sub-organizations 269 * @param regionId the primary key of the organization's region 270 * @param countryId the primary key of the organization's country 271 * @param statusId the organization's workflow status 272 * @param comments the comments about the organization 273 * @param site whether the organization is to be associated with a main 274 site 275 * @param serviceContext the organization's service context (optionally 276 <code>null</code>). Can specify the organization's asset category 277 IDs, asset tag names, and expando bridge attributes. 278 * @return the organization 279 * @throws PortalException if a creator or parent organization with the 280 primary key could not be found or if the organization's 281 information was invalid 282 * @throws SystemException if a system exception occurred 283 */ 284 public com.liferay.portal.model.Organization addOrganization(long userId, 285 long parentOrganizationId, java.lang.String name, 286 java.lang.String type, boolean recursable, long regionId, 287 long countryId, int statusId, java.lang.String comments, boolean site, 288 com.liferay.portal.service.ServiceContext serviceContext) 289 throws com.liferay.portal.kernel.exception.PortalException, 290 com.liferay.portal.kernel.exception.SystemException; 291 292 /** 293 * Adds a resource for each type of permission available on the 294 * organization. 295 * 296 * @param userId the primary key of the creator/owner of the organization 297 * @param organization the organization 298 * @throws PortalException if a portal exception occurred 299 * @throws SystemException if a system exception occurred 300 */ 301 public void addOrganizationResources(long userId, 302 com.liferay.portal.model.Organization organization) 303 throws com.liferay.portal.kernel.exception.PortalException, 304 com.liferay.portal.kernel.exception.SystemException; 305 306 /** 307 * Assigns the password policy to the organizations, removing any other 308 * currently assigned password policies. 309 * 310 * @param passwordPolicyId the primary key of the password policy 311 * @param organizationIds the primary keys of the organizations 312 * @throws SystemException if a system exception occurred 313 */ 314 public void addPasswordPolicyOrganizations(long passwordPolicyId, 315 long[] organizationIds) 316 throws com.liferay.portal.kernel.exception.SystemException; 317 318 /** 319 * Deletes the logo of the organization. 320 * 321 * @param organizationId the primary key of the organization 322 * @throws PortalException if an organization or parent organization with 323 the primary key could not be found or if the organization's logo 324 could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public void deleteLogo(long organizationId) 328 throws com.liferay.portal.kernel.exception.PortalException, 329 com.liferay.portal.kernel.exception.SystemException; 330 331 /** 332 * Returns all the organizations belonging to the group. 333 * 334 * @param groupId the primary key of the group 335 * @return the organizations belonging to the group 336 * @throws SystemException if a system exception occurred 337 */ 338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 339 public java.util.List<com.liferay.portal.model.Organization> getGroupOrganizations( 340 long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException; 342 343 /** 344 * Returns the organization with the name. 345 * 346 * @param companyId the primary key of the organization's company 347 * @param name the organization's name 348 * @return the organization with the name 349 * @throws PortalException if the organization with the name could not be 350 found 351 * @throws SystemException if a system exception occurred 352 */ 353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 354 public com.liferay.portal.model.Organization getOrganization( 355 long companyId, java.lang.String name) 356 throws com.liferay.portal.kernel.exception.PortalException, 357 com.liferay.portal.kernel.exception.SystemException; 358 359 /** 360 * Returns the primary key of the organization with the name. 361 * 362 * @param companyId the primary key of the organization's company 363 * @param name the organization's name 364 * @return the primary key of the organization with the name, or 365 <code>0</code> if the organization could not be found 366 * @throws SystemException if a system exception occurred 367 */ 368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 369 public long getOrganizationId(long companyId, java.lang.String name) 370 throws com.liferay.portal.kernel.exception.SystemException; 371 372 /** 373 * Returns all the organizations belonging to the parent organization. 374 * 375 * @param companyId the primary key of the organization's company 376 * @param parentOrganizationId the primary key of the organization's parent 377 organization 378 * @return the organizations belonging to the parent organization 379 * @throws SystemException if a system exception occurred 380 */ 381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 382 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 383 long companyId, long parentOrganizationId) 384 throws com.liferay.portal.kernel.exception.SystemException; 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 organization's company 401 * @param parentOrganizationId the primary key of the organization's 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 * @see com.liferay.portal.service.persistence.OrganizationPersistence#findByC_P( 409 long, long, int, int) 410 */ 411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 412 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 413 long companyId, long parentOrganizationId, int start, int end) 414 throws com.liferay.portal.kernel.exception.SystemException; 415 416 /** 417 * Returns the organizations with the primary keys. 418 * 419 * @param organizationIds the primary keys of the organizations 420 * @return the organizations with the primary keys 421 * @throws PortalException if any one of the organizations could not be 422 found 423 * @throws SystemException if a system exception occurred 424 */ 425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 426 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 427 long[] organizationIds) 428 throws com.liferay.portal.kernel.exception.PortalException, 429 com.liferay.portal.kernel.exception.SystemException; 430 431 /** 432 * Returns the number of organizations belonging to the parent organization. 433 * 434 * @param companyId the primary key of the organization's company 435 * @param parentOrganizationId the primary key of the organization's parent 436 organization 437 * @return the number of organizations belonging to the parent organization 438 * @throws SystemException if a system exception occurred 439 */ 440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 441 public int getOrganizationsCount(long companyId, long parentOrganizationId) 442 throws com.liferay.portal.kernel.exception.SystemException; 443 444 /** 445 * Returns the parent organizations in order by closest ancestor. The list 446 * starts with the organization itself. 447 * 448 * @param organizationId the primary key of the organization 449 * @return the parent organizations in order by closest ancestor 450 * @throws PortalException if an organization with the primary key could not 451 be found 452 * @throws SystemException if a system exception occurred 453 */ 454 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 455 public java.util.List<com.liferay.portal.model.Organization> getParentOrganizations( 456 long organizationId) 457 throws com.liferay.portal.kernel.exception.PortalException, 458 com.liferay.portal.kernel.exception.SystemException; 459 460 /** 461 * Returns the sub-organizations of the organizations. 462 * 463 * @param organizations the organizations from which to get 464 sub-organizations 465 * @return the sub-organizations of the organizations 466 * @throws SystemException if a system exception occurred 467 */ 468 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 469 public java.util.List<com.liferay.portal.model.Organization> getSuborganizations( 470 java.util.List<com.liferay.portal.model.Organization> organizations) 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 /** 474 * Returns the intersection of <code>allOrganizations</code> and 475 * <code>availableOrganizations</code>. 476 * 477 * @param allOrganizations the organizations to check for availability 478 * @param availableOrganizations the available organizations 479 * @return the intersection of <code>allOrganizations</code> and 480 <code>availableOrganizations</code> 481 */ 482 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 483 public java.util.List<com.liferay.portal.model.Organization> getSubsetOrganizations( 484 java.util.List<com.liferay.portal.model.Organization> allOrganizations, 485 java.util.List<com.liferay.portal.model.Organization> availableOrganizations); 486 487 /** 488 * Returns all the organizations associated with the user. 489 * 490 * @param userId the primary key of the user 491 * @return the organizations associated with the user 492 * @throws PortalException if a user with the primary key could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 496 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 497 long userId) 498 throws com.liferay.portal.kernel.exception.PortalException, 499 com.liferay.portal.kernel.exception.SystemException; 500 501 /** 502 * Returns all the organizations associated with the user, optionally 503 * including the organizations associated with the user groups to which the 504 * user belongs. 505 * 506 * @param userId the primary key of the user 507 * @param inheritUserGroups whether to include organizations associated 508 with the user groups to which the user belongs 509 * @return the organizations associated with the user 510 * @throws PortalException if a user with the primary key could not be found 511 * @throws SystemException if a system exception occurred 512 */ 513 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 514 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 515 long userId, boolean inheritUserGroups) 516 throws com.liferay.portal.kernel.exception.PortalException, 517 com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns a range of all the organizations associated with the user, 521 * optionally including the organizations associated with the user groups to 522 * which the user belongs. 523 * 524 * <p> 525 * Useful when paginating results. Returns a maximum of <code>end - 526 * start</code> instances. <code>start</code> and <code>end</code> are not 527 * primary keys, they are indexes in the result set. Thus, <code>0</code> 528 * refers to the first result in the set. Setting both <code>start</code> 529 * and <code>end</code> to {@link 530 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 531 * result set. 532 * </p> 533 * 534 * @param userId the primary key of the user 535 * @param inheritUserGroups whether to include organizations associated 536 with the user groups to which the user belongs 537 * @param start the lower bound of the range of organizations to return 538 * @param end the upper bound of the range of organizations to return (not 539 inclusive) 540 * @return the range organizations associated with the user 541 * @throws PortalException if a user with the primary key could not be found 542 * @throws SystemException if a system exception occurred 543 */ 544 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 545 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 546 long userId, boolean inheritUserGroups, int start, int end) 547 throws com.liferay.portal.kernel.exception.PortalException, 548 com.liferay.portal.kernel.exception.SystemException; 549 550 /** 551 * Returns a range of all the organizations associated with the user. 552 * 553 * <p> 554 * Useful when paginating results. Returns a maximum of <code>end - 555 * start</code> instances. <code>start</code> and <code>end</code> are not 556 * primary keys, they are indexes in the result set. Thus, <code>0</code> 557 * refers to the first result in the set. Setting both <code>start</code> 558 * and <code>end</code> to {@link 559 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 560 * result set. 561 * </p> 562 * 563 * @param userId the primary key of the user 564 * @param start the lower bound of the range of organizations to return 565 * @param end the upper bound of the range of organizations to return (not 566 inclusive) 567 * @return the range organizations associated with the user 568 * @throws PortalException if a user with the primary key could not be found 569 * @throws SystemException if a system exception occurred 570 */ 571 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 572 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 573 long userId, int start, int end) 574 throws com.liferay.portal.kernel.exception.PortalException, 575 com.liferay.portal.kernel.exception.SystemException; 576 577 /** 578 * Returns the number of organizations associated with the user. 579 * 580 * @param userId the primary key of the user 581 * @return the number of organizations associated with the user 582 * @throws SystemException if a system exception occurred 583 */ 584 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 585 public int getUserOrganizationsCount(long userId) 586 throws com.liferay.portal.kernel.exception.SystemException; 587 588 /** 589 * Returns <code>true</code> if the organization belongs to the group. 590 * 591 * @param groupId the primary key of the group 592 * @param organizationId the primary key of the organization 593 * @return <code>true</code> if the organization belongs to the group; 594 <code>false</code> otherwise 595 * @throws SystemException if a system exception occurred 596 */ 597 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 598 public boolean hasGroupOrganization(long groupId, long organizationId) 599 throws com.liferay.portal.kernel.exception.SystemException; 600 601 /** 602 * Returns <code>true</code> if the password policy has been assigned to 603 * the organization. 604 * 605 * @param passwordPolicyId the primary key of the password policy 606 * @param organizationId the primary key of the organization 607 * @return <code>true</code> if the password policy has been assigned to 608 the organization; <code>false</code> otherwise 609 * @throws SystemException if a system exception occurred 610 */ 611 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 612 public boolean hasPasswordPolicyOrganization(long passwordPolicyId, 613 long organizationId) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Returns <code>true</code> if the user is a member of the organization. 618 * This method is usually called to determine if the user has view access 619 * to a resource belonging to the organization. 620 * 621 * @param userId the primary key of the user 622 * @param organizationId the primary key of the organization 623 * @return <code>true</code> if the user has access to the organization; 624 <code>false</code> otherwise 625 * @throws SystemException if a system exception occurred 626 */ 627 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 628 public boolean hasUserOrganization(long userId, long organizationId) 629 throws com.liferay.portal.kernel.exception.SystemException; 630 631 /** 632 * Returns <code>true</code> if the user is a member of the organization, 633 * optionally focusing on sub-organizations, user groups, or the specified 634 * organization. This method is usually called to determine if the user has 635 * view access to a resource belonging to the organization. 636 * 637 * <p> 638 * 639 * <ol> 640 * <li> 641 * If <code>inheritSuborganizations=<code>false</code></code> and 642 * <code>inheritUserGroups=<code>false</code></code>: the method checks 643 * whether the user 644 * belongs to the organization specified by <code>organizationId</code>. The 645 * parameter 646 * <code>includeSpecifiedOrganization</code> is ignored. 647 * </li> 648 * <li> 649 * If <code>inheritUserGroups=<code>true</code></code>: the method checks 650 * whether the 651 * user belongs to a user group which has been made as a whole member of the 652 * the organization specified by <code>organizationId</code>. The parameter 653 * <code>includeSpecifiedOrganization</code> is 654 * ignored unless <code>inheritSuborganizations</code> is also 655 * <code>true</code>. 656 * </li> 657 * <li> 658 * If <code>inheritSuborganizations=<code>true</code></code> and 659 * <code>includeSpecifiedOrganization=<code>false</code></code>: the method 660 * checks 661 * whether the user belongs to one of the child organizations of the one 662 * specified by <code>organizationId</code>. 663 * </li> 664 * <li> 665 * If <code>inheritSuborganizations=<code>true</code></code> and 666 * <code>includeSpecifiedOrganization=<code>true</code></code>: the method 667 * checks whether 668 * the user belongs to the organization specified by 669 * <code>organizationId</code> or any of 670 * its child organizations. 671 * </li> 672 * </ol> 673 * 674 * <p> 675 * 676 * @param userId the primary key of the organization's user 677 * @param organizationId the primary key of the organization 678 * @param inheritSuborganizations if <code>true</code> sub-organizations 679 are considered in the determination 680 * @param inheritUserGroups if <code>true</code> organizations inherited 681 from the user groups to which the user belongs are considered in 682 the determination 683 * @param includeSpecifiedOrganization if <code>true</code> the 684 organization specified by <code>organizationId</code> is 685 considered in the determination. 686 * @return <code>true</code> if the user has access to the organization; 687 <code>false</code> otherwise 688 * @throws PortalException if an organization with the primary key could not 689 be found 690 * @throws SystemException if a system exception occurred 691 * @see com.liferay.portal.service.persistence.OrganizationFinder 692 */ 693 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 694 public boolean hasUserOrganization(long userId, long organizationId, 695 boolean inheritSuborganizations, boolean inheritUserGroups, 696 boolean includeSpecifiedOrganization) 697 throws com.liferay.portal.kernel.exception.PortalException, 698 com.liferay.portal.kernel.exception.SystemException; 699 700 /** 701 * Rebuilds the organizations tree. 702 * 703 * <p> 704 * Only call this method if the tree has become stale through operations 705 * other than normal CRUD. Under normal circumstances the tree is 706 * automatically rebuilt whenever necessary. 707 * </p> 708 * 709 * @param companyId the primary key of the organization's company 710 * @throws SystemException if a system exception occurred 711 * @see com.liferay.portal.service.persistence.OrganizationPersistence#rebuildTree( 712 long, boolean) 713 */ 714 public void rebuildTree(long companyId) 715 throws com.liferay.portal.kernel.exception.PortalException, 716 com.liferay.portal.kernel.exception.SystemException; 717 718 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 719 public java.util.List<com.liferay.portal.model.Organization> search( 720 long companyId, 721 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 722 int start, int end) 723 throws com.liferay.portal.kernel.exception.SystemException; 724 725 /** 726 * Returns an ordered range of all the organizations that match the 727 * keywords, using the indexer. It is preferable to use this method instead 728 * of the non-indexed version whenever possible for performance reasons. 729 * 730 * <p> 731 * Useful when paginating results. Returns a maximum of <code>end - 732 * start</code> instances. <code>start</code> and <code>end</code> are not 733 * primary keys, they are indexes in the result set. Thus, <code>0</code> 734 * refers to the first result in the set. Setting both <code>start</code> 735 * and <code>end</code> to {@link 736 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 737 * result set. 738 * </p> 739 * 740 * @param companyId the primary key of the organization's company 741 * @param parentOrganizationId the primary key of the organization's parent 742 organization 743 * @param keywords the keywords (space separated), which may occur in the 744 organization's name, street, city, zipcode, type, region or 745 country (optionally <code>null</code>) 746 * @param params the finder parameters (optionally <code>null</code>). For 747 more information see {@link 748 com.liferay.portlet.enterpriseadmin.util.OrganizationIndexer} 749 * @param start the lower bound of the range of organizations to return 750 * @param end the upper bound of the range of organizations to return (not 751 inclusive) 752 * @param sort the field and direction by which to sort (optionally 753 <code>null</code>) 754 * @return the matching organizations ordered by name 755 * @throws SystemException if a system exception occurred 756 * @see com.liferay.portlet.enterpriseadmin.util.OrganizationIndexer 757 */ 758 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 759 public com.liferay.portal.kernel.search.Hits search(long companyId, 760 long parentOrganizationId, java.lang.String keywords, 761 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 762 int start, int end, com.liferay.portal.kernel.search.Sort sort) 763 throws com.liferay.portal.kernel.exception.SystemException; 764 765 /** 766 * Returns a name ordered range of all the organizations that match the 767 * keywords, type, region, and country, without using the indexer. It is 768 * preferable to use the indexed version {@link #search(long, long, String, 769 * LinkedHashMap, int, int, Sort)} instead of this method wherever possible 770 * for performance reasons. 771 * 772 * <p> 773 * Useful when paginating results. Returns a maximum of <code>end - 774 * start</code> instances. <code>start</code> and <code>end</code> are not 775 * primary keys, they are indexes in the result set. Thus, <code>0</code> 776 * refers to the first result in the set. Setting both <code>start</code> 777 * and <code>end</code> to {@link 778 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 779 * result set. 780 * </p> 781 * 782 * @param companyId the primary key of the organization's company 783 * @param parentOrganizationId the primary key of the organization's parent 784 organization 785 * @param keywords the keywords (space separated), which may occur in the 786 organization's name, street, city, or zipcode (optionally 787 <code>null</code>) 788 * @param type the organization's type (optionally <code>null</code>) 789 * @param regionId the primary key of the organization's region (optionally 790 <code>null</code>) 791 * @param countryId the primary key of the organization's country 792 (optionally <code>null</code>) 793 * @param params the finder params. For more information see {@link 794 com.liferay.portal.service.persistence.OrganizationFinder} 795 * @param start the lower bound of the range of organizations to return 796 * @param end the upper bound of the range of organizations to return (not 797 inclusive) 798 * @return the matching organizations ordered by name 799 * @throws SystemException if a system exception occurred 800 * @see com.liferay.portal.service.persistence.OrganizationFinder 801 */ 802 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 803 public java.util.List<com.liferay.portal.model.Organization> search( 804 long companyId, long parentOrganizationId, java.lang.String keywords, 805 java.lang.String type, java.lang.Long regionId, 806 java.lang.Long countryId, 807 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 808 int start, int end) 809 throws com.liferay.portal.kernel.exception.SystemException; 810 811 /** 812 * Returns an ordered range of all the organizations that match the 813 * keywords, type, region, and country, without using the indexer. It is 814 * preferable to use the indexed version {@link #search(long, long, String, 815 * String, String, String, String, String, String, LinkedHashMap, boolean, 816 * int, int, Sort)} instead of this method wherever possible for performance 817 * reasons. 818 * 819 * <p> 820 * Useful when paginating results. Returns a maximum of <code>end - 821 * start</code> instances. <code>start</code> and <code>end</code> are not 822 * primary keys, they are indexes in the result set. Thus, <code>0</code> 823 * refers to the first result in the set. Setting both <code>start</code> 824 * and <code>end</code> to {@link 825 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 826 * result set. 827 * </p> 828 * 829 * @param companyId the primary key of the organization's company 830 * @param parentOrganizationId the primary key of the organization's parent 831 organization 832 * @param keywords the keywords (space separated), which may occur in the 833 organization's name, street, city, or zipcode (optionally 834 <code>null</code>) 835 * @param type the organization's type (optionally <code>null</code>) 836 * @param regionId the primary key of the organization's region (optionally 837 <code>null</code>) 838 * @param countryId the primary key of the organization's country 839 (optionally <code>null</code>) 840 * @param params the finder params. For more information see {@link 841 com.liferay.portal.service.persistence.OrganizationFinder} 842 * @param start the lower bound of the range of organizations to return 843 * @param end the upper bound of the range of organizations to return (not 844 inclusive) 845 * @param obc the comparator to order the organizations (optionally 846 <code>null</code>) 847 * @return the matching organizations ordered by comparator <code>obc</code> 848 * @throws SystemException if a system exception occurred 849 * @see com.liferay.portal.service.persistence.OrganizationFinder 850 */ 851 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 852 public java.util.List<com.liferay.portal.model.Organization> search( 853 long companyId, long parentOrganizationId, java.lang.String keywords, 854 java.lang.String type, java.lang.Long regionId, 855 java.lang.Long countryId, 856 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 857 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 858 throws com.liferay.portal.kernel.exception.SystemException; 859 860 /** 861 * Returns a name ordered range of all the organizations with the type, 862 * region, and country, and whose name, street, city, and zipcode match the 863 * keywords specified for them, without using the indexer. It is preferable 864 * to use the indexed version {@link #search(long, long, String, String, 865 * String, String, String, String, String, LinkedHashMap, boolean, int, int, 866 * Sort)} instead of this method wherever possible for performance reasons. 867 * 868 * <p> 869 * Useful when paginating results. Returns a maximum of <code>end - 870 * start</code> instances. <code>start</code> and <code>end</code> are not 871 * primary keys, they are indexes in the result set. Thus, <code>0</code> 872 * refers to the first result in the set. Setting both <code>start</code> 873 * and <code>end</code> to {@link 874 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 875 * result set. 876 * </p> 877 * 878 * @param companyId the primary key of the organization's company 879 * @param parentOrganizationId the primary key of the organization's parent 880 * @param name the name keywords (space separated, optionally 881 <code>null</code>) 882 * @param type the organization's type (optionally <code>null</code>) 883 * @param street the street keywords (optionally <code>null</code>) 884 * @param city the city keywords (optionally <code>null</code>) 885 * @param zip the zipcode keywords (optionally <code>null</code>) 886 * @param regionId the primary key of the organization's region (optionally 887 <code>null</code>) 888 * @param countryId the primary key of the organization's country 889 (optionally <code>null</code>) 890 * @param params the finder parameters (optionally <code>null</code>). For 891 more information see {@link 892 com.liferay.portal.service.persistence.OrganizationFinder} 893 * @param andOperator whether every field must match its keywords, or just 894 one field. For example, "organizations with the name 895 'Employees' and city 'Chicago'" vs "organizations with 896 the name 'Employees' or the city 'Chicago'". 897 * @param start the lower bound of the range of organizations to return 898 * @param end the upper bound of the range of organizations to return (not 899 inclusive) 900 * @return the matching organizations ordered by name 901 * @throws SystemException if a system exception occurred 902 * @see com.liferay.portal.service.persistence.OrganizationFinder 903 */ 904 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 905 public java.util.List<com.liferay.portal.model.Organization> search( 906 long companyId, long parentOrganizationId, java.lang.String name, 907 java.lang.String type, java.lang.String street, java.lang.String city, 908 java.lang.String zip, java.lang.Long regionId, 909 java.lang.Long countryId, 910 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 911 boolean andOperator, int start, int end) 912 throws com.liferay.portal.kernel.exception.SystemException; 913 914 /** 915 * Returns an ordered range of all the organizations with the type, region, 916 * and country, and whose name, street, city, and zipcode match the keywords 917 * specified for them, without using the indexer. It is preferable to use 918 * the indexed version {@link #search(long, long, String, String, String, 919 * String, String, String, String, LinkedHashMap, boolean, int, int, Sort)} 920 * instead of this method wherever possible for performance reasons. 921 * 922 * <p> 923 * Useful when paginating results. Returns a maximum of <code>end - 924 * start</code> instances. <code>start</code> and <code>end</code> are not 925 * primary keys, they are indexes in the result set. Thus, <code>0</code> 926 * refers to the first result in the set. Setting both <code>start</code> 927 * and <code>end</code> to {@link 928 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 929 * result set. 930 * </p> 931 * 932 * @param companyId the primary key of the organization's company 933 * @param parentOrganizationId the primary key of the organization's parent 934 organization 935 * @param name the name keywords (space separated, optionally 936 <code>null</code>) 937 * @param type the organization's type (optionally <code>null</code>) 938 * @param street the street keywords (optionally <code>null</code>) 939 * @param city the city keywords (optionally <code>null</code>) 940 * @param zip the zipcode keywords (optionally <code>null</code>) 941 * @param regionId the primary key of the organization's region (optionally 942 <code>null</code>) 943 * @param countryId the primary key of the organization's country 944 (optionally <code>null</code>) 945 * @param params the finder parameters (optionally <code>null</code>). For 946 more information see {@link 947 com.liferay.portal.service.persistence.OrganizationFinder} 948 * @param andOperator whether every field must match its keywords, or just 949 one field. For example, "organizations with the name 950 'Employees' and city 'Chicago'" vs "organizations with 951 the name 'Employees' or the city 'Chicago'". 952 * @param start the lower bound of the range of organizations to return 953 * @param end the upper bound of the range of organizations to return (not 954 inclusive) 955 * @param obc the comparator to order the organizations (optionally 956 <code>null</code>) 957 * @return the matching organizations ordered by comparator <code>obc</code> 958 * @throws SystemException if a system exception occurred 959 * @see com.liferay.portal.service.persistence.OrganizationFinder 960 */ 961 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 962 public java.util.List<com.liferay.portal.model.Organization> search( 963 long companyId, long parentOrganizationId, java.lang.String name, 964 java.lang.String type, java.lang.String street, java.lang.String city, 965 java.lang.String zip, java.lang.Long regionId, 966 java.lang.Long countryId, 967 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 968 boolean andOperator, int start, int end, 969 com.liferay.portal.kernel.util.OrderByComparator obc) 970 throws com.liferay.portal.kernel.exception.SystemException; 971 972 /** 973 * Returns an ordered range of all the organizations whose name, type, or 974 * location fields match the keywords specified for them, using the indexer. 975 * It is preferable to use this method instead of the non-indexed version 976 * whenever possible for performance reasons. 977 * 978 * <p> 979 * Useful when paginating results. Returns a maximum of <code>end - 980 * start</code> instances. <code>start</code> and <code>end</code> are not 981 * primary keys, they are indexes in the result set. Thus, <code>0</code> 982 * refers to the first result in the set. Setting both <code>start</code> 983 * and <code>end</code> to {@link 984 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 985 * result set. 986 * </p> 987 * 988 * @param companyId the primary key of the organization's company 989 * @param parentOrganizationId the primary key of the organization's parent 990 organization 991 * @param name the name keywords (space separated, optionally 992 <code>null</code>) 993 * @param type the type keywords (optionally <code>null</code>) 994 * @param street the street keywords (optionally <code>null</code>) 995 * @param city the city keywords (optionally <code>null</code>) 996 * @param zip the zipcode keywords (optionally <code>null</code>) 997 * @param region the region keywords (optionally <code>null</code>) 998 * @param country the country keywords (optionally <code>null</code>) 999 * @param params the finder parameters (optionally <code>null</code>). For 1000 more information see {@link 1001 com.liferay.portlet.enterpriseadmin.util.OrganizationIndexer}. 1002 * @param andSearch whether every field must match its keywords or just one 1003 field. 1004 * @param start the lower bound of the range of organizations to return 1005 * @param end the upper bound of the range of organizations to return (not 1006 inclusive) 1007 * @param sort the field and direction by which to sort (optionally 1008 <code>null</code>) 1009 * @return the matching organizations ordered by <code>sort</code> 1010 * @throws SystemException if a system exception occurred 1011 * @see com.liferay.portlet.enterpriseadmin.util.OrganizationIndexer 1012 */ 1013 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 1014 public com.liferay.portal.kernel.search.Hits search(long companyId, 1015 long parentOrganizationId, java.lang.String name, 1016 java.lang.String type, java.lang.String street, java.lang.String city, 1017 java.lang.String zip, java.lang.String region, 1018 java.lang.String country, 1019 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1020 boolean andSearch, int start, int end, 1021 com.liferay.portal.kernel.search.Sort sort) 1022 throws com.liferay.portal.kernel.exception.SystemException; 1023 1024 /** 1025 * Returns the number of organizations that match the keywords, type, 1026 * region, and country. 1027 * 1028 * @param companyId the primary key of the organization's company 1029 * @param parentOrganizationId the primary key of the organization's parent 1030 organization 1031 * @param keywords the keywords (space separated), which may occur in the 1032 organization's name, street, city, or zipcode (optionally 1033 <code>null</code>) 1034 * @param type the organization's type (optionally <code>null</code>) 1035 * @param regionId the primary key of the organization's region (optionally 1036 <code>null</code>) 1037 * @param countryId the primary key of the organization's country 1038 (optionally <code>null</code>) 1039 * @param params the finder parameters (optionally <code>null</code>). For 1040 more information see {@link 1041 com.liferay.portal.service.persistence.OrganizationFinder} 1042 * @return the number of matching organizations 1043 * @throws SystemException if a system exception occurred 1044 * @see com.liferay.portal.service.persistence.OrganizationFinder 1045 */ 1046 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 1047 public int searchCount(long companyId, long parentOrganizationId, 1048 java.lang.String keywords, java.lang.String type, 1049 java.lang.Long regionId, java.lang.Long countryId, 1050 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 1051 throws com.liferay.portal.kernel.exception.SystemException; 1052 1053 /** 1054 * Returns the number of organizations with the type, region, and country, 1055 * and whose name, street, city, and zipcode match the keywords specified 1056 * for them. 1057 * 1058 * @param companyId the primary key of the organization's company 1059 * @param parentOrganizationId the primary key of the organization's parent 1060 organization 1061 * @param name the name keywords (space separated, optionally 1062 <code>null</code>) 1063 * @param type the organization's type (optionally <code>null</code>) 1064 * @param street the street keywords (optionally <code>null</code>) 1065 * @param city the city keywords (optionally <code>null</code>) 1066 * @param zip the zipcode keywords (optionally <code>null</code>) 1067 * @param regionId the primary key of the organization's region (optionally 1068 <code>null</code>) 1069 * @param countryId the primary key of the organization's country 1070 (optionally <code>null</code>) 1071 * @param params the finder parameters (optionally <code>null</code>). For 1072 more information see {@link 1073 com.liferay.portal.service.persistence.OrganizationFinder} 1074 * @param andOperator whether every field must match its keywords, or just 1075 one field. For example, "organizations with the name 1076 'Employees' and city 'Chicago'" vs "organizations with 1077 the name 'Employees' or the city 'Chicago'". 1078 * @return the number of matching organizations 1079 * @throws SystemException if a system exception occurred 1080 * @see com.liferay.portal.service.persistence.OrganizationFinder 1081 */ 1082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 1083 public int searchCount(long companyId, long parentOrganizationId, 1084 java.lang.String name, java.lang.String type, java.lang.String street, 1085 java.lang.String city, java.lang.String zip, java.lang.Long regionId, 1086 java.lang.Long countryId, 1087 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1088 boolean andOperator) 1089 throws com.liferay.portal.kernel.exception.SystemException; 1090 1091 /** 1092 * Sets the organizations in the group, removing and adding organizations to 1093 * the group as necessary. 1094 * 1095 * @param groupId the primary key of the group 1096 * @param organizationIds the primary keys of the organizations 1097 * @throws PortalException if a portal exception occurred 1098 * @throws SystemException if a system exception occurred 1099 */ 1100 public void setGroupOrganizations(long groupId, long[] organizationIds) 1101 throws com.liferay.portal.kernel.exception.PortalException, 1102 com.liferay.portal.kernel.exception.SystemException; 1103 1104 /** 1105 * Removes the organizations from the group. 1106 * 1107 * @param groupId the primary key of the group 1108 * @param organizationIds the primary keys of the organizations 1109 * @throws PortalException if a portal exception occurred 1110 * @throws SystemException if a system exception occurred 1111 */ 1112 public void unsetGroupOrganizations(long groupId, long[] organizationIds) 1113 throws com.liferay.portal.kernel.exception.PortalException, 1114 com.liferay.portal.kernel.exception.SystemException; 1115 1116 /** 1117 * Removes the organizations from the password policy. 1118 * 1119 * @param passwordPolicyId the primary key of the password policy 1120 * @param organizationIds the primary keys of the organizations 1121 * @throws SystemException if a system exception occurred 1122 */ 1123 public void unsetPasswordPolicyOrganizations(long passwordPolicyId, 1124 long[] organizationIds) 1125 throws com.liferay.portal.kernel.exception.SystemException; 1126 1127 /** 1128 * Updates the organization's asset with the new asset categories and tag 1129 * names, removing and adding asset categories and tag names as necessary. 1130 * 1131 * @param userId the primary key of the user 1132 * @param organization the organization 1133 * @param assetCategoryIds the primary keys of the asset categories 1134 * @param assetTagNames the asset tag names 1135 * @throws PortalException if a user with the primary key could not be found 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public void updateAsset(long userId, 1139 com.liferay.portal.model.Organization organization, 1140 long[] assetCategoryIds, java.lang.String[] assetTagNames) 1141 throws com.liferay.portal.kernel.exception.PortalException, 1142 com.liferay.portal.kernel.exception.SystemException; 1143 1144 /** 1145 * Updates the organization. 1146 * 1147 * @param companyId the primary key of the organization's company 1148 * @param organizationId the primary key of the organization 1149 * @param parentOrganizationId the primary key of organization's parent 1150 organization 1151 * @param name the organization's name 1152 * @param type the organization's type 1153 * @param recursable whether permissions of the organization are to be 1154 inherited by its sub-organizations 1155 * @param regionId the primary key of the organization's region 1156 * @param countryId the primary key of the organization's country 1157 * @param statusId the organization's workflow status 1158 * @param comments the comments about the organization 1159 * @param site whether the organization is to be associated with a main 1160 site 1161 * @param serviceContext the organization's service context (optionally 1162 <code>null</code>). Can specify the organization's replacement 1163 asset category IDs, replacement asset tag names, and new expando 1164 bridge attributes. 1165 * @return the organization 1166 * @throws PortalException if an organization or parent organization with 1167 the primary key could not be found or if the new information was 1168 invalid 1169 * @throws SystemException if a system exception occurred 1170 */ 1171 public com.liferay.portal.model.Organization updateOrganization( 1172 long companyId, long organizationId, long parentOrganizationId, 1173 java.lang.String name, java.lang.String type, boolean recursable, 1174 long regionId, long countryId, int statusId, java.lang.String comments, 1175 boolean site, com.liferay.portal.service.ServiceContext serviceContext) 1176 throws com.liferay.portal.kernel.exception.PortalException, 1177 com.liferay.portal.kernel.exception.SystemException; 1178 }