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 /** 020 * Provides a wrapper for {@link OrganizationLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see OrganizationLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class OrganizationLocalServiceWrapper implements OrganizationLocalService, 028 ServiceWrapper<OrganizationLocalService> { 029 public OrganizationLocalServiceWrapper( 030 OrganizationLocalService organizationLocalService) { 031 _organizationLocalService = organizationLocalService; 032 } 033 034 @Override 035 public void addGroupOrganization(long groupId, 036 com.liferay.portal.model.Organization organization) { 037 _organizationLocalService.addGroupOrganization(groupId, organization); 038 } 039 040 @Override 041 public void addGroupOrganization(long groupId, long organizationId) { 042 _organizationLocalService.addGroupOrganization(groupId, organizationId); 043 } 044 045 /** 046 * @throws PortalException 047 */ 048 @Override 049 public void addGroupOrganizations(long groupId, 050 java.util.List<com.liferay.portal.model.Organization> Organizations) 051 throws com.liferay.portal.kernel.exception.PortalException { 052 _organizationLocalService.addGroupOrganizations(groupId, Organizations); 053 } 054 055 /** 056 * @throws PortalException 057 */ 058 @Override 059 public void addGroupOrganizations(long groupId, long[] organizationIds) 060 throws com.liferay.portal.kernel.exception.PortalException { 061 _organizationLocalService.addGroupOrganizations(groupId, organizationIds); 062 } 063 064 /** 065 * Adds the organization to the database. Also notifies the appropriate model listeners. 066 * 067 * @param organization the organization 068 * @return the organization that was added 069 */ 070 @Override 071 public com.liferay.portal.model.Organization addOrganization( 072 com.liferay.portal.model.Organization organization) { 073 return _organizationLocalService.addOrganization(organization); 074 } 075 076 /** 077 * Adds an organization. 078 * 079 * <p> 080 * This method handles the creation and bookkeeping of the organization 081 * including its resources, metadata, and internal data structures. It is 082 * not necessary to make a subsequent call to {@link 083 * #addOrganizationResources(long, Organization)}. 084 * </p> 085 * 086 * @param userId the primary key of the creator/owner of the organization 087 * @param parentOrganizationId the primary key of the organization's parent 088 organization 089 * @param name the organization's name 090 * @param site whether the organization is to be associated with a main 091 site 092 * @return the organization 093 * @throws PortalException if a creator or parent organization with the 094 primary key could not be found or if the organization's 095 information was invalid 096 */ 097 @Override 098 public com.liferay.portal.model.Organization addOrganization(long userId, 099 long parentOrganizationId, java.lang.String name, boolean site) 100 throws com.liferay.portal.kernel.exception.PortalException { 101 return _organizationLocalService.addOrganization(userId, 102 parentOrganizationId, name, site); 103 } 104 105 /** 106 * Adds an organization. 107 * 108 * <p> 109 * This method handles the creation and bookkeeping of the organization 110 * including its resources, metadata, and internal data structures. It is 111 * not necessary to make a subsequent call to {@link 112 * #addOrganizationResources(long, Organization)}. 113 * </p> 114 * 115 * @param userId the primary key of the creator/owner of the 116 organization 117 * @param parentOrganizationId the primary key of the organization's 118 parent organization 119 * @param name the organization's name 120 * @param type the organization's type 121 * @param recursable whether the permissions of the organization are to 122 be inherited by its suborganizations 123 * @param regionId the primary key of the organization's region 124 * @param countryId the primary key of the organization's country 125 * @param statusId the organization's workflow status 126 * @param comments the comments about the organization 127 * @param site whether the organization is to be associated with a main 128 site 129 * @param serviceContext the service context to be applied (optionally 130 <code>null</code>). Can set asset category IDs, asset tag 131 names, and expando bridge attributes for the organization. 132 * @return the organization 133 * @throws PortalException if a creator or parent organization with the 134 primary key could not be found or if the organization's 135 information was invalid 136 * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long, long, 137 String, String, long, long, int, String, boolean, 138 ServiceContext)} 139 */ 140 @Deprecated 141 @Override 142 public com.liferay.portal.model.Organization addOrganization(long userId, 143 long parentOrganizationId, java.lang.String name, 144 java.lang.String type, boolean recursable, long regionId, 145 long countryId, long statusId, java.lang.String comments, boolean site, 146 com.liferay.portal.service.ServiceContext serviceContext) 147 throws com.liferay.portal.kernel.exception.PortalException { 148 return _organizationLocalService.addOrganization(userId, 149 parentOrganizationId, name, type, recursable, regionId, countryId, 150 statusId, comments, site, serviceContext); 151 } 152 153 /** 154 * Adds an organization. 155 * 156 * <p> 157 * This method handles the creation and bookkeeping of the organization 158 * including its resources, metadata, and internal data structures. It is 159 * not necessary to make a subsequent call to {@link 160 * #addOrganizationResources(long, Organization)}. 161 * </p> 162 * 163 * @param userId the primary key of the creator/owner of the organization 164 * @param parentOrganizationId the primary key of the organization's parent 165 organization 166 * @param name the organization's name 167 * @param type the organization's type 168 * @param regionId the primary key of the organization's region 169 * @param countryId the primary key of the organization's country 170 * @param statusId the organization's workflow status 171 * @param comments the comments about the organization 172 * @param site whether the organization is to be associated with a main 173 site 174 * @param serviceContext the service context to be applied (optionally 175 <code>null</code>). Can set asset category IDs, asset tag names, 176 and expando bridge attributes for the organization. 177 * @return the organization 178 * @throws PortalException if a creator or parent organization with the 179 primary key could not be found or if the organization's 180 information was invalid 181 */ 182 @Override 183 public com.liferay.portal.model.Organization addOrganization(long userId, 184 long parentOrganizationId, java.lang.String name, 185 java.lang.String type, long regionId, long countryId, long statusId, 186 java.lang.String comments, boolean site, 187 com.liferay.portal.service.ServiceContext serviceContext) 188 throws com.liferay.portal.kernel.exception.PortalException { 189 return _organizationLocalService.addOrganization(userId, 190 parentOrganizationId, name, type, regionId, countryId, statusId, 191 comments, site, serviceContext); 192 } 193 194 /** 195 * Adds a resource for each type of permission available on the 196 * organization. 197 * 198 * @param userId the primary key of the creator/owner of the organization 199 * @param organization the organization 200 * @throws PortalException if a portal exception occurred 201 */ 202 @Override 203 public void addOrganizationResources(long userId, 204 com.liferay.portal.model.Organization organization) 205 throws com.liferay.portal.kernel.exception.PortalException { 206 _organizationLocalService.addOrganizationResources(userId, organization); 207 } 208 209 /** 210 * Assigns the password policy to the organizations, removing any other 211 * currently assigned password policies. 212 * 213 * @param passwordPolicyId the primary key of the password policy 214 * @param organizationIds the primary keys of the organizations 215 */ 216 @Override 217 public void addPasswordPolicyOrganizations(long passwordPolicyId, 218 long[] organizationIds) { 219 _organizationLocalService.addPasswordPolicyOrganizations(passwordPolicyId, 220 organizationIds); 221 } 222 223 @Override 224 public void addUserOrganization(long userId, 225 com.liferay.portal.model.Organization organization) { 226 _organizationLocalService.addUserOrganization(userId, organization); 227 } 228 229 @Override 230 public void addUserOrganization(long userId, long organizationId) { 231 _organizationLocalService.addUserOrganization(userId, organizationId); 232 } 233 234 @Override 235 public void addUserOrganizations(long userId, 236 java.util.List<com.liferay.portal.model.Organization> Organizations) { 237 _organizationLocalService.addUserOrganizations(userId, Organizations); 238 } 239 240 @Override 241 public void addUserOrganizations(long userId, long[] organizationIds) { 242 _organizationLocalService.addUserOrganizations(userId, organizationIds); 243 } 244 245 @Override 246 public void clearGroupOrganizations(long groupId) { 247 _organizationLocalService.clearGroupOrganizations(groupId); 248 } 249 250 @Override 251 public void clearUserOrganizations(long userId) { 252 _organizationLocalService.clearUserOrganizations(userId); 253 } 254 255 /** 256 * Creates a new organization with the primary key. Does not add the organization to the database. 257 * 258 * @param organizationId the primary key for the new organization 259 * @return the new organization 260 */ 261 @Override 262 public com.liferay.portal.model.Organization createOrganization( 263 long organizationId) { 264 return _organizationLocalService.createOrganization(organizationId); 265 } 266 267 @Override 268 public void deleteGroupOrganization(long groupId, 269 com.liferay.portal.model.Organization organization) { 270 _organizationLocalService.deleteGroupOrganization(groupId, organization); 271 } 272 273 @Override 274 public void deleteGroupOrganization(long groupId, long organizationId) { 275 _organizationLocalService.deleteGroupOrganization(groupId, 276 organizationId); 277 } 278 279 @Override 280 public void deleteGroupOrganizations(long groupId, 281 java.util.List<com.liferay.portal.model.Organization> Organizations) { 282 _organizationLocalService.deleteGroupOrganizations(groupId, 283 Organizations); 284 } 285 286 @Override 287 public void deleteGroupOrganizations(long groupId, long[] organizationIds) { 288 _organizationLocalService.deleteGroupOrganizations(groupId, 289 organizationIds); 290 } 291 292 /** 293 * Deletes the organization's logo. 294 * 295 * @param organizationId the primary key of the organization 296 * @throws PortalException if an organization or parent organization with 297 the primary key could not be found or if the organization's logo 298 could not be found 299 */ 300 @Override 301 public void deleteLogo(long organizationId) 302 throws com.liferay.portal.kernel.exception.PortalException { 303 _organizationLocalService.deleteLogo(organizationId); 304 } 305 306 /** 307 * Deletes the organization from the database. Also notifies the appropriate model listeners. 308 * 309 * @param organization the organization 310 * @return the organization that was removed 311 * @throws PortalException 312 */ 313 @Override 314 public com.liferay.portal.model.Organization deleteOrganization( 315 com.liferay.portal.model.Organization organization) 316 throws com.liferay.portal.kernel.exception.PortalException { 317 return _organizationLocalService.deleteOrganization(organization); 318 } 319 320 /** 321 * Deletes the organization with the primary key from the database. Also notifies the appropriate model listeners. 322 * 323 * @param organizationId the primary key of the organization 324 * @return the organization that was removed 325 * @throws PortalException if a organization with the primary key could not be found 326 */ 327 @Override 328 public com.liferay.portal.model.Organization deleteOrganization( 329 long organizationId) 330 throws com.liferay.portal.kernel.exception.PortalException { 331 return _organizationLocalService.deleteOrganization(organizationId); 332 } 333 334 /** 335 * @throws PortalException 336 */ 337 @Override 338 public com.liferay.portal.model.PersistedModel deletePersistedModel( 339 com.liferay.portal.model.PersistedModel persistedModel) 340 throws com.liferay.portal.kernel.exception.PortalException { 341 return _organizationLocalService.deletePersistedModel(persistedModel); 342 } 343 344 @Override 345 public void deleteUserOrganization(long userId, 346 com.liferay.portal.model.Organization organization) { 347 _organizationLocalService.deleteUserOrganization(userId, organization); 348 } 349 350 @Override 351 public void deleteUserOrganization(long userId, long organizationId) { 352 _organizationLocalService.deleteUserOrganization(userId, organizationId); 353 } 354 355 @Override 356 public void deleteUserOrganizations(long userId, 357 java.util.List<com.liferay.portal.model.Organization> Organizations) { 358 _organizationLocalService.deleteUserOrganizations(userId, Organizations); 359 } 360 361 @Override 362 public void deleteUserOrganizations(long userId, long[] organizationIds) { 363 _organizationLocalService.deleteUserOrganizations(userId, 364 organizationIds); 365 } 366 367 @Override 368 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 369 return _organizationLocalService.dynamicQuery(); 370 } 371 372 /** 373 * Performs a dynamic query on the database and returns the matching rows. 374 * 375 * @param dynamicQuery the dynamic query 376 * @return the matching rows 377 */ 378 @Override 379 public <T> java.util.List<T> dynamicQuery( 380 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 381 return _organizationLocalService.dynamicQuery(dynamicQuery); 382 } 383 384 /** 385 * Performs a dynamic query on the database and returns a range of the matching rows. 386 * 387 * <p> 388 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 389 * </p> 390 * 391 * @param dynamicQuery the dynamic query 392 * @param start the lower bound of the range of model instances 393 * @param end the upper bound of the range of model instances (not inclusive) 394 * @return the range of matching rows 395 */ 396 @Override 397 public <T> java.util.List<T> dynamicQuery( 398 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 399 int end) { 400 return _organizationLocalService.dynamicQuery(dynamicQuery, start, end); 401 } 402 403 /** 404 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 405 * 406 * <p> 407 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 408 * </p> 409 * 410 * @param dynamicQuery the dynamic query 411 * @param start the lower bound of the range of model instances 412 * @param end the upper bound of the range of model instances (not inclusive) 413 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 414 * @return the ordered range of matching rows 415 */ 416 @Override 417 public <T> java.util.List<T> dynamicQuery( 418 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 419 int end, 420 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 421 return _organizationLocalService.dynamicQuery(dynamicQuery, start, end, 422 orderByComparator); 423 } 424 425 /** 426 * Returns the number of rows matching the dynamic query. 427 * 428 * @param dynamicQuery the dynamic query 429 * @return the number of rows matching the dynamic query 430 */ 431 @Override 432 public long dynamicQueryCount( 433 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 434 return _organizationLocalService.dynamicQueryCount(dynamicQuery); 435 } 436 437 /** 438 * Returns the number of rows matching the dynamic query. 439 * 440 * @param dynamicQuery the dynamic query 441 * @param projection the projection to apply to the query 442 * @return the number of rows matching the dynamic query 443 */ 444 @Override 445 public long dynamicQueryCount( 446 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 447 com.liferay.portal.kernel.dao.orm.Projection projection) { 448 return _organizationLocalService.dynamicQueryCount(dynamicQuery, 449 projection); 450 } 451 452 /** 453 * Returns the organization with the name. 454 * 455 * @param companyId the primary key of the organization's company 456 * @param name the organization's name 457 * @return the organization with the name, or <code>null</code> if no 458 organization could be found 459 */ 460 @Override 461 public com.liferay.portal.model.Organization fetchOrganization( 462 long companyId, java.lang.String name) { 463 return _organizationLocalService.fetchOrganization(companyId, name); 464 } 465 466 @Override 467 public com.liferay.portal.model.Organization fetchOrganization( 468 long organizationId) { 469 return _organizationLocalService.fetchOrganization(organizationId); 470 } 471 472 /** 473 * Returns the organization with the matching UUID and company. 474 * 475 * @param uuid the organization's UUID 476 * @param companyId the primary key of the company 477 * @return the matching organization, or <code>null</code> if a matching organization could not be found 478 */ 479 @Override 480 public com.liferay.portal.model.Organization fetchOrganizationByUuidAndCompanyId( 481 java.lang.String uuid, long companyId) { 482 return _organizationLocalService.fetchOrganizationByUuidAndCompanyId(uuid, 483 companyId); 484 } 485 486 @Override 487 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 488 return _organizationLocalService.getActionableDynamicQuery(); 489 } 490 491 /** 492 * Returns the Spring bean ID for this bean. 493 * 494 * @return the Spring bean ID for this bean 495 */ 496 @Override 497 public java.lang.String getBeanIdentifier() { 498 return _organizationLocalService.getBeanIdentifier(); 499 } 500 501 @Override 502 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 503 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) { 504 return _organizationLocalService.getExportActionableDynamicQuery(portletDataContext); 505 } 506 507 @Override 508 public java.util.List<com.liferay.portal.model.Organization> getGroupOrganizations( 509 long groupId) { 510 return _organizationLocalService.getGroupOrganizations(groupId); 511 } 512 513 @Override 514 public java.util.List<com.liferay.portal.model.Organization> getGroupOrganizations( 515 long groupId, int start, int end) { 516 return _organizationLocalService.getGroupOrganizations(groupId, start, 517 end); 518 } 519 520 @Override 521 public java.util.List<com.liferay.portal.model.Organization> getGroupOrganizations( 522 long groupId, int start, int end, 523 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> orderByComparator) { 524 return _organizationLocalService.getGroupOrganizations(groupId, start, 525 end, orderByComparator); 526 } 527 528 @Override 529 public int getGroupOrganizationsCount(long groupId) { 530 return _organizationLocalService.getGroupOrganizationsCount(groupId); 531 } 532 533 /** 534 * Returns the groupIds of the groups associated with the organization. 535 * 536 * @param organizationId the organizationId of the organization 537 * @return long[] the groupIds of groups associated with the organization 538 */ 539 @Override 540 public long[] getGroupPrimaryKeys(long organizationId) { 541 return _organizationLocalService.getGroupPrimaryKeys(organizationId); 542 } 543 544 @Override 545 public java.util.List<com.liferay.portal.model.Organization> getGroupUserOrganizations( 546 long groupId, long userId) 547 throws com.liferay.portal.kernel.exception.PortalException { 548 return _organizationLocalService.getGroupUserOrganizations(groupId, 549 userId); 550 } 551 552 @Override 553 public java.util.List<com.liferay.portal.model.Organization> getNoAssetOrganizations() { 554 return _organizationLocalService.getNoAssetOrganizations(); 555 } 556 557 /** 558 * Returns the organization with the name. 559 * 560 * @param companyId the primary key of the organization's company 561 * @param name the organization's name 562 * @return the organization with the name 563 * @throws PortalException if the organization with the name could not be 564 found 565 */ 566 @Override 567 public com.liferay.portal.model.Organization getOrganization( 568 long companyId, java.lang.String name) 569 throws com.liferay.portal.kernel.exception.PortalException { 570 return _organizationLocalService.getOrganization(companyId, name); 571 } 572 573 /** 574 * Returns the organization with the primary key. 575 * 576 * @param organizationId the primary key of the organization 577 * @return the organization 578 * @throws PortalException if a organization with the primary key could not be found 579 */ 580 @Override 581 public com.liferay.portal.model.Organization getOrganization( 582 long organizationId) 583 throws com.liferay.portal.kernel.exception.PortalException { 584 return _organizationLocalService.getOrganization(organizationId); 585 } 586 587 /** 588 * Returns the organization with the matching UUID and company. 589 * 590 * @param uuid the organization's UUID 591 * @param companyId the primary key of the company 592 * @return the matching organization 593 * @throws PortalException if a matching organization could not be found 594 */ 595 @Override 596 public com.liferay.portal.model.Organization getOrganizationByUuidAndCompanyId( 597 java.lang.String uuid, long companyId) 598 throws com.liferay.portal.kernel.exception.PortalException { 599 return _organizationLocalService.getOrganizationByUuidAndCompanyId(uuid, 600 companyId); 601 } 602 603 /** 604 * Returns the primary key of the organization with the name. 605 * 606 * @param companyId the primary key of the organization's company 607 * @param name the organization's name 608 * @return the primary key of the organization with the name, or 609 <code>0</code> if the organization could not be found 610 */ 611 @Override 612 public long getOrganizationId(long companyId, java.lang.String name) { 613 return _organizationLocalService.getOrganizationId(companyId, name); 614 } 615 616 /** 617 * Returns all the organizations belonging to the parent organization. 618 * 619 * @param companyId the primary key of the organization's company 620 * @param parentOrganizationId the primary key of the organization's parent 621 organization 622 * @return the organizations belonging to the parent organization 623 */ 624 @Override 625 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 626 long companyId, long parentOrganizationId) { 627 return _organizationLocalService.getOrganizations(companyId, 628 parentOrganizationId); 629 } 630 631 /** 632 * Returns a range of all the organizations belonging to the parent 633 * organization. 634 * 635 * <p> 636 * Useful when paginating results. Returns a maximum of <code>end - 637 * start</code> instances. <code>start</code> and <code>end</code> are not 638 * primary keys, they are indexes in the result set. Thus, <code>0</code> 639 * refers to the first result in the set. Setting both <code>start</code> 640 * and <code>end</code> to {@link 641 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 642 * result set. 643 * </p> 644 * 645 * @param companyId the primary key of the organization's company 646 * @param parentOrganizationId the primary key of the organization's parent 647 organization 648 * @param start the lower bound of the range of organizations to return 649 * @param end the upper bound of the range of organizations to return (not 650 inclusive) 651 * @return the range of organizations belonging to the parent organization 652 * @see com.liferay.portal.service.persistence.OrganizationPersistence#findByC_P( 653 long, long, int, int) 654 */ 655 @Override 656 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 657 long companyId, long parentOrganizationId, int start, int end) { 658 return _organizationLocalService.getOrganizations(companyId, 659 parentOrganizationId, start, end); 660 } 661 662 /** 663 * Returns the organizations with the primary keys. 664 * 665 * @param organizationIds the primary keys of the organizations 666 * @return the organizations with the primary keys 667 * @throws PortalException if any one of the organizations could not be 668 found 669 */ 670 @Override 671 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 672 long[] organizationIds) 673 throws com.liferay.portal.kernel.exception.PortalException { 674 return _organizationLocalService.getOrganizations(organizationIds); 675 } 676 677 /** 678 * Returns a range of all the organizations. 679 * 680 * <p> 681 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 682 * </p> 683 * 684 * @param start the lower bound of the range of organizations 685 * @param end the upper bound of the range of organizations (not inclusive) 686 * @return the range of organizations 687 */ 688 @Override 689 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 690 int start, int end) { 691 return _organizationLocalService.getOrganizations(start, end); 692 } 693 694 @Override 695 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 696 long userId, int start, int end, 697 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc) 698 throws com.liferay.portal.kernel.exception.PortalException { 699 return _organizationLocalService.getOrganizations(userId, start, end, 700 obc); 701 } 702 703 /** 704 * Returns the number of organizations. 705 * 706 * @return the number of organizations 707 */ 708 @Override 709 public int getOrganizationsCount() { 710 return _organizationLocalService.getOrganizationsCount(); 711 } 712 713 /** 714 * Returns the number of organizations belonging to the parent organization. 715 * 716 * @param companyId the primary key of the organization's company 717 * @param parentOrganizationId the primary key of the organization's parent 718 organization 719 * @return the number of organizations belonging to the parent organization 720 */ 721 @Override 722 public int getOrganizationsCount(long companyId, long parentOrganizationId) { 723 return _organizationLocalService.getOrganizationsCount(companyId, 724 parentOrganizationId); 725 } 726 727 /** 728 * Returns the parent organizations in order by closest ancestor. The list 729 * starts with the organization itself. 730 * 731 * @param organizationId the primary key of the organization 732 * @return the parent organizations in order by closest ancestor 733 * @throws PortalException if an organization with the primary key could not 734 be found 735 */ 736 @Override 737 public java.util.List<com.liferay.portal.model.Organization> getParentOrganizations( 738 long organizationId) 739 throws com.liferay.portal.kernel.exception.PortalException { 740 return _organizationLocalService.getParentOrganizations(organizationId); 741 } 742 743 @Override 744 public com.liferay.portal.model.PersistedModel getPersistedModel( 745 java.io.Serializable primaryKeyObj) 746 throws com.liferay.portal.kernel.exception.PortalException { 747 return _organizationLocalService.getPersistedModel(primaryKeyObj); 748 } 749 750 /** 751 * Returns the suborganizations of the organization. 752 * 753 * @param companyId the primary key of the organization's company 754 * @param organizationId the primary key of the organization 755 * @return the suborganizations of the organization 756 */ 757 @Override 758 public java.util.List<com.liferay.portal.model.Organization> getSuborganizations( 759 long companyId, long organizationId) { 760 return _organizationLocalService.getSuborganizations(companyId, 761 organizationId); 762 } 763 764 /** 765 * Returns the suborganizations of the organizations. 766 * 767 * @param organizations the organizations from which to get 768 suborganizations 769 * @return the suborganizations of the organizations 770 */ 771 @Override 772 public java.util.List<com.liferay.portal.model.Organization> getSuborganizations( 773 java.util.List<com.liferay.portal.model.Organization> organizations) { 774 return _organizationLocalService.getSuborganizations(organizations); 775 } 776 777 /** 778 * Returns the count of suborganizations of the organization. 779 * 780 * @param companyId the primary key of the organization's company 781 * @param organizationId the primary key of the organization 782 * @return the count of suborganizations of the organization 783 */ 784 @Override 785 public int getSuborganizationsCount(long companyId, long organizationId) { 786 return _organizationLocalService.getSuborganizationsCount(companyId, 787 organizationId); 788 } 789 790 /** 791 * Returns the intersection of <code>allOrganizations</code> and 792 * <code>availableOrganizations</code>. 793 * 794 * @param allOrganizations the organizations to check for availability 795 * @param availableOrganizations the available organizations 796 * @return the intersection of <code>allOrganizations</code> and 797 <code>availableOrganizations</code> 798 */ 799 @Override 800 public java.util.List<com.liferay.portal.model.Organization> getSubsetOrganizations( 801 java.util.List<com.liferay.portal.model.Organization> allOrganizations, 802 java.util.List<com.liferay.portal.model.Organization> availableOrganizations) { 803 return _organizationLocalService.getSubsetOrganizations(allOrganizations, 804 availableOrganizations); 805 } 806 807 /** 808 * Returns all the IDs of organizations with which the user is explicitly 809 * associated, optionally including the IDs of organizations that the user 810 * administers or owns. 811 * 812 * <p> 813 * A user is considered to be <i>explicitly</i> associated with an 814 * organization if his account is individually created within the 815 * organization or if the user is later added to it. 816 * </p> 817 * 818 * @param userId the primary key of the user 819 * @param includeAdministrative whether to include the IDs of organizations 820 that the user administers or owns, even if he's not a member of 821 the organizations 822 * @return the IDs of organizations with which the user is explicitly 823 associated, optionally including the IDs of organizations that 824 the user administers or owns 825 * @throws PortalException if a user with the primary key could not be found 826 or if a portal exception occurred 827 */ 828 @Override 829 public long[] getUserOrganizationIds(long userId, 830 boolean includeAdministrative) 831 throws com.liferay.portal.kernel.exception.PortalException { 832 return _organizationLocalService.getUserOrganizationIds(userId, 833 includeAdministrative); 834 } 835 836 @Override 837 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 838 long userId) { 839 return _organizationLocalService.getUserOrganizations(userId); 840 } 841 842 /** 843 * Returns all the organizations with which the user is explicitly 844 * associated, optionally including the organizations that the user 845 * administers or owns. 846 * 847 * <p> 848 * A user is considered to be <i>explicitly</i> associated with an 849 * organization if his account is individually created within the 850 * organization or if the user is later added as a member. 851 * </p> 852 * 853 * @param userId the primary key of the user 854 * @param includeAdministrative whether to include the IDs of organizations 855 that the user administers or owns, even if he's not a member of 856 the organizations 857 * @return the organizations with which the user is explicitly associated, 858 optionally including the organizations that the user administers 859 or owns 860 * @throws PortalException if a user with the primary key could not be found 861 */ 862 @Override 863 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 864 long userId, boolean includeAdministrative) 865 throws com.liferay.portal.kernel.exception.PortalException { 866 return _organizationLocalService.getUserOrganizations(userId, 867 includeAdministrative); 868 } 869 870 @Override 871 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 872 long userId, int start, int end) { 873 return _organizationLocalService.getUserOrganizations(userId, start, end); 874 } 875 876 @Override 877 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations( 878 long userId, int start, int end, 879 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> orderByComparator) { 880 return _organizationLocalService.getUserOrganizations(userId, start, 881 end, orderByComparator); 882 } 883 884 @Override 885 public int getUserOrganizationsCount(long userId) { 886 return _organizationLocalService.getUserOrganizationsCount(userId); 887 } 888 889 /** 890 * Returns the userIds of the users associated with the organization. 891 * 892 * @param organizationId the organizationId of the organization 893 * @return long[] the userIds of users associated with the organization 894 */ 895 @Override 896 public long[] getUserPrimaryKeys(long organizationId) { 897 return _organizationLocalService.getUserPrimaryKeys(organizationId); 898 } 899 900 @Override 901 public boolean hasGroupOrganization(long groupId, long organizationId) { 902 return _organizationLocalService.hasGroupOrganization(groupId, 903 organizationId); 904 } 905 906 @Override 907 public boolean hasGroupOrganizations(long groupId) { 908 return _organizationLocalService.hasGroupOrganizations(groupId); 909 } 910 911 /** 912 * Returns <code>true</code> if the password policy has been assigned to the 913 * organization. 914 * 915 * @param passwordPolicyId the primary key of the password policy 916 * @param organizationId the primary key of the organization 917 * @return <code>true</code> if the password policy has been assigned to the 918 organization; <code>false</code> otherwise 919 */ 920 @Override 921 public boolean hasPasswordPolicyOrganization(long passwordPolicyId, 922 long organizationId) { 923 return _organizationLocalService.hasPasswordPolicyOrganization(passwordPolicyId, 924 organizationId); 925 } 926 927 @Override 928 public boolean hasUserOrganization(long userId, long organizationId) { 929 return _organizationLocalService.hasUserOrganization(userId, 930 organizationId); 931 } 932 933 /** 934 * Returns <code>true</code> if the user is a member of the organization, 935 * optionally focusing on suborganizations or the specified organization. 936 * This method is usually called to determine if the user has view access to 937 * a resource belonging to the organization. 938 * 939 * <ol> 940 * <li> 941 * If <code>inheritSuborganizations=<code>false</code></code>: 942 * the method checks whether the user belongs to the organization specified 943 * by <code>organizationId</code>. The parameter 944 * <code>includeSpecifiedOrganization</code> is ignored. 945 * </li> 946 * <li> 947 * The parameter <code>includeSpecifiedOrganization</code> is 948 * ignored unless <code>inheritSuborganizations</code> is also 949 * <code>true</code>. 950 * </li> 951 * <li> 952 * If <code>inheritSuborganizations=<code>true</code></code> and 953 * <code>includeSpecifiedOrganization=<code>false</code></code>: the method 954 * checks 955 * whether the user belongs to one of the child organizations of the one 956 * specified by <code>organizationId</code>. 957 * </li> 958 * <li> 959 * If <code>inheritSuborganizations=<code>true</code></code> and 960 * <code>includeSpecifiedOrganization=<code>true</code></code>: the method 961 * checks whether 962 * the user belongs to the organization specified by 963 * <code>organizationId</code> or any of 964 * its child organizations. 965 * </li> 966 * </ol> 967 * 968 * @param userId the primary key of the organization's user 969 * @param organizationId the primary key of the organization 970 * @param inheritSuborganizations if <code>true</code> suborganizations are 971 considered in the determination 972 * @param includeSpecifiedOrganization if <code>true</code> the 973 organization specified by <code>organizationId</code> is 974 considered in the determination 975 * @return <code>true</code> if the user has access to the organization; 976 <code>false</code> otherwise 977 * @throws PortalException if an organization with the primary key could not 978 be found 979 * @see com.liferay.portal.service.persistence.OrganizationFinder 980 */ 981 @Override 982 public boolean hasUserOrganization(long userId, long organizationId, 983 boolean inheritSuborganizations, boolean includeSpecifiedOrganization) 984 throws com.liferay.portal.kernel.exception.PortalException { 985 return _organizationLocalService.hasUserOrganization(userId, 986 organizationId, inheritSuborganizations, 987 includeSpecifiedOrganization); 988 } 989 990 @Override 991 public boolean hasUserOrganizations(long userId) { 992 return _organizationLocalService.hasUserOrganizations(userId); 993 } 994 995 /** 996 * Rebuilds the organization's tree. 997 * 998 * <p> 999 * Only call this method if the tree has become stale through operations 1000 * other than normal CRUD. Under normal circumstances the tree is 1001 * automatically rebuilt whenever necessary. 1002 * </p> 1003 * 1004 * @param companyId the primary key of the organization's company 1005 * @throws PortalException if an organization with the primary key could not 1006 be found 1007 */ 1008 @Override 1009 public void rebuildTree(long companyId) 1010 throws com.liferay.portal.kernel.exception.PortalException { 1011 _organizationLocalService.rebuildTree(companyId); 1012 } 1013 1014 /** 1015 * Returns an ordered range of all the organizations that match the 1016 * keywords, using the indexer. It is preferable to use this method instead 1017 * of the non-indexed version whenever possible for performance reasons. 1018 * 1019 * <p> 1020 * Useful when paginating results. Returns a maximum of <code>end - 1021 * start</code> instances. <code>start</code> and <code>end</code> are not 1022 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1023 * refers to the first result in the set. Setting both <code>start</code> 1024 * and <code>end</code> to {@link 1025 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1026 * result set. 1027 * </p> 1028 * 1029 * @param companyId the primary key of the organization's company 1030 * @param parentOrganizationId the primary key of the organization's parent 1031 organization 1032 * @param keywords the keywords (space separated), which may occur in the 1033 organization's name, street, city, zipcode, type, region or 1034 country (optionally <code>null</code>) 1035 * @param params the finder parameters (optionally <code>null</code>). For 1036 more information see {@link 1037 com.liferay.portlet.usersadmin.util.OrganizationIndexer} 1038 * @param start the lower bound of the range of organizations to return 1039 * @param end the upper bound of the range of organizations to return (not 1040 inclusive) 1041 * @param sort the field and direction by which to sort (optionally 1042 <code>null</code>) 1043 * @return the matching organizations ordered by name 1044 * @see com.liferay.portlet.usersadmin.util.OrganizationIndexer 1045 */ 1046 @Override 1047 public com.liferay.portal.kernel.search.Hits search(long companyId, 1048 long parentOrganizationId, java.lang.String keywords, 1049 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1050 int start, int end, com.liferay.portal.kernel.search.Sort sort) { 1051 return _organizationLocalService.search(companyId, 1052 parentOrganizationId, keywords, params, start, end, sort); 1053 } 1054 1055 /** 1056 * Returns a name ordered range of all the organizations that match the 1057 * keywords, type, region, and country, without using the indexer. It is 1058 * preferable to use the indexed version {@link #search(long, long, String, 1059 * LinkedHashMap, int, int, Sort)} instead of this method wherever possible 1060 * for performance reasons. 1061 * 1062 * <p> 1063 * Useful when paginating results. Returns a maximum of <code>end - 1064 * start</code> instances. <code>start</code> and <code>end</code> are not 1065 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1066 * refers to the first result in the set. Setting both <code>start</code> 1067 * and <code>end</code> to {@link 1068 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1069 * result set. 1070 * </p> 1071 * 1072 * @param companyId the primary key of the organization's company 1073 * @param parentOrganizationId the primary key of the organization's parent 1074 organization 1075 * @param keywords the keywords (space separated), which may occur in the 1076 organization's name, street, city, or zipcode (optionally 1077 <code>null</code>) 1078 * @param type the organization's type (optionally <code>null</code>) 1079 * @param regionId the primary key of the organization's region (optionally 1080 <code>null</code>) 1081 * @param countryId the primary key of the organization's country 1082 (optionally <code>null</code>) 1083 * @param params the finder params. For more information see {@link 1084 com.liferay.portal.service.persistence.OrganizationFinder} 1085 * @param start the lower bound of the range of organizations to return 1086 * @param end the upper bound of the range of organizations to return (not 1087 inclusive) 1088 * @return the matching organizations ordered by name 1089 * @see com.liferay.portal.service.persistence.OrganizationFinder 1090 */ 1091 @Override 1092 public java.util.List<com.liferay.portal.model.Organization> search( 1093 long companyId, long parentOrganizationId, java.lang.String keywords, 1094 java.lang.String type, java.lang.Long regionId, 1095 java.lang.Long countryId, 1096 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1097 int start, int end) { 1098 return _organizationLocalService.search(companyId, 1099 parentOrganizationId, keywords, type, regionId, countryId, params, 1100 start, end); 1101 } 1102 1103 /** 1104 * Returns an ordered range of all the organizations that match the 1105 * keywords, type, region, and country, without using the indexer. It is 1106 * preferable to use the indexed version {@link #search(long, long, String, 1107 * String, String, String, String, String, String, LinkedHashMap, boolean, 1108 * int, int, Sort)} instead of this method wherever possible for performance 1109 * reasons. 1110 * 1111 * <p> 1112 * Useful when paginating results. Returns a maximum of <code>end - 1113 * start</code> instances. <code>start</code> and <code>end</code> are not 1114 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1115 * refers to the first result in the set. Setting both <code>start</code> 1116 * and <code>end</code> to {@link 1117 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1118 * result set. 1119 * </p> 1120 * 1121 * @param companyId the primary key of the organization's company 1122 * @param parentOrganizationId the primary key of the organization's parent 1123 organization 1124 * @param keywords the keywords (space separated), which may occur in the 1125 organization's name, street, city, or zipcode (optionally 1126 <code>null</code>) 1127 * @param type the organization's type (optionally <code>null</code>) 1128 * @param regionId the primary key of the organization's region (optionally 1129 <code>null</code>) 1130 * @param countryId the primary key of the organization's country 1131 (optionally <code>null</code>) 1132 * @param params the finder params. For more information see {@link 1133 com.liferay.portal.service.persistence.OrganizationFinder} 1134 * @param start the lower bound of the range of organizations to return 1135 * @param end the upper bound of the range of organizations to return (not 1136 inclusive) 1137 * @param obc the comparator to order the organizations (optionally 1138 <code>null</code>) 1139 * @return the matching organizations ordered by comparator <code>obc</code> 1140 * @see com.liferay.portal.service.persistence.OrganizationFinder 1141 */ 1142 @Override 1143 public java.util.List<com.liferay.portal.model.Organization> search( 1144 long companyId, long parentOrganizationId, java.lang.String keywords, 1145 java.lang.String type, java.lang.Long regionId, 1146 java.lang.Long countryId, 1147 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1148 int start, int end, 1149 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc) { 1150 return _organizationLocalService.search(companyId, 1151 parentOrganizationId, keywords, type, regionId, countryId, params, 1152 start, end, obc); 1153 } 1154 1155 /** 1156 * Returns an ordered range of all the organizations whose name, type, or 1157 * location fields match the keywords specified for them, using the indexer. 1158 * It is preferable to use this method instead of the non-indexed version 1159 * whenever possible for performance reasons. 1160 * 1161 * <p> 1162 * Useful when paginating results. Returns a maximum of <code>end - 1163 * start</code> instances. <code>start</code> and <code>end</code> are not 1164 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1165 * refers to the first result in the set. Setting both <code>start</code> 1166 * and <code>end</code> to {@link 1167 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1168 * result set. 1169 * </p> 1170 * 1171 * @param companyId the primary key of the organization's company 1172 * @param parentOrganizationId the primary key of the organization's parent 1173 organization 1174 * @param name the name keywords (space separated, optionally 1175 <code>null</code>) 1176 * @param type the type keywords (optionally <code>null</code>) 1177 * @param street the street keywords (optionally <code>null</code>) 1178 * @param city the city keywords (optionally <code>null</code>) 1179 * @param zip the zipcode keywords (optionally <code>null</code>) 1180 * @param region the region keywords (optionally <code>null</code>) 1181 * @param country the country keywords (optionally <code>null</code>) 1182 * @param params the finder parameters (optionally <code>null</code>). For 1183 more information see {@link 1184 com.liferay.portlet.usersadmin.util.OrganizationIndexer}. 1185 * @param andSearch whether every field must match its keywords or just one 1186 field 1187 * @param start the lower bound of the range of organizations to return 1188 * @param end the upper bound of the range of organizations to return (not 1189 inclusive) 1190 * @param sort the field and direction by which to sort (optionally 1191 <code>null</code>) 1192 * @return the matching organizations ordered by <code>sort</code> 1193 * @see com.liferay.portlet.usersadmin.util.OrganizationIndexer 1194 */ 1195 @Override 1196 public com.liferay.portal.kernel.search.Hits search(long companyId, 1197 long parentOrganizationId, java.lang.String name, 1198 java.lang.String type, java.lang.String street, java.lang.String city, 1199 java.lang.String zip, java.lang.String region, 1200 java.lang.String country, 1201 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1202 boolean andSearch, int start, int end, 1203 com.liferay.portal.kernel.search.Sort sort) { 1204 return _organizationLocalService.search(companyId, 1205 parentOrganizationId, name, type, street, city, zip, region, 1206 country, params, andSearch, start, end, sort); 1207 } 1208 1209 /** 1210 * Returns a name ordered range of all the organizations with the type, 1211 * region, and country, and whose name, street, city, and zipcode match the 1212 * keywords specified for them, without using the indexer. It is preferable 1213 * to use the indexed version {@link #search(long, long, String, String, 1214 * String, String, String, String, String, LinkedHashMap, boolean, int, int, 1215 * Sort)} instead of this method wherever possible for performance reasons. 1216 * 1217 * <p> 1218 * Useful when paginating results. Returns a maximum of <code>end - 1219 * start</code> instances. <code>start</code> and <code>end</code> are not 1220 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1221 * refers to the first result in the set. Setting both <code>start</code> 1222 * and <code>end</code> to {@link 1223 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1224 * result set. 1225 * </p> 1226 * 1227 * @param companyId the primary key of the organization's company 1228 * @param parentOrganizationId the primary key of the organization's parent 1229 * @param name the name keywords (space separated, optionally 1230 <code>null</code>) 1231 * @param type the organization's type (optionally <code>null</code>) 1232 * @param street the street keywords (optionally <code>null</code>) 1233 * @param city the city keywords (optionally <code>null</code>) 1234 * @param zip the zipcode keywords (optionally <code>null</code>) 1235 * @param regionId the primary key of the organization's region (optionally 1236 <code>null</code>) 1237 * @param countryId the primary key of the organization's country 1238 (optionally <code>null</code>) 1239 * @param params the finder parameters (optionally <code>null</code>). For 1240 more information see {@link 1241 com.liferay.portal.service.persistence.OrganizationFinder} 1242 * @param andOperator whether every field must match its keywords, or just 1243 one field. For example, "organizations with the name 1244 'Employees' and city 'Chicago'" vs "organizations with 1245 the name 'Employees' or the city 'Chicago'". 1246 * @param start the lower bound of the range of organizations to return 1247 * @param end the upper bound of the range of organizations to return (not 1248 inclusive) 1249 * @return the matching organizations ordered by name 1250 * @see com.liferay.portal.service.persistence.OrganizationFinder 1251 */ 1252 @Override 1253 public java.util.List<com.liferay.portal.model.Organization> search( 1254 long companyId, long parentOrganizationId, java.lang.String name, 1255 java.lang.String type, java.lang.String street, java.lang.String city, 1256 java.lang.String zip, java.lang.Long regionId, 1257 java.lang.Long countryId, 1258 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1259 boolean andOperator, int start, int end) { 1260 return _organizationLocalService.search(companyId, 1261 parentOrganizationId, name, type, street, city, zip, regionId, 1262 countryId, params, andOperator, start, end); 1263 } 1264 1265 /** 1266 * Returns an ordered range of all the organizations with the type, region, 1267 * and country, and whose name, street, city, and zipcode match the keywords 1268 * specified for them, without using the indexer. It is preferable to use 1269 * the indexed version {@link #search(long, long, String, String, String, 1270 * String, String, String, String, LinkedHashMap, boolean, int, int, Sort)} 1271 * instead of this method wherever possible for performance reasons. 1272 * 1273 * <p> 1274 * Useful when paginating results. Returns a maximum of <code>end - 1275 * start</code> instances. <code>start</code> and <code>end</code> are not 1276 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1277 * refers to the first result in the set. Setting both <code>start</code> 1278 * and <code>end</code> to {@link 1279 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1280 * result set. 1281 * </p> 1282 * 1283 * @param companyId the primary key of the organization's company 1284 * @param parentOrganizationId the primary key of the organization's parent 1285 organization 1286 * @param name the name keywords (space separated, optionally 1287 <code>null</code>) 1288 * @param type the organization's type (optionally <code>null</code>) 1289 * @param street the street keywords (optionally <code>null</code>) 1290 * @param city the city keywords (optionally <code>null</code>) 1291 * @param zip the zipcode keywords (optionally <code>null</code>) 1292 * @param regionId the primary key of the organization's region (optionally 1293 <code>null</code>) 1294 * @param countryId the primary key of the organization's country 1295 (optionally <code>null</code>) 1296 * @param params the finder parameters (optionally <code>null</code>). For 1297 more information see {@link 1298 com.liferay.portal.service.persistence.OrganizationFinder} 1299 * @param andOperator whether every field must match its keywords, or just 1300 one field. For example, "organizations with the name 1301 'Employees' and city 'Chicago'" vs "organizations with 1302 the name 'Employees' or the city 'Chicago'". 1303 * @param start the lower bound of the range of organizations to return 1304 * @param end the upper bound of the range of organizations to return (not 1305 inclusive) 1306 * @param obc the comparator to order the organizations (optionally 1307 <code>null</code>) 1308 * @return the matching organizations ordered by comparator <code>obc</code> 1309 * @see com.liferay.portal.service.persistence.OrganizationFinder 1310 */ 1311 @Override 1312 public java.util.List<com.liferay.portal.model.Organization> search( 1313 long companyId, long parentOrganizationId, java.lang.String name, 1314 java.lang.String type, java.lang.String street, java.lang.String city, 1315 java.lang.String zip, java.lang.Long regionId, 1316 java.lang.Long countryId, 1317 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1318 boolean andOperator, int start, int end, 1319 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc) { 1320 return _organizationLocalService.search(companyId, 1321 parentOrganizationId, name, type, street, city, zip, regionId, 1322 countryId, params, andOperator, start, end, obc); 1323 } 1324 1325 /** 1326 * Returns the number of organizations that match the keywords, type, 1327 * region, and country. 1328 * 1329 * @param companyId the primary key of the organization's company 1330 * @param parentOrganizationId the primary key of the organization's parent 1331 organization 1332 * @param keywords the keywords (space separated), which may occur in the 1333 organization's name, street, city, or zipcode (optionally 1334 <code>null</code>) 1335 * @param type the organization's type (optionally <code>null</code>) 1336 * @param regionId the primary key of the organization's region (optionally 1337 <code>null</code>) 1338 * @param countryId the primary key of the organization's country 1339 (optionally <code>null</code>) 1340 * @param params the finder parameters (optionally <code>null</code>). For 1341 more information see {@link 1342 com.liferay.portal.service.persistence.OrganizationFinder} 1343 * @return the number of matching organizations 1344 * @see com.liferay.portal.service.persistence.OrganizationFinder 1345 */ 1346 @Override 1347 public int searchCount(long companyId, long parentOrganizationId, 1348 java.lang.String keywords, java.lang.String type, 1349 java.lang.Long regionId, java.lang.Long countryId, 1350 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) { 1351 return _organizationLocalService.searchCount(companyId, 1352 parentOrganizationId, keywords, type, regionId, countryId, params); 1353 } 1354 1355 /** 1356 * Returns the number of organizations with the type, region, and country, 1357 * and whose name, street, city, and zipcode match the keywords specified 1358 * for them. 1359 * 1360 * @param companyId the primary key of the organization's company 1361 * @param parentOrganizationId the primary key of the organization's parent 1362 organization 1363 * @param name the name keywords (space separated, optionally 1364 <code>null</code>) 1365 * @param type the organization's type (optionally <code>null</code>) 1366 * @param street the street keywords (optionally <code>null</code>) 1367 * @param city the city keywords (optionally <code>null</code>) 1368 * @param zip the zipcode keywords (optionally <code>null</code>) 1369 * @param regionId the primary key of the organization's region (optionally 1370 <code>null</code>) 1371 * @param countryId the primary key of the organization's country 1372 (optionally <code>null</code>) 1373 * @param params the finder parameters (optionally <code>null</code>). For 1374 more information see {@link 1375 com.liferay.portal.service.persistence.OrganizationFinder} 1376 * @param andOperator whether every field must match its keywords, or just 1377 one field. For example, "organizations with the name 1378 'Employees' and city 'Chicago'" vs "organizations with 1379 the name 'Employees' or the city 'Chicago'". 1380 * @return the number of matching organizations 1381 * @see com.liferay.portal.service.persistence.OrganizationFinder 1382 */ 1383 @Override 1384 public int searchCount(long companyId, long parentOrganizationId, 1385 java.lang.String name, java.lang.String type, java.lang.String street, 1386 java.lang.String city, java.lang.String zip, java.lang.Long regionId, 1387 java.lang.Long countryId, 1388 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1389 boolean andOperator) { 1390 return _organizationLocalService.searchCount(companyId, 1391 parentOrganizationId, name, type, street, city, zip, regionId, 1392 countryId, params, andOperator); 1393 } 1394 1395 @Override 1396 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.model.Organization> searchOrganizations( 1397 long companyId, long parentOrganizationId, java.lang.String keywords, 1398 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1399 int start, int end, com.liferay.portal.kernel.search.Sort sort) 1400 throws com.liferay.portal.kernel.exception.PortalException { 1401 return _organizationLocalService.searchOrganizations(companyId, 1402 parentOrganizationId, keywords, params, start, end, sort); 1403 } 1404 1405 @Override 1406 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.model.Organization> searchOrganizations( 1407 long companyId, long parentOrganizationId, java.lang.String name, 1408 java.lang.String type, java.lang.String street, java.lang.String city, 1409 java.lang.String zip, java.lang.String region, 1410 java.lang.String country, 1411 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1412 boolean andSearch, int start, int end, 1413 com.liferay.portal.kernel.search.Sort sort) 1414 throws com.liferay.portal.kernel.exception.PortalException { 1415 return _organizationLocalService.searchOrganizations(companyId, 1416 parentOrganizationId, name, type, street, city, zip, region, 1417 country, params, andSearch, start, end, sort); 1418 } 1419 1420 /** 1421 * Sets the Spring bean ID for this bean. 1422 * 1423 * @param beanIdentifier the Spring bean ID for this bean 1424 */ 1425 @Override 1426 public void setBeanIdentifier(java.lang.String beanIdentifier) { 1427 _organizationLocalService.setBeanIdentifier(beanIdentifier); 1428 } 1429 1430 /** 1431 * @throws PortalException 1432 */ 1433 @Override 1434 public void setGroupOrganizations(long groupId, long[] organizationIds) 1435 throws com.liferay.portal.kernel.exception.PortalException { 1436 _organizationLocalService.setGroupOrganizations(groupId, organizationIds); 1437 } 1438 1439 @Override 1440 public void setUserOrganizations(long userId, long[] organizationIds) { 1441 _organizationLocalService.setUserOrganizations(userId, organizationIds); 1442 } 1443 1444 /** 1445 * Removes the organizations from the group. 1446 * 1447 * @param groupId the primary key of the group 1448 * @param organizationIds the primary keys of the organizations 1449 * @throws PortalException if a portal exception occurred 1450 */ 1451 @Override 1452 public void unsetGroupOrganizations(long groupId, long[] organizationIds) 1453 throws com.liferay.portal.kernel.exception.PortalException { 1454 _organizationLocalService.unsetGroupOrganizations(groupId, 1455 organizationIds); 1456 } 1457 1458 /** 1459 * Removes the organizations from the password policy. 1460 * 1461 * @param passwordPolicyId the primary key of the password policy 1462 * @param organizationIds the primary keys of the organizations 1463 */ 1464 @Override 1465 public void unsetPasswordPolicyOrganizations(long passwordPolicyId, 1466 long[] organizationIds) { 1467 _organizationLocalService.unsetPasswordPolicyOrganizations(passwordPolicyId, 1468 organizationIds); 1469 } 1470 1471 /** 1472 * Updates the organization's asset with the new asset categories and tag 1473 * names, removing and adding asset categories and tag names as necessary. 1474 * 1475 * @param userId the primary key of the user 1476 * @param organization the organization 1477 * @param assetCategoryIds the primary keys of the asset categories 1478 * @param assetTagNames the asset tag names 1479 * @throws PortalException if a user with the primary key could not be found 1480 */ 1481 @Override 1482 public void updateAsset(long userId, 1483 com.liferay.portal.model.Organization organization, 1484 long[] assetCategoryIds, java.lang.String[] assetTagNames) 1485 throws com.liferay.portal.kernel.exception.PortalException { 1486 _organizationLocalService.updateAsset(userId, organization, 1487 assetCategoryIds, assetTagNames); 1488 } 1489 1490 /** 1491 * Updates the organization. 1492 * 1493 * @param companyId the primary key of the organization's company 1494 * @param organizationId the primary key of the organization 1495 * @param parentOrganizationId the primary key of organization's parent 1496 organization 1497 * @param name the organization's name 1498 * @param type the organization's type 1499 * @param recursable whether permissions of the organization are to be 1500 inherited by its suborganizations 1501 * @param regionId the primary key of the organization's region 1502 * @param countryId the primary key of the organization's country 1503 * @param statusId the organization's workflow status 1504 * @param comments the comments about the organization 1505 * @param site whether the organization is to be associated with a main 1506 site 1507 * @param serviceContext the service context to be applied (optionally 1508 <code>null</code>). Can set asset category IDs and asset tag 1509 names for the organization, and merge expando bridge 1510 attributes for the organization. 1511 * @return the organization 1512 * @throws PortalException if an organization or parent organization 1513 with the primary key could not be found or if the new 1514 information was invalid 1515 * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long, 1516 long, long, String, String, long, long, int, String, boolean, 1517 byte[], boolean, ServiceContext)} 1518 */ 1519 @Deprecated 1520 @Override 1521 public com.liferay.portal.model.Organization updateOrganization( 1522 long companyId, long organizationId, long parentOrganizationId, 1523 java.lang.String name, java.lang.String type, boolean recursable, 1524 long regionId, long countryId, long statusId, 1525 java.lang.String comments, boolean site, 1526 com.liferay.portal.service.ServiceContext serviceContext) 1527 throws com.liferay.portal.kernel.exception.PortalException { 1528 return _organizationLocalService.updateOrganization(companyId, 1529 organizationId, parentOrganizationId, name, type, recursable, 1530 regionId, countryId, statusId, comments, site, serviceContext); 1531 } 1532 1533 /** 1534 * Updates the organization. 1535 * 1536 * @param companyId the primary key of the organization's company 1537 * @param organizationId the primary key of the organization 1538 * @param parentOrganizationId the primary key of organization's parent 1539 organization 1540 * @param name the organization's name 1541 * @param type the organization's type 1542 * @param regionId the primary key of the organization's region 1543 * @param countryId the primary key of the organization's country 1544 * @param statusId the organization's workflow status 1545 * @param comments the comments about the organization 1546 * @param logo whether to update the ogranization's logo 1547 * @param logoBytes the new logo image data 1548 * @param site whether the organization is to be associated with a main 1549 site 1550 * @param serviceContext the service context to be applied (optionally 1551 <code>null</code>). Can set asset category IDs and asset tag 1552 names for the organization, and merge expando bridge attributes 1553 for the organization. 1554 * @return the organization 1555 * @throws PortalException if an organization or parent organization with 1556 the primary key could not be found or if the new information was 1557 invalid 1558 */ 1559 @Override 1560 public com.liferay.portal.model.Organization updateOrganization( 1561 long companyId, long organizationId, long parentOrganizationId, 1562 java.lang.String name, java.lang.String type, long regionId, 1563 long countryId, long statusId, java.lang.String comments, boolean logo, 1564 byte[] logoBytes, boolean site, 1565 com.liferay.portal.service.ServiceContext serviceContext) 1566 throws com.liferay.portal.kernel.exception.PortalException { 1567 return _organizationLocalService.updateOrganization(companyId, 1568 organizationId, parentOrganizationId, name, type, regionId, 1569 countryId, statusId, comments, logo, logoBytes, site, serviceContext); 1570 } 1571 1572 /** 1573 * Updates the organization. 1574 * 1575 * @param companyId the primary key of the organization's company 1576 * @param organizationId the primary key of the organization 1577 * @param parentOrganizationId the primary key of organization's parent 1578 organization 1579 * @param name the organization's name 1580 * @param type the organization's type 1581 * @param regionId the primary key of the organization's region 1582 * @param countryId the primary key of the organization's country 1583 * @param statusId the organization's workflow status 1584 * @param comments the comments about the organization 1585 * @param site whether the organization is to be associated with a main 1586 site 1587 * @param serviceContext the service context to be applied (optionally 1588 <code>null</code>). Can set asset category IDs and asset tag 1589 names for the organization, and merge expando bridge 1590 attributes for the organization. 1591 * @return the organization 1592 * @throws PortalException if an organization or parent organization 1593 with the primary key could not be found or if the new 1594 information was invalid 1595 * @deprecated As of 7.0.0, replaced by {@link #updateOrganization(long, 1596 long, long, String, String, long, long, int, String, boolean, 1597 byte[], boolean, ServiceContext)} 1598 */ 1599 @Deprecated 1600 @Override 1601 public com.liferay.portal.model.Organization updateOrganization( 1602 long companyId, long organizationId, long parentOrganizationId, 1603 java.lang.String name, java.lang.String type, long regionId, 1604 long countryId, long statusId, java.lang.String comments, boolean site, 1605 com.liferay.portal.service.ServiceContext serviceContext) 1606 throws com.liferay.portal.kernel.exception.PortalException { 1607 return _organizationLocalService.updateOrganization(companyId, 1608 organizationId, parentOrganizationId, name, type, regionId, 1609 countryId, statusId, comments, site, serviceContext); 1610 } 1611 1612 /** 1613 * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 1614 * 1615 * @param organization the organization 1616 * @return the organization that was updated 1617 */ 1618 @Override 1619 public com.liferay.portal.model.Organization updateOrganization( 1620 com.liferay.portal.model.Organization organization) { 1621 return _organizationLocalService.updateOrganization(organization); 1622 } 1623 1624 /** 1625 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 1626 */ 1627 @Deprecated 1628 public OrganizationLocalService getWrappedOrganizationLocalService() { 1629 return _organizationLocalService; 1630 } 1631 1632 /** 1633 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 1634 */ 1635 @Deprecated 1636 public void setWrappedOrganizationLocalService( 1637 OrganizationLocalService organizationLocalService) { 1638 _organizationLocalService = organizationLocalService; 1639 } 1640 1641 @Override 1642 public OrganizationLocalService getWrappedService() { 1643 return _organizationLocalService; 1644 } 1645 1646 @Override 1647 public void setWrappedService( 1648 OrganizationLocalService organizationLocalService) { 1649 _organizationLocalService = organizationLocalService; 1650 } 1651 1652 private OrganizationLocalService _organizationLocalService; 1653 }