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