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