001 /** 002 * Copyright (c) 2000-2013 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 GroupLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see GroupLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class GroupLocalServiceWrapper implements GroupLocalService, 028 ServiceWrapper<GroupLocalService> { 029 public GroupLocalServiceWrapper(GroupLocalService groupLocalService) { 030 _groupLocalService = groupLocalService; 031 } 032 033 /** 034 * Adds the group to the database. Also notifies the appropriate model listeners. 035 * 036 * @param group the group 037 * @return the group that was added 038 * @throws SystemException if a system exception occurred 039 */ 040 @Override 041 public com.liferay.portal.model.Group addGroup( 042 com.liferay.portal.model.Group group) 043 throws com.liferay.portal.kernel.exception.SystemException { 044 return _groupLocalService.addGroup(group); 045 } 046 047 /** 048 * Creates a new group with the primary key. Does not add the group to the database. 049 * 050 * @param groupId the primary key for the new group 051 * @return the new group 052 */ 053 @Override 054 public com.liferay.portal.model.Group createGroup(long groupId) { 055 return _groupLocalService.createGroup(groupId); 056 } 057 058 /** 059 * Deletes the group with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param groupId the primary key of the group 062 * @return the group that was removed 063 * @throws PortalException if a group with the primary key could not be found 064 * @throws SystemException if a system exception occurred 065 */ 066 @Override 067 public com.liferay.portal.model.Group deleteGroup(long groupId) 068 throws com.liferay.portal.kernel.exception.PortalException, 069 com.liferay.portal.kernel.exception.SystemException { 070 return _groupLocalService.deleteGroup(groupId); 071 } 072 073 /** 074 * Deletes the group from the database. Also notifies the appropriate model listeners. 075 * 076 * @param group the group 077 * @return the group that was removed 078 * @throws PortalException 079 * @throws SystemException if a system exception occurred 080 */ 081 @Override 082 public com.liferay.portal.model.Group deleteGroup( 083 com.liferay.portal.model.Group group) 084 throws com.liferay.portal.kernel.exception.PortalException, 085 com.liferay.portal.kernel.exception.SystemException { 086 return _groupLocalService.deleteGroup(group); 087 } 088 089 @Override 090 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 091 return _groupLocalService.dynamicQuery(); 092 } 093 094 /** 095 * Performs a dynamic query on the database and returns the matching rows. 096 * 097 * @param dynamicQuery the dynamic query 098 * @return the matching rows 099 * @throws SystemException if a system exception occurred 100 */ 101 @Override 102 @SuppressWarnings("rawtypes") 103 public java.util.List dynamicQuery( 104 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 105 throws com.liferay.portal.kernel.exception.SystemException { 106 return _groupLocalService.dynamicQuery(dynamicQuery); 107 } 108 109 /** 110 * Performs a dynamic query on the database and returns a range of the matching rows. 111 * 112 * <p> 113 * 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.GroupModelImpl}. 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. 114 * </p> 115 * 116 * @param dynamicQuery the dynamic query 117 * @param start the lower bound of the range of model instances 118 * @param end the upper bound of the range of model instances (not inclusive) 119 * @return the range of matching rows 120 * @throws SystemException if a system exception occurred 121 */ 122 @Override 123 @SuppressWarnings("rawtypes") 124 public java.util.List dynamicQuery( 125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 126 int end) throws com.liferay.portal.kernel.exception.SystemException { 127 return _groupLocalService.dynamicQuery(dynamicQuery, start, end); 128 } 129 130 /** 131 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 132 * 133 * <p> 134 * 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.GroupModelImpl}. 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. 135 * </p> 136 * 137 * @param dynamicQuery the dynamic query 138 * @param start the lower bound of the range of model instances 139 * @param end the upper bound of the range of model instances (not inclusive) 140 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 141 * @return the ordered range of matching rows 142 * @throws SystemException if a system exception occurred 143 */ 144 @Override 145 @SuppressWarnings("rawtypes") 146 public java.util.List dynamicQuery( 147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 148 int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException { 151 return _groupLocalService.dynamicQuery(dynamicQuery, start, end, 152 orderByComparator); 153 } 154 155 /** 156 * Returns the number of rows that match the dynamic query. 157 * 158 * @param dynamicQuery the dynamic query 159 * @return the number of rows that match the dynamic query 160 * @throws SystemException if a system exception occurred 161 */ 162 @Override 163 public long dynamicQueryCount( 164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return _groupLocalService.dynamicQueryCount(dynamicQuery); 167 } 168 169 /** 170 * Returns the number of rows that match the dynamic query. 171 * 172 * @param dynamicQuery the dynamic query 173 * @param projection the projection to apply to the query 174 * @return the number of rows that match the dynamic query 175 * @throws SystemException if a system exception occurred 176 */ 177 @Override 178 public long dynamicQueryCount( 179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 180 com.liferay.portal.kernel.dao.orm.Projection projection) 181 throws com.liferay.portal.kernel.exception.SystemException { 182 return _groupLocalService.dynamicQueryCount(dynamicQuery, projection); 183 } 184 185 @Override 186 public com.liferay.portal.model.Group fetchGroup(long groupId) 187 throws com.liferay.portal.kernel.exception.SystemException { 188 return _groupLocalService.fetchGroup(groupId); 189 } 190 191 /** 192 * Returns the group with the matching UUID and company. 193 * 194 * @param uuid the group's UUID 195 * @param companyId the primary key of the company 196 * @return the matching group, or <code>null</code> if a matching group could not be found 197 * @throws SystemException if a system exception occurred 198 */ 199 @Override 200 public com.liferay.portal.model.Group fetchGroupByUuidAndCompanyId( 201 java.lang.String uuid, long companyId) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return _groupLocalService.fetchGroupByUuidAndCompanyId(uuid, companyId); 204 } 205 206 /** 207 * Returns the group with the primary key. 208 * 209 * @param groupId the primary key of the group 210 * @return the group 211 * @throws PortalException if a group with the primary key could not be found 212 * @throws SystemException if a system exception occurred 213 */ 214 @Override 215 public com.liferay.portal.model.Group getGroup(long groupId) 216 throws com.liferay.portal.kernel.exception.PortalException, 217 com.liferay.portal.kernel.exception.SystemException { 218 return _groupLocalService.getGroup(groupId); 219 } 220 221 @Override 222 public com.liferay.portal.model.PersistedModel getPersistedModel( 223 java.io.Serializable primaryKeyObj) 224 throws com.liferay.portal.kernel.exception.PortalException, 225 com.liferay.portal.kernel.exception.SystemException { 226 return _groupLocalService.getPersistedModel(primaryKeyObj); 227 } 228 229 /** 230 * Returns the group with the matching UUID and company. 231 * 232 * @param uuid the group's UUID 233 * @param companyId the primary key of the company 234 * @return the matching group 235 * @throws PortalException if a matching group could not be found 236 * @throws SystemException if a system exception occurred 237 */ 238 @Override 239 public com.liferay.portal.model.Group getGroupByUuidAndCompanyId( 240 java.lang.String uuid, long companyId) 241 throws com.liferay.portal.kernel.exception.PortalException, 242 com.liferay.portal.kernel.exception.SystemException { 243 return _groupLocalService.getGroupByUuidAndCompanyId(uuid, companyId); 244 } 245 246 /** 247 * Returns a range of all the groups. 248 * 249 * <p> 250 * 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.GroupModelImpl}. 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. 251 * </p> 252 * 253 * @param start the lower bound of the range of groups 254 * @param end the upper bound of the range of groups (not inclusive) 255 * @return the range of groups 256 * @throws SystemException if a system exception occurred 257 */ 258 @Override 259 public java.util.List<com.liferay.portal.model.Group> getGroups(int start, 260 int end) throws com.liferay.portal.kernel.exception.SystemException { 261 return _groupLocalService.getGroups(start, end); 262 } 263 264 /** 265 * Returns the number of groups. 266 * 267 * @return the number of groups 268 * @throws SystemException if a system exception occurred 269 */ 270 @Override 271 public int getGroupsCount() 272 throws com.liferay.portal.kernel.exception.SystemException { 273 return _groupLocalService.getGroupsCount(); 274 } 275 276 /** 277 * Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 278 * 279 * @param group the group 280 * @return the group that was updated 281 * @throws SystemException if a system exception occurred 282 */ 283 @Override 284 public com.liferay.portal.model.Group updateGroup( 285 com.liferay.portal.model.Group group) 286 throws com.liferay.portal.kernel.exception.SystemException { 287 return _groupLocalService.updateGroup(group); 288 } 289 290 /** 291 * @throws SystemException if a system exception occurred 292 */ 293 @Override 294 public void addOrganizationGroup(long organizationId, long groupId) 295 throws com.liferay.portal.kernel.exception.SystemException { 296 _groupLocalService.addOrganizationGroup(organizationId, groupId); 297 } 298 299 /** 300 * @throws SystemException if a system exception occurred 301 */ 302 @Override 303 public void addOrganizationGroup(long organizationId, 304 com.liferay.portal.model.Group group) 305 throws com.liferay.portal.kernel.exception.SystemException { 306 _groupLocalService.addOrganizationGroup(organizationId, group); 307 } 308 309 /** 310 * @throws SystemException if a system exception occurred 311 */ 312 @Override 313 public void addOrganizationGroups(long organizationId, long[] groupIds) 314 throws com.liferay.portal.kernel.exception.SystemException { 315 _groupLocalService.addOrganizationGroups(organizationId, groupIds); 316 } 317 318 /** 319 * @throws SystemException if a system exception occurred 320 */ 321 @Override 322 public void addOrganizationGroups(long organizationId, 323 java.util.List<com.liferay.portal.model.Group> Groups) 324 throws com.liferay.portal.kernel.exception.SystemException { 325 _groupLocalService.addOrganizationGroups(organizationId, Groups); 326 } 327 328 /** 329 * @throws SystemException if a system exception occurred 330 */ 331 @Override 332 public void clearOrganizationGroups(long organizationId) 333 throws com.liferay.portal.kernel.exception.SystemException { 334 _groupLocalService.clearOrganizationGroups(organizationId); 335 } 336 337 /** 338 * @throws SystemException if a system exception occurred 339 */ 340 @Override 341 public void deleteOrganizationGroup(long organizationId, long groupId) 342 throws com.liferay.portal.kernel.exception.SystemException { 343 _groupLocalService.deleteOrganizationGroup(organizationId, groupId); 344 } 345 346 /** 347 * @throws SystemException if a system exception occurred 348 */ 349 @Override 350 public void deleteOrganizationGroup(long organizationId, 351 com.liferay.portal.model.Group group) 352 throws com.liferay.portal.kernel.exception.SystemException { 353 _groupLocalService.deleteOrganizationGroup(organizationId, group); 354 } 355 356 /** 357 * @throws SystemException if a system exception occurred 358 */ 359 @Override 360 public void deleteOrganizationGroups(long organizationId, long[] groupIds) 361 throws com.liferay.portal.kernel.exception.SystemException { 362 _groupLocalService.deleteOrganizationGroups(organizationId, groupIds); 363 } 364 365 /** 366 * @throws SystemException if a system exception occurred 367 */ 368 @Override 369 public void deleteOrganizationGroups(long organizationId, 370 java.util.List<com.liferay.portal.model.Group> Groups) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 _groupLocalService.deleteOrganizationGroups(organizationId, Groups); 373 } 374 375 /** 376 * @throws SystemException if a system exception occurred 377 */ 378 @Override 379 public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups( 380 long organizationId) 381 throws com.liferay.portal.kernel.exception.SystemException { 382 return _groupLocalService.getOrganizationGroups(organizationId); 383 } 384 385 /** 386 * @throws SystemException if a system exception occurred 387 */ 388 @Override 389 public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups( 390 long organizationId, int start, int end) 391 throws com.liferay.portal.kernel.exception.SystemException { 392 return _groupLocalService.getOrganizationGroups(organizationId, start, 393 end); 394 } 395 396 /** 397 * @throws SystemException if a system exception occurred 398 */ 399 @Override 400 public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups( 401 long organizationId, int start, int end, 402 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 403 throws com.liferay.portal.kernel.exception.SystemException { 404 return _groupLocalService.getOrganizationGroups(organizationId, start, 405 end, orderByComparator); 406 } 407 408 /** 409 * @throws SystemException if a system exception occurred 410 */ 411 @Override 412 public int getOrganizationGroupsCount(long organizationId) 413 throws com.liferay.portal.kernel.exception.SystemException { 414 return _groupLocalService.getOrganizationGroupsCount(organizationId); 415 } 416 417 /** 418 * @throws SystemException if a system exception occurred 419 */ 420 @Override 421 public boolean hasOrganizationGroup(long organizationId, long groupId) 422 throws com.liferay.portal.kernel.exception.SystemException { 423 return _groupLocalService.hasOrganizationGroup(organizationId, groupId); 424 } 425 426 /** 427 * @throws SystemException if a system exception occurred 428 */ 429 @Override 430 public boolean hasOrganizationGroups(long organizationId) 431 throws com.liferay.portal.kernel.exception.SystemException { 432 return _groupLocalService.hasOrganizationGroups(organizationId); 433 } 434 435 /** 436 * @throws SystemException if a system exception occurred 437 */ 438 @Override 439 public void setOrganizationGroups(long organizationId, long[] groupIds) 440 throws com.liferay.portal.kernel.exception.SystemException { 441 _groupLocalService.setOrganizationGroups(organizationId, groupIds); 442 } 443 444 /** 445 * @throws SystemException if a system exception occurred 446 */ 447 @Override 448 public void addRoleGroup(long roleId, long groupId) 449 throws com.liferay.portal.kernel.exception.SystemException { 450 _groupLocalService.addRoleGroup(roleId, groupId); 451 } 452 453 /** 454 * @throws SystemException if a system exception occurred 455 */ 456 @Override 457 public void addRoleGroup(long roleId, com.liferay.portal.model.Group group) 458 throws com.liferay.portal.kernel.exception.SystemException { 459 _groupLocalService.addRoleGroup(roleId, group); 460 } 461 462 /** 463 * @throws SystemException if a system exception occurred 464 */ 465 @Override 466 public void addRoleGroups(long roleId, long[] groupIds) 467 throws com.liferay.portal.kernel.exception.SystemException { 468 _groupLocalService.addRoleGroups(roleId, groupIds); 469 } 470 471 /** 472 * @throws SystemException if a system exception occurred 473 */ 474 @Override 475 public void addRoleGroups(long roleId, 476 java.util.List<com.liferay.portal.model.Group> Groups) 477 throws com.liferay.portal.kernel.exception.SystemException { 478 _groupLocalService.addRoleGroups(roleId, Groups); 479 } 480 481 /** 482 * @throws SystemException if a system exception occurred 483 */ 484 @Override 485 public void clearRoleGroups(long roleId) 486 throws com.liferay.portal.kernel.exception.SystemException { 487 _groupLocalService.clearRoleGroups(roleId); 488 } 489 490 /** 491 * @throws SystemException if a system exception occurred 492 */ 493 @Override 494 public void deleteRoleGroup(long roleId, long groupId) 495 throws com.liferay.portal.kernel.exception.SystemException { 496 _groupLocalService.deleteRoleGroup(roleId, groupId); 497 } 498 499 /** 500 * @throws SystemException if a system exception occurred 501 */ 502 @Override 503 public void deleteRoleGroup(long roleId, 504 com.liferay.portal.model.Group group) 505 throws com.liferay.portal.kernel.exception.SystemException { 506 _groupLocalService.deleteRoleGroup(roleId, group); 507 } 508 509 /** 510 * @throws SystemException if a system exception occurred 511 */ 512 @Override 513 public void deleteRoleGroups(long roleId, long[] groupIds) 514 throws com.liferay.portal.kernel.exception.SystemException { 515 _groupLocalService.deleteRoleGroups(roleId, groupIds); 516 } 517 518 /** 519 * @throws SystemException if a system exception occurred 520 */ 521 @Override 522 public void deleteRoleGroups(long roleId, 523 java.util.List<com.liferay.portal.model.Group> Groups) 524 throws com.liferay.portal.kernel.exception.SystemException { 525 _groupLocalService.deleteRoleGroups(roleId, Groups); 526 } 527 528 /** 529 * @throws SystemException if a system exception occurred 530 */ 531 @Override 532 public java.util.List<com.liferay.portal.model.Group> getRoleGroups( 533 long roleId) throws com.liferay.portal.kernel.exception.SystemException { 534 return _groupLocalService.getRoleGroups(roleId); 535 } 536 537 /** 538 * @throws SystemException if a system exception occurred 539 */ 540 @Override 541 public java.util.List<com.liferay.portal.model.Group> getRoleGroups( 542 long roleId, int start, int end) 543 throws com.liferay.portal.kernel.exception.SystemException { 544 return _groupLocalService.getRoleGroups(roleId, start, end); 545 } 546 547 /** 548 * @throws SystemException if a system exception occurred 549 */ 550 @Override 551 public java.util.List<com.liferay.portal.model.Group> getRoleGroups( 552 long roleId, int start, int end, 553 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 554 throws com.liferay.portal.kernel.exception.SystemException { 555 return _groupLocalService.getRoleGroups(roleId, start, end, 556 orderByComparator); 557 } 558 559 /** 560 * @throws SystemException if a system exception occurred 561 */ 562 @Override 563 public int getRoleGroupsCount(long roleId) 564 throws com.liferay.portal.kernel.exception.SystemException { 565 return _groupLocalService.getRoleGroupsCount(roleId); 566 } 567 568 /** 569 * @throws SystemException if a system exception occurred 570 */ 571 @Override 572 public boolean hasRoleGroup(long roleId, long groupId) 573 throws com.liferay.portal.kernel.exception.SystemException { 574 return _groupLocalService.hasRoleGroup(roleId, groupId); 575 } 576 577 /** 578 * @throws SystemException if a system exception occurred 579 */ 580 @Override 581 public boolean hasRoleGroups(long roleId) 582 throws com.liferay.portal.kernel.exception.SystemException { 583 return _groupLocalService.hasRoleGroups(roleId); 584 } 585 586 /** 587 * @throws SystemException if a system exception occurred 588 */ 589 @Override 590 public void setRoleGroups(long roleId, long[] groupIds) 591 throws com.liferay.portal.kernel.exception.SystemException { 592 _groupLocalService.setRoleGroups(roleId, groupIds); 593 } 594 595 /** 596 * @throws SystemException if a system exception occurred 597 */ 598 @Override 599 public void addUserGroupGroup(long userGroupId, long groupId) 600 throws com.liferay.portal.kernel.exception.SystemException { 601 _groupLocalService.addUserGroupGroup(userGroupId, groupId); 602 } 603 604 /** 605 * @throws SystemException if a system exception occurred 606 */ 607 @Override 608 public void addUserGroupGroup(long userGroupId, 609 com.liferay.portal.model.Group group) 610 throws com.liferay.portal.kernel.exception.SystemException { 611 _groupLocalService.addUserGroupGroup(userGroupId, group); 612 } 613 614 /** 615 * @throws SystemException if a system exception occurred 616 */ 617 @Override 618 public void addUserGroupGroups(long userGroupId, long[] groupIds) 619 throws com.liferay.portal.kernel.exception.SystemException { 620 _groupLocalService.addUserGroupGroups(userGroupId, groupIds); 621 } 622 623 /** 624 * @throws SystemException if a system exception occurred 625 */ 626 @Override 627 public void addUserGroupGroups(long userGroupId, 628 java.util.List<com.liferay.portal.model.Group> Groups) 629 throws com.liferay.portal.kernel.exception.SystemException { 630 _groupLocalService.addUserGroupGroups(userGroupId, Groups); 631 } 632 633 /** 634 * @throws SystemException if a system exception occurred 635 */ 636 @Override 637 public void clearUserGroupGroups(long userGroupId) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 _groupLocalService.clearUserGroupGroups(userGroupId); 640 } 641 642 /** 643 * @throws SystemException if a system exception occurred 644 */ 645 @Override 646 public void deleteUserGroupGroup(long userGroupId, long groupId) 647 throws com.liferay.portal.kernel.exception.SystemException { 648 _groupLocalService.deleteUserGroupGroup(userGroupId, groupId); 649 } 650 651 /** 652 * @throws SystemException if a system exception occurred 653 */ 654 @Override 655 public void deleteUserGroupGroup(long userGroupId, 656 com.liferay.portal.model.Group group) 657 throws com.liferay.portal.kernel.exception.SystemException { 658 _groupLocalService.deleteUserGroupGroup(userGroupId, group); 659 } 660 661 /** 662 * @throws SystemException if a system exception occurred 663 */ 664 @Override 665 public void deleteUserGroupGroups(long userGroupId, long[] groupIds) 666 throws com.liferay.portal.kernel.exception.SystemException { 667 _groupLocalService.deleteUserGroupGroups(userGroupId, groupIds); 668 } 669 670 /** 671 * @throws SystemException if a system exception occurred 672 */ 673 @Override 674 public void deleteUserGroupGroups(long userGroupId, 675 java.util.List<com.liferay.portal.model.Group> Groups) 676 throws com.liferay.portal.kernel.exception.SystemException { 677 _groupLocalService.deleteUserGroupGroups(userGroupId, Groups); 678 } 679 680 /** 681 * @throws SystemException if a system exception occurred 682 */ 683 @Override 684 public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups( 685 long userGroupId) 686 throws com.liferay.portal.kernel.exception.SystemException { 687 return _groupLocalService.getUserGroupGroups(userGroupId); 688 } 689 690 /** 691 * @throws SystemException if a system exception occurred 692 */ 693 @Override 694 public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups( 695 long userGroupId, int start, int end) 696 throws com.liferay.portal.kernel.exception.SystemException { 697 return _groupLocalService.getUserGroupGroups(userGroupId, start, end); 698 } 699 700 /** 701 * @throws SystemException if a system exception occurred 702 */ 703 @Override 704 public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups( 705 long userGroupId, int start, int end, 706 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 707 throws com.liferay.portal.kernel.exception.SystemException { 708 return _groupLocalService.getUserGroupGroups(userGroupId, start, end, 709 orderByComparator); 710 } 711 712 /** 713 * @throws SystemException if a system exception occurred 714 */ 715 @Override 716 public int getUserGroupGroupsCount(long userGroupId) 717 throws com.liferay.portal.kernel.exception.SystemException { 718 return _groupLocalService.getUserGroupGroupsCount(userGroupId); 719 } 720 721 /** 722 * @throws SystemException if a system exception occurred 723 */ 724 @Override 725 public boolean hasUserGroupGroup(long userGroupId, long groupId) 726 throws com.liferay.portal.kernel.exception.SystemException { 727 return _groupLocalService.hasUserGroupGroup(userGroupId, groupId); 728 } 729 730 /** 731 * @throws SystemException if a system exception occurred 732 */ 733 @Override 734 public boolean hasUserGroupGroups(long userGroupId) 735 throws com.liferay.portal.kernel.exception.SystemException { 736 return _groupLocalService.hasUserGroupGroups(userGroupId); 737 } 738 739 /** 740 * @throws SystemException if a system exception occurred 741 */ 742 @Override 743 public void setUserGroupGroups(long userGroupId, long[] groupIds) 744 throws com.liferay.portal.kernel.exception.SystemException { 745 _groupLocalService.setUserGroupGroups(userGroupId, groupIds); 746 } 747 748 /** 749 * @throws SystemException if a system exception occurred 750 */ 751 @Override 752 public void addUserGroup(long userId, long groupId) 753 throws com.liferay.portal.kernel.exception.SystemException { 754 _groupLocalService.addUserGroup(userId, groupId); 755 } 756 757 /** 758 * @throws SystemException if a system exception occurred 759 */ 760 @Override 761 public void addUserGroup(long userId, com.liferay.portal.model.Group group) 762 throws com.liferay.portal.kernel.exception.SystemException { 763 _groupLocalService.addUserGroup(userId, group); 764 } 765 766 /** 767 * @throws SystemException if a system exception occurred 768 */ 769 @Override 770 public void addUserGroups(long userId, long[] groupIds) 771 throws com.liferay.portal.kernel.exception.SystemException { 772 _groupLocalService.addUserGroups(userId, groupIds); 773 } 774 775 /** 776 * @throws SystemException if a system exception occurred 777 */ 778 @Override 779 public void addUserGroups(long userId, 780 java.util.List<com.liferay.portal.model.Group> Groups) 781 throws com.liferay.portal.kernel.exception.SystemException { 782 _groupLocalService.addUserGroups(userId, Groups); 783 } 784 785 /** 786 * @throws SystemException if a system exception occurred 787 */ 788 @Override 789 public void clearUserGroups(long userId) 790 throws com.liferay.portal.kernel.exception.SystemException { 791 _groupLocalService.clearUserGroups(userId); 792 } 793 794 /** 795 * @throws SystemException if a system exception occurred 796 */ 797 @Override 798 public void deleteUserGroup(long userId, long groupId) 799 throws com.liferay.portal.kernel.exception.SystemException { 800 _groupLocalService.deleteUserGroup(userId, groupId); 801 } 802 803 /** 804 * @throws SystemException if a system exception occurred 805 */ 806 @Override 807 public void deleteUserGroup(long userId, 808 com.liferay.portal.model.Group group) 809 throws com.liferay.portal.kernel.exception.SystemException { 810 _groupLocalService.deleteUserGroup(userId, group); 811 } 812 813 /** 814 * @throws SystemException if a system exception occurred 815 */ 816 @Override 817 public void deleteUserGroups(long userId, long[] groupIds) 818 throws com.liferay.portal.kernel.exception.SystemException { 819 _groupLocalService.deleteUserGroups(userId, groupIds); 820 } 821 822 /** 823 * @throws SystemException if a system exception occurred 824 */ 825 @Override 826 public void deleteUserGroups(long userId, 827 java.util.List<com.liferay.portal.model.Group> Groups) 828 throws com.liferay.portal.kernel.exception.SystemException { 829 _groupLocalService.deleteUserGroups(userId, Groups); 830 } 831 832 /** 833 * @throws SystemException if a system exception occurred 834 */ 835 @Override 836 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 837 long userId) throws com.liferay.portal.kernel.exception.SystemException { 838 return _groupLocalService.getUserGroups(userId); 839 } 840 841 /** 842 * @throws SystemException if a system exception occurred 843 */ 844 @Override 845 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 846 long userId, int start, int end) 847 throws com.liferay.portal.kernel.exception.SystemException { 848 return _groupLocalService.getUserGroups(userId, start, end); 849 } 850 851 /** 852 * @throws PortalException 853 * @throws SystemException if a system exception occurred 854 */ 855 @Override 856 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 857 long userId, int start, int end, 858 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 859 throws com.liferay.portal.kernel.exception.PortalException, 860 com.liferay.portal.kernel.exception.SystemException { 861 return _groupLocalService.getUserGroups(userId, start, end, 862 orderByComparator); 863 } 864 865 /** 866 * @throws SystemException if a system exception occurred 867 */ 868 @Override 869 public int getUserGroupsCount(long userId) 870 throws com.liferay.portal.kernel.exception.SystemException { 871 return _groupLocalService.getUserGroupsCount(userId); 872 } 873 874 /** 875 * @throws SystemException if a system exception occurred 876 */ 877 @Override 878 public boolean hasUserGroup(long userId, long groupId) 879 throws com.liferay.portal.kernel.exception.SystemException { 880 return _groupLocalService.hasUserGroup(userId, groupId); 881 } 882 883 /** 884 * @throws SystemException if a system exception occurred 885 */ 886 @Override 887 public boolean hasUserGroups(long userId) 888 throws com.liferay.portal.kernel.exception.SystemException { 889 return _groupLocalService.hasUserGroups(userId); 890 } 891 892 /** 893 * @throws SystemException if a system exception occurred 894 */ 895 @Override 896 public void setUserGroups(long userId, long[] groupIds) 897 throws com.liferay.portal.kernel.exception.SystemException { 898 _groupLocalService.setUserGroups(userId, groupIds); 899 } 900 901 /** 902 * Returns the Spring bean ID for this bean. 903 * 904 * @return the Spring bean ID for this bean 905 */ 906 @Override 907 public java.lang.String getBeanIdentifier() { 908 return _groupLocalService.getBeanIdentifier(); 909 } 910 911 /** 912 * Sets the Spring bean ID for this bean. 913 * 914 * @param beanIdentifier the Spring bean ID for this bean 915 */ 916 @Override 917 public void setBeanIdentifier(java.lang.String beanIdentifier) { 918 _groupLocalService.setBeanIdentifier(beanIdentifier); 919 } 920 921 /** 922 * Adds a group. 923 * 924 * @param userId the primary key of the group's creator/owner 925 * @param parentGroupId the primary key of the parent group 926 * @param className the entity's class name 927 * @param classPK the primary key of the entity's instance 928 * @param liveGroupId the primary key of the live group 929 * @param name the entity's name 930 * @param description the group's description (optionally 931 <code>null</code>) 932 * @param type the group's type. For more information see {@link 933 com.liferay.portal.model.GroupConstants} 934 * @param friendlyURL the group's friendlyURL (optionally 935 <code>null</code>) 936 * @param site whether the group is to be associated with a main site 937 * @param active whether the group is active 938 * @param serviceContext the service context to be applied (optionally 939 <code>null</code>). Can set asset category IDs and asset tag 940 names for the group, and whether the group is for staging. 941 * @return the group 942 * @throws PortalException if a creator could not be found, if the group's 943 information was invalid, if a layout could not be found, or if a 944 valid friendly URL could not be created for the group 945 * @throws SystemException if a system exception occurred 946 */ 947 @Override 948 public com.liferay.portal.model.Group addGroup(long userId, 949 long parentGroupId, java.lang.String className, long classPK, 950 long liveGroupId, java.lang.String name, java.lang.String description, 951 int type, boolean manualMembership, int membershipRestriction, 952 java.lang.String friendlyURL, boolean site, boolean active, 953 com.liferay.portal.service.ServiceContext serviceContext) 954 throws com.liferay.portal.kernel.exception.PortalException, 955 com.liferay.portal.kernel.exception.SystemException { 956 return _groupLocalService.addGroup(userId, parentGroupId, className, 957 classPK, liveGroupId, name, description, type, manualMembership, 958 membershipRestriction, friendlyURL, site, active, serviceContext); 959 } 960 961 /** 962 * Adds the group using the default live group. 963 * 964 * @param userId the primary key of the group's creator/owner 965 * @param parentGroupId the primary key of the parent group 966 * @param className the entity's class name 967 * @param classPK the primary key of the entity's instance 968 * @param name the entity's name 969 * @param description the group's description (optionally 970 <code>null</code>) 971 * @param type the group's type. For more information see {@link 972 com.liferay.portal.model.GroupConstants} 973 * @param friendlyURL the group's friendlyURL 974 * @param site whether the group is to be associated with a main site 975 * @param active whether the group is active 976 * @param serviceContext the service context to be applied (optionally 977 <code>null</code>). Can set asset category IDs and asset tag 978 names for the group, and whether the group is for staging. 979 * @return the group 980 * @throws PortalException if a creator could not be found, if the 981 group's information was invalid, if a layout could not be 982 found, or if a valid friendly URL could not be created for 983 the group 984 * @throws SystemException if a system exception occurred 985 * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String, 986 long, long, String, String, int, boolean, int, String, 987 boolean, boolean, ServiceContext)} 988 */ 989 @Override 990 public com.liferay.portal.model.Group addGroup(long userId, 991 long parentGroupId, java.lang.String className, long classPK, 992 java.lang.String name, java.lang.String description, int type, 993 java.lang.String friendlyURL, boolean site, boolean active, 994 com.liferay.portal.service.ServiceContext serviceContext) 995 throws com.liferay.portal.kernel.exception.PortalException, 996 com.liferay.portal.kernel.exception.SystemException { 997 return _groupLocalService.addGroup(userId, parentGroupId, className, 998 classPK, name, description, type, friendlyURL, site, active, 999 serviceContext); 1000 } 1001 1002 /** 1003 * Adds a group. 1004 * 1005 * @param userId the primary key of the group's creator/owner 1006 * @param className the entity's class name 1007 * @param classPK the primary key of the entity's instance 1008 * @param liveGroupId the primary key of the live group 1009 * @param name the entity's name 1010 * @param description the group's description (optionally 1011 <code>null</code>) 1012 * @param type the group's type. For more information see {@link 1013 com.liferay.portal.model.GroupConstants} 1014 * @param friendlyURL the group's friendlyURL (optionally 1015 <code>null</code>) 1016 * @param site whether the group is to be associated with a main site 1017 * @param active whether the group is active 1018 * @param serviceContext the service context to be applied (optionally 1019 <code>null</code>). Can set asset category IDs and asset tag 1020 names for the group, and whether the group is for staging. 1021 * @return the group 1022 * @throws PortalException if a creator could not be found, if the 1023 group's information was invalid, if a layout could not be 1024 found, or if a valid friendly URL could not be created for 1025 the group 1026 * @throws SystemException if a system exception occurred 1027 * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String, 1028 long, long, String, String, int, boolean, int, String, 1029 boolean, boolean, ServiceContext)} 1030 */ 1031 @Override 1032 public com.liferay.portal.model.Group addGroup(long userId, 1033 java.lang.String className, long classPK, long liveGroupId, 1034 java.lang.String name, java.lang.String description, int type, 1035 java.lang.String friendlyURL, boolean site, boolean active, 1036 com.liferay.portal.service.ServiceContext serviceContext) 1037 throws com.liferay.portal.kernel.exception.PortalException, 1038 com.liferay.portal.kernel.exception.SystemException { 1039 return _groupLocalService.addGroup(userId, className, classPK, 1040 liveGroupId, name, description, type, friendlyURL, site, active, 1041 serviceContext); 1042 } 1043 1044 /** 1045 * Adds the group using the default live group. 1046 * 1047 * @param userId the primary key of the group's creator/owner 1048 * @param className the entity's class name 1049 * @param classPK the primary key of the entity's instance 1050 * @param name the entity's name 1051 * @param description the group's description (optionally 1052 <code>null</code>) 1053 * @param type the group's type. For more information see {@link 1054 com.liferay.portal.model.GroupConstants} 1055 * @param friendlyURL the group's friendlyURL 1056 * @param site whether the group is to be associated with a main site 1057 * @param active whether the group is active 1058 * @param serviceContext the service context to be applied (optionally 1059 <code>null</code>). Can set asset category IDs and asset tag 1060 names for the group, and whether the group is for staging. 1061 * @return the group 1062 * @throws PortalException if a creator could not be found, if the 1063 group's information was invalid, if a layout could not be 1064 found, or if a valid friendly URL could not be created for 1065 the group 1066 * @throws SystemException if a system exception occurred 1067 * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String, 1068 long, long, String, String, int, boolean, int, String, 1069 boolean, boolean, ServiceContext)} 1070 */ 1071 @Override 1072 public com.liferay.portal.model.Group addGroup(long userId, 1073 java.lang.String className, long classPK, java.lang.String name, 1074 java.lang.String description, int type, java.lang.String friendlyURL, 1075 boolean site, boolean active, 1076 com.liferay.portal.service.ServiceContext serviceContext) 1077 throws com.liferay.portal.kernel.exception.PortalException, 1078 com.liferay.portal.kernel.exception.SystemException { 1079 return _groupLocalService.addGroup(userId, className, classPK, name, 1080 description, type, friendlyURL, site, active, serviceContext); 1081 } 1082 1083 /** 1084 * Adds a company group if it does not exist. This method is typically used 1085 * when a virtual host is added. 1086 * 1087 * @param companyId the primary key of the company 1088 * @throws PortalException if a default user for the company could not be 1089 found, if the group's information was invalid, if a layout could 1090 not be found, or if a valid friendly URL could not be created for 1091 the group 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 @Override 1095 public void checkCompanyGroup(long companyId) 1096 throws com.liferay.portal.kernel.exception.PortalException, 1097 com.liferay.portal.kernel.exception.SystemException { 1098 _groupLocalService.checkCompanyGroup(companyId); 1099 } 1100 1101 /** 1102 * Creates systems groups and other related data needed by the system on the 1103 * very first startup. Also takes care of creating the Control Panel groups 1104 * and layouts. 1105 * 1106 * @param companyId the primary key of the company 1107 * @throws PortalException if a new system group could not be created 1108 * @throws SystemException if a system exception occurred 1109 */ 1110 @Override 1111 public void checkSystemGroups(long companyId) 1112 throws com.liferay.portal.kernel.exception.PortalException, 1113 com.liferay.portal.kernel.exception.SystemException { 1114 _groupLocalService.checkSystemGroups(companyId); 1115 } 1116 1117 @Override 1118 public void disableStaging(long groupId) 1119 throws com.liferay.portal.kernel.exception.PortalException, 1120 com.liferay.portal.kernel.exception.SystemException { 1121 _groupLocalService.disableStaging(groupId); 1122 } 1123 1124 @Override 1125 public void enableStaging(long groupId) 1126 throws com.liferay.portal.kernel.exception.PortalException, 1127 com.liferay.portal.kernel.exception.SystemException { 1128 _groupLocalService.enableStaging(groupId); 1129 } 1130 1131 /** 1132 * Returns the group with the matching friendly URL. 1133 * 1134 * @param companyId the primary key of the company 1135 * @param friendlyURL the friendly URL 1136 * @return the group with the friendly URL, or <code>null</code> if a 1137 matching group could not be found 1138 * @throws SystemException if a system exception occurred 1139 */ 1140 @Override 1141 public com.liferay.portal.model.Group fetchFriendlyURLGroup( 1142 long companyId, java.lang.String friendlyURL) 1143 throws com.liferay.portal.kernel.exception.SystemException { 1144 return _groupLocalService.fetchFriendlyURLGroup(companyId, friendlyURL); 1145 } 1146 1147 /** 1148 * Returns the group with the matching group name by first searching the 1149 * system groups and then using the finder cache. 1150 * 1151 * @param companyId the primary key of the company 1152 * @param name the group's name 1153 * @return the group with the name and associated company, or 1154 <code>null</code> if a matching group could not be found 1155 * @throws SystemException if a system exception occurred 1156 */ 1157 @Override 1158 public com.liferay.portal.model.Group fetchGroup(long companyId, 1159 java.lang.String name) 1160 throws com.liferay.portal.kernel.exception.SystemException { 1161 return _groupLocalService.fetchGroup(companyId, name); 1162 } 1163 1164 /** 1165 * Returns the company group. 1166 * 1167 * @param companyId the primary key of the company 1168 * @return the group associated with the company 1169 * @throws PortalException if a matching group could not be found 1170 * @throws SystemException if a system exception occurred 1171 */ 1172 @Override 1173 public com.liferay.portal.model.Group getCompanyGroup(long companyId) 1174 throws com.liferay.portal.kernel.exception.PortalException, 1175 com.liferay.portal.kernel.exception.SystemException { 1176 return _groupLocalService.getCompanyGroup(companyId); 1177 } 1178 1179 /** 1180 * Returns a range of all the groups associated with the company. 1181 * 1182 * <p> 1183 * Useful when paginating results. Returns a maximum of <code>end - 1184 * start</code> instances. <code>start</code> and <code>end</code> are not 1185 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1186 * refers to the first result in the set. Setting both <code>start</code> 1187 * and <code>end</code> to {@link 1188 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1189 * result set. 1190 * </p> 1191 * 1192 * @param companyId the primary key of the company 1193 * @param start the lower bound of the range of groups to return 1194 * @param end the upper bound of the range of groups to return (not 1195 inclusive) 1196 * @return the range of groups associated with the company 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 @Override 1200 public java.util.List<com.liferay.portal.model.Group> getCompanyGroups( 1201 long companyId, int start, int end) 1202 throws com.liferay.portal.kernel.exception.SystemException { 1203 return _groupLocalService.getCompanyGroups(companyId, start, end); 1204 } 1205 1206 /** 1207 * Returns the number of groups associated with the company. 1208 * 1209 * @param companyId the primary key of the company 1210 * @return the number of groups associated with the company 1211 * @throws SystemException if a system exception occurred 1212 */ 1213 @Override 1214 public int getCompanyGroupsCount(long companyId) 1215 throws com.liferay.portal.kernel.exception.SystemException { 1216 return _groupLocalService.getCompanyGroupsCount(companyId); 1217 } 1218 1219 /** 1220 * Returns the group with the matching friendly URL. 1221 * 1222 * @param companyId the primary key of the company 1223 * @param friendlyURL the group's friendlyURL 1224 * @return the group with the friendly URL 1225 * @throws PortalException if a matching group could not be found, or if the 1226 friendly URL was invalid 1227 * @throws SystemException if a system exception occurred 1228 */ 1229 @Override 1230 public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId, 1231 java.lang.String friendlyURL) 1232 throws com.liferay.portal.kernel.exception.PortalException, 1233 com.liferay.portal.kernel.exception.SystemException { 1234 return _groupLocalService.getFriendlyURLGroup(companyId, friendlyURL); 1235 } 1236 1237 /** 1238 * Returns the group with the matching group name. 1239 * 1240 * @param companyId the primary key of the company 1241 * @param name the group's name 1242 * @return the group with the name 1243 * @throws PortalException if a matching group could not be found 1244 * @throws SystemException if a system exception occurred 1245 */ 1246 @Override 1247 public com.liferay.portal.model.Group getGroup(long companyId, 1248 java.lang.String name) 1249 throws com.liferay.portal.kernel.exception.PortalException, 1250 com.liferay.portal.kernel.exception.SystemException { 1251 return _groupLocalService.getGroup(companyId, name); 1252 } 1253 1254 @Override 1255 public java.lang.String getGroupDescriptiveName( 1256 com.liferay.portal.model.Group group, java.util.Locale locale) 1257 throws com.liferay.portal.kernel.exception.PortalException, 1258 com.liferay.portal.kernel.exception.SystemException { 1259 return _groupLocalService.getGroupDescriptiveName(group, locale); 1260 } 1261 1262 @Override 1263 public java.lang.String getGroupDescriptiveName(long groupId, 1264 java.util.Locale locale) 1265 throws com.liferay.portal.kernel.exception.PortalException, 1266 com.liferay.portal.kernel.exception.SystemException { 1267 return _groupLocalService.getGroupDescriptiveName(groupId, locale); 1268 } 1269 1270 /** 1271 * Returns all the groups that are direct children of the parent group. 1272 * 1273 * @param companyId the primary key of the company 1274 * @param parentGroupId the primary key of the parent group 1275 * @param site whether the group is to be associated with a main site 1276 * @return the matching groups, or <code>null</code> if no matches were 1277 found 1278 * @throws SystemException if a system exception occurred 1279 */ 1280 @Override 1281 public java.util.List<com.liferay.portal.model.Group> getGroups( 1282 long companyId, long parentGroupId, boolean site) 1283 throws com.liferay.portal.kernel.exception.SystemException { 1284 return _groupLocalService.getGroups(companyId, parentGroupId, site); 1285 } 1286 1287 /** 1288 * Returns all the groups that are direct children of the parent group with 1289 * the matching className. 1290 * 1291 * @param companyId the primary key of the company 1292 * @param className the class name of the group 1293 * @param parentGroupId the primary key of the parent group 1294 * @return the matching groups, or <code>null</code> if no matches were 1295 found 1296 * @throws SystemException if a system exception occurred 1297 */ 1298 @Override 1299 public java.util.List<com.liferay.portal.model.Group> getGroups( 1300 long companyId, java.lang.String className, long parentGroupId) 1301 throws com.liferay.portal.kernel.exception.SystemException { 1302 return _groupLocalService.getGroups(companyId, className, parentGroupId); 1303 } 1304 1305 /** 1306 * Returns a range of all the groups that are direct children of the parent 1307 * group with the matching className. 1308 * 1309 * @param companyId the primary key of the company 1310 * @param className the class name of the group 1311 * @param parentGroupId the primary key of the parent group 1312 * @param start the lower bound of the range of results 1313 * @param end the upper bound of the range of results (not inclusive) 1314 * @return the range of matching groups 1315 * @throws SystemException if a system exception occurred 1316 */ 1317 @Override 1318 public java.util.List<com.liferay.portal.model.Group> getGroups( 1319 long companyId, java.lang.String className, long parentGroupId, 1320 int start, int end) 1321 throws com.liferay.portal.kernel.exception.SystemException { 1322 return _groupLocalService.getGroups(companyId, className, 1323 parentGroupId, start, end); 1324 } 1325 1326 /** 1327 * Returns the groups with the matching primary keys. 1328 * 1329 * @param groupIds the primary keys of the groups 1330 * @return the groups with the primary keys 1331 * @throws PortalException if any one of the groups could not be found 1332 * @throws SystemException if a system exception occurred 1333 */ 1334 @Override 1335 public java.util.List<com.liferay.portal.model.Group> getGroups( 1336 long[] groupIds) 1337 throws com.liferay.portal.kernel.exception.PortalException, 1338 com.liferay.portal.kernel.exception.SystemException { 1339 return _groupLocalService.getGroups(groupIds); 1340 } 1341 1342 /** 1343 * Returns the number of groups that are direct children of the parent 1344 * group. 1345 * 1346 * @param companyId the primary key of the company 1347 * @param parentGroupId the primary key of the parent group 1348 * @param site whether the group is to be associated with a main site 1349 * @return the number of matching groups 1350 * @throws SystemException if a system exception occurred 1351 */ 1352 @Override 1353 public int getGroupsCount(long companyId, long parentGroupId, boolean site) 1354 throws com.liferay.portal.kernel.exception.SystemException { 1355 return _groupLocalService.getGroupsCount(companyId, parentGroupId, site); 1356 } 1357 1358 /** 1359 * Returns the number of groups that are direct children of the parent group 1360 * with the matching className. 1361 * 1362 * @param companyId the primary key of the company 1363 * @param className the class name of the group 1364 * @param parentGroupId the primary key of the parent group 1365 * @return the number of matching groups 1366 * @throws SystemException if a system exception occurred 1367 */ 1368 @Override 1369 public int getGroupsCount(long companyId, java.lang.String className, 1370 long parentGroupId) 1371 throws com.liferay.portal.kernel.exception.SystemException { 1372 return _groupLocalService.getGroupsCount(companyId, className, 1373 parentGroupId); 1374 } 1375 1376 /** 1377 * Returns the group associated with the layout. 1378 * 1379 * @param companyId the primary key of the company 1380 * @param plid the primary key of the layout 1381 * @return the group associated with the layout 1382 * @throws PortalException if a matching group could not be found 1383 * @throws SystemException if a system exception occurred 1384 */ 1385 @Override 1386 public com.liferay.portal.model.Group getLayoutGroup(long companyId, 1387 long plid) 1388 throws com.liferay.portal.kernel.exception.PortalException, 1389 com.liferay.portal.kernel.exception.SystemException { 1390 return _groupLocalService.getLayoutGroup(companyId, plid); 1391 } 1392 1393 /** 1394 * Returns the group associated with the layout prototype. 1395 * 1396 * @param companyId the primary key of the company 1397 * @param layoutPrototypeId the primary key of the layout prototype 1398 * @return the group associated with the layout prototype 1399 * @throws PortalException if a matching group could not be found 1400 * @throws SystemException if a system exception occurred 1401 */ 1402 @Override 1403 public com.liferay.portal.model.Group getLayoutPrototypeGroup( 1404 long companyId, long layoutPrototypeId) 1405 throws com.liferay.portal.kernel.exception.PortalException, 1406 com.liferay.portal.kernel.exception.SystemException { 1407 return _groupLocalService.getLayoutPrototypeGroup(companyId, 1408 layoutPrototypeId); 1409 } 1410 1411 /** 1412 * Returns the group associated with the layout set prototype. 1413 * 1414 * @param companyId the primary key of the company 1415 * @param layoutSetPrototypeId the primary key of the layout set prototype 1416 * @return the group associated with the layout set prototype 1417 * @throws PortalException if a matching group could not be found 1418 * @throws SystemException if a system exception occurred 1419 */ 1420 @Override 1421 public com.liferay.portal.model.Group getLayoutSetPrototypeGroup( 1422 long companyId, long layoutSetPrototypeId) 1423 throws com.liferay.portal.kernel.exception.PortalException, 1424 com.liferay.portal.kernel.exception.SystemException { 1425 return _groupLocalService.getLayoutSetPrototypeGroup(companyId, 1426 layoutSetPrototypeId); 1427 } 1428 1429 /** 1430 * Returns a range of all groups that are children of the parent group and 1431 * that have at least one layout. 1432 * 1433 * <p> 1434 * Useful when paginating results. Returns a maximum of <code>end - 1435 * start</code> instances. <code>start</code> and <code>end</code> are not 1436 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1437 * refers to the first result in the set. Setting both <code>start</code> 1438 * and <code>end</code> to {@link 1439 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1440 * result set. 1441 * </p> 1442 * 1443 * @param companyId the primary key of the company 1444 * @param parentGroupId the primary key of the parent group 1445 * @param site whether the group is to be associated with a main site 1446 * @param start the lower bound of the range of groups to return 1447 * @param end the upper bound of the range of groups to return (not 1448 inclusive) 1449 * @return the range of matching groups 1450 * @throws SystemException if a system exception occurred 1451 */ 1452 @Override 1453 public java.util.List<com.liferay.portal.model.Group> getLayoutsGroups( 1454 long companyId, long parentGroupId, boolean site, int start, int end) 1455 throws com.liferay.portal.kernel.exception.SystemException { 1456 return _groupLocalService.getLayoutsGroups(companyId, parentGroupId, 1457 site, start, end); 1458 } 1459 1460 /** 1461 * Returns the number of groups that are children or the parent group and 1462 * that have at least one layout 1463 * 1464 * @param companyId the primary key of the company 1465 * @param parentGroupId the primary key of the parent group 1466 * @param site whether the group is to be associated with a main site 1467 * @return the number of matching groups 1468 * @throws SystemException if a system exception occurred 1469 */ 1470 @Override 1471 public int getLayoutsGroupsCount(long companyId, long parentGroupId, 1472 boolean site) 1473 throws com.liferay.portal.kernel.exception.SystemException { 1474 return _groupLocalService.getLayoutsGroupsCount(companyId, 1475 parentGroupId, site); 1476 } 1477 1478 /** 1479 * Returns all live groups. 1480 * 1481 * @return all live groups 1482 * @throws SystemException if a system exception occurred 1483 */ 1484 @Override 1485 public java.util.List<com.liferay.portal.model.Group> getLiveGroups() 1486 throws com.liferay.portal.kernel.exception.SystemException { 1487 return _groupLocalService.getLiveGroups(); 1488 } 1489 1490 /** 1491 * Returns a range of all non-system groups of a specified type (className) 1492 * that have no layouts. 1493 * 1494 * <p> 1495 * Useful when paginating results. Returns a maximum of <code>end - 1496 * start</code> instances. <code>start</code> and <code>end</code> are not 1497 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1498 * refers to the first result in the set. Setting both <code>start</code> 1499 * and <code>end</code> to {@link 1500 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1501 * result set. 1502 * </p> 1503 * 1504 * @param className the entity's class name 1505 * @param privateLayout whether to include groups with private layout sets 1506 or non-private layout sets 1507 * @param start the lower bound of the range of groups to return 1508 * @param end the upper bound of the range of groups to return (not 1509 inclusive) 1510 * @return the range of matching groups 1511 * @throws SystemException if a system exception occurred 1512 */ 1513 @Override 1514 public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups( 1515 java.lang.String className, boolean privateLayout, int start, int end) 1516 throws com.liferay.portal.kernel.exception.SystemException { 1517 return _groupLocalService.getNoLayoutsGroups(className, privateLayout, 1518 start, end); 1519 } 1520 1521 /** 1522 * Returns all non-system groups having <code>null</code> or empty friendly 1523 * URLs. 1524 * 1525 * @return the non-system groups having <code>null</code> or empty friendly 1526 URLs 1527 * @throws SystemException if a system exception occurred 1528 */ 1529 @Override 1530 public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups() 1531 throws com.liferay.portal.kernel.exception.SystemException { 1532 return _groupLocalService.getNullFriendlyURLGroups(); 1533 } 1534 1535 /** 1536 * Returns the specified organization group. 1537 * 1538 * @param companyId the primary key of the company 1539 * @param organizationId the primary key of the organization 1540 * @return the group associated with the organization 1541 * @throws PortalException if a matching group could not be found 1542 * @throws SystemException if a system exception occurred 1543 */ 1544 @Override 1545 public com.liferay.portal.model.Group getOrganizationGroup(long companyId, 1546 long organizationId) 1547 throws com.liferay.portal.kernel.exception.PortalException, 1548 com.liferay.portal.kernel.exception.SystemException { 1549 return _groupLocalService.getOrganizationGroup(companyId, organizationId); 1550 } 1551 1552 /** 1553 * Returns the specified organization groups. 1554 * 1555 * @param organizations the organizations 1556 * @return the groups associated with the organizations 1557 */ 1558 @Override 1559 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups( 1560 java.util.List<com.liferay.portal.model.Organization> organizations) { 1561 return _groupLocalService.getOrganizationsGroups(organizations); 1562 } 1563 1564 /** 1565 * Returns all the groups related to the organizations. 1566 * 1567 * @param organizations the organizations 1568 * @return the groups related to the organizations 1569 * @throws SystemException if a system exception occurred 1570 */ 1571 @Override 1572 public java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups( 1573 java.util.List<com.liferay.portal.model.Organization> organizations) 1574 throws com.liferay.portal.kernel.exception.SystemException { 1575 return _groupLocalService.getOrganizationsRelatedGroups(organizations); 1576 } 1577 1578 /** 1579 * Returns the group followed by all its parent groups ordered by closest 1580 * ancestor. 1581 * 1582 * @param groupId the primary key of the group 1583 * @return the group followed by all its parent groups ordered by closest 1584 ancestor 1585 * @throws PortalException if a group with the primary key could not be 1586 found 1587 * @throws SystemException if a system exception occurred 1588 */ 1589 @Override 1590 public java.util.List<com.liferay.portal.model.Group> getParentGroups( 1591 long groupId) 1592 throws com.liferay.portal.kernel.exception.PortalException, 1593 com.liferay.portal.kernel.exception.SystemException { 1594 return _groupLocalService.getParentGroups(groupId); 1595 } 1596 1597 /** 1598 * Returns the staging group. 1599 * 1600 * @param liveGroupId the primary key of the live group 1601 * @return the staging group 1602 * @throws PortalException if a matching staging group could not be found 1603 * @throws SystemException if a system exception occurred 1604 */ 1605 @Override 1606 public com.liferay.portal.model.Group getStagingGroup(long liveGroupId) 1607 throws com.liferay.portal.kernel.exception.PortalException, 1608 com.liferay.portal.kernel.exception.SystemException { 1609 return _groupLocalService.getStagingGroup(liveGroupId); 1610 } 1611 1612 /** 1613 * Returns the group associated with the user. 1614 * 1615 * @param companyId the primary key of the company 1616 * @param userId the primary key of the user 1617 * @return the group associated with the user 1618 * @throws PortalException if a matching group could not be found 1619 * @throws SystemException if a system exception occurred 1620 */ 1621 @Override 1622 public com.liferay.portal.model.Group getUserGroup(long companyId, 1623 long userId) 1624 throws com.liferay.portal.kernel.exception.PortalException, 1625 com.liferay.portal.kernel.exception.SystemException { 1626 return _groupLocalService.getUserGroup(companyId, userId); 1627 } 1628 1629 /** 1630 * Returns the specified "user group" group. That is, the group that 1631 * represents the {@link com.liferay.portal.model.UserGroup} entity. 1632 * 1633 * @param companyId the primary key of the company 1634 * @param userGroupId the primary key of the user group 1635 * @return the group associated with the user group 1636 * @throws PortalException if a matching group could not be found 1637 * @throws SystemException if a system exception occurred 1638 */ 1639 @Override 1640 public com.liferay.portal.model.Group getUserGroupGroup(long companyId, 1641 long userGroupId) 1642 throws com.liferay.portal.kernel.exception.PortalException, 1643 com.liferay.portal.kernel.exception.SystemException { 1644 return _groupLocalService.getUserGroupGroup(companyId, userGroupId); 1645 } 1646 1647 /** 1648 * Returns all the user's site groups and immediate organization groups, 1649 * optionally including the user's inherited organization groups and user 1650 * groups. System and staged groups are not included. 1651 * 1652 * @param userId the primary key of the user 1653 * @param inherit whether to include the user's inherited organization 1654 groups and user groups 1655 * @return the user's groups and immediate organization groups 1656 * @throws PortalException if a user with the primary key could not be found 1657 * @throws SystemException if a system exception occurred 1658 */ 1659 @Override 1660 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 1661 long userId, boolean inherit) 1662 throws com.liferay.portal.kernel.exception.PortalException, 1663 com.liferay.portal.kernel.exception.SystemException { 1664 return _groupLocalService.getUserGroups(userId, inherit); 1665 } 1666 1667 /** 1668 * Returns an ordered range of all the user's site groups and immediate 1669 * organization groups, optionally including the user's inherited 1670 * organization groups and user groups. System and staged groups are not 1671 * included. 1672 * 1673 * <p> 1674 * Useful when paginating results. Returns a maximum of <code>end - 1675 * start</code> instances. <code>start</code> and <code>end</code> are not 1676 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1677 * refers to the first result in the set. Setting both <code>start</code> 1678 * and <code>end</code> to {@link 1679 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1680 * result set. 1681 * </p> 1682 * 1683 * @param userId the primary key of the user 1684 * @param inherit whether to include the user's inherited organization 1685 groups and user groups 1686 * @param start the lower bound of the range of groups to return 1687 * @param end the upper bound of the range of groups to return (not 1688 inclusive) 1689 * @return the range of the user's groups and immediate organization groups 1690 ordered by name 1691 * @throws PortalException if a user with the primary key could not be found 1692 * @throws SystemException if a system exception occurred 1693 */ 1694 @Override 1695 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 1696 long userId, boolean inherit, int start, int end) 1697 throws com.liferay.portal.kernel.exception.PortalException, 1698 com.liferay.portal.kernel.exception.SystemException { 1699 return _groupLocalService.getUserGroups(userId, inherit, start, end); 1700 } 1701 1702 /** 1703 * Returns the groups associated with the user groups. 1704 * 1705 * @param userGroups the user groups 1706 * @return the groups associated with the user groups 1707 * @throws PortalException if any one of the user group's group could not be 1708 found 1709 * @throws SystemException if a system exception occurred 1710 */ 1711 @Override 1712 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups( 1713 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 1714 throws com.liferay.portal.kernel.exception.PortalException, 1715 com.liferay.portal.kernel.exception.SystemException { 1716 return _groupLocalService.getUserGroupsGroups(userGroups); 1717 } 1718 1719 /** 1720 * Returns all the groups related to the user groups. 1721 * 1722 * @param userGroups the user groups 1723 * @return the groups related to the user groups 1724 * @throws SystemException if a system exception occurred 1725 */ 1726 @Override 1727 public java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups( 1728 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 1729 throws com.liferay.portal.kernel.exception.SystemException { 1730 return _groupLocalService.getUserGroupsRelatedGroups(userGroups); 1731 } 1732 1733 /** 1734 * Returns the range of all groups associated with the user's organization 1735 * groups, including the ancestors of the organization groups, unless portal 1736 * property <code>organizations.membership.strict</code> is set to 1737 * <code>true</code>. 1738 * 1739 * <p> 1740 * Useful when paginating results. Returns a maximum of <code>end - 1741 * start</code> instances. <code>start</code> and <code>end</code> are not 1742 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1743 * refers to the first result in the set. Setting both <code>start</code> 1744 * and <code>end</code> to {@link 1745 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1746 * result set. 1747 * </p> 1748 * 1749 * @param userId the primary key of the user 1750 * @param start the lower bound of the range of groups to consider 1751 * @param end the upper bound of the range of groups to consider (not 1752 inclusive) 1753 * @return the range of groups associated with the user's organization 1754 groups 1755 * @throws PortalException if a user with the primary key could not be found 1756 or if another portal exception occurred 1757 * @throws SystemException if a system exception occurred 1758 */ 1759 @Override 1760 public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups( 1761 long userId, int start, int end) 1762 throws com.liferay.portal.kernel.exception.PortalException, 1763 com.liferay.portal.kernel.exception.SystemException { 1764 return _groupLocalService.getUserOrganizationsGroups(userId, start, end); 1765 } 1766 1767 @Override 1768 public com.liferay.portal.model.Group getUserPersonalSiteGroup( 1769 long companyId) 1770 throws com.liferay.portal.kernel.exception.PortalException, 1771 com.liferay.portal.kernel.exception.SystemException { 1772 return _groupLocalService.getUserPersonalSiteGroup(companyId); 1773 } 1774 1775 @Override 1776 public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups( 1777 long userId) 1778 throws com.liferay.portal.kernel.exception.PortalException, 1779 com.liferay.portal.kernel.exception.SystemException { 1780 return _groupLocalService.getUserSitesGroups(userId); 1781 } 1782 1783 @Override 1784 public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups( 1785 long userId, boolean includeAdministrative) 1786 throws com.liferay.portal.kernel.exception.PortalException, 1787 com.liferay.portal.kernel.exception.SystemException { 1788 return _groupLocalService.getUserSitesGroups(userId, 1789 includeAdministrative); 1790 } 1791 1792 /** 1793 * Returns <code>true</code> if the live group has a staging group. 1794 * 1795 * @param liveGroupId the primary key of the live group 1796 * @return <code>true</code> if the live group has a staging group; 1797 <code>false</code> otherwise 1798 * @throws SystemException if a system exception occurred 1799 */ 1800 @Override 1801 public boolean hasStagingGroup(long liveGroupId) 1802 throws com.liferay.portal.kernel.exception.SystemException { 1803 return _groupLocalService.hasStagingGroup(liveGroupId); 1804 } 1805 1806 /** 1807 * Returns <code>true</code> if the user is immediately associated with the 1808 * group, or optionally if the user is associated with the group via the 1809 * user's organizations, inherited organizations, or user groups. 1810 * 1811 * @param userId the primary key of the user 1812 * @param groupId the primary key of the group 1813 * @param inherit whether to include organization groups and user groups to 1814 which the user belongs in the determination 1815 * @return <code>true</code> if the user is associated with the group; 1816 <code>false</code> otherwise 1817 * @throws SystemException if a system exception occurred 1818 */ 1819 @Override 1820 public boolean hasUserGroup(long userId, long groupId, boolean inherit) 1821 throws com.liferay.portal.kernel.exception.SystemException { 1822 return _groupLocalService.hasUserGroup(userId, groupId, inherit); 1823 } 1824 1825 /** 1826 * Returns the group with the matching group name by first searching the 1827 * system groups and then using the finder cache. 1828 * 1829 * @param companyId the primary key of the company 1830 * @param name the group's name 1831 * @return the group with the name and associated company, or 1832 <code>null</code> if a matching group could not be found 1833 * @throws SystemException if a system exception occurred 1834 */ 1835 @Override 1836 public com.liferay.portal.model.Group loadFetchGroup(long companyId, 1837 java.lang.String name) 1838 throws com.liferay.portal.kernel.exception.SystemException { 1839 return _groupLocalService.loadFetchGroup(companyId, name); 1840 } 1841 1842 /** 1843 * Returns the group with the matching group name. 1844 * 1845 * @param companyId the primary key of the company 1846 * @param name the group's name 1847 * @return the group with the name and associated company 1848 * @throws PortalException if a matching group could not be found 1849 * @throws SystemException if a system exception occurred 1850 */ 1851 @Override 1852 public com.liferay.portal.model.Group loadGetGroup(long companyId, 1853 java.lang.String name) 1854 throws com.liferay.portal.kernel.exception.PortalException, 1855 com.liferay.portal.kernel.exception.SystemException { 1856 return _groupLocalService.loadGetGroup(companyId, name); 1857 } 1858 1859 /** 1860 * Rebuilds the group tree. 1861 * 1862 * <p> 1863 * Only call this method if the tree has become stale through operations 1864 * other than normal CRUD. Under normal circumstances the tree is 1865 * automatically rebuilt whenever necessary. 1866 * </p> 1867 * 1868 * @param companyId the primary key of the group's company 1869 * @throws PortalException if a group with the primary key could not be 1870 found 1871 * @throws SystemException if a system exception occurred 1872 */ 1873 @Override 1874 public void rebuildTree(long companyId) 1875 throws com.liferay.portal.kernel.exception.PortalException, 1876 com.liferay.portal.kernel.exception.SystemException { 1877 _groupLocalService.rebuildTree(companyId); 1878 } 1879 1880 /** 1881 * Returns an ordered range of all the company's groups, optionally 1882 * including the user's inherited organization groups and user groups. 1883 * System and staged groups are not included. 1884 * 1885 * <p> 1886 * Useful when paginating results. Returns a maximum of <code>end - 1887 * start</code> instances. <code>start</code> and <code>end</code> are not 1888 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1889 * refers to the first result in the set. Setting both <code>start</code> 1890 * and <code>end</code> to {@link 1891 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1892 * result set. 1893 * </p> 1894 * 1895 * @param companyId the primary key of the company 1896 * @param params the finder params (optionally <code>null</code>). To 1897 include a user's organizations, inherited organizations, and user 1898 groups in the search, add an entry with key 1899 "usersGroups" mapped to the user's ID and an entry with 1900 key "inherit" mapped to a non-<code>null</code> object. 1901 For more information see {@link 1902 com.liferay.portal.service.persistence.GroupFinder} 1903 * @param start the lower bound of the range of groups to return 1904 * @param end the upper bound of the range of groups to return (not 1905 inclusive) 1906 * @return the matching groups ordered by name 1907 * @throws SystemException if a system exception occurred 1908 */ 1909 @Override 1910 public java.util.List<com.liferay.portal.model.Group> search( 1911 long companyId, 1912 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1913 int start, int end) 1914 throws com.liferay.portal.kernel.exception.SystemException { 1915 return _groupLocalService.search(companyId, params, start, end); 1916 } 1917 1918 /** 1919 * Returns an ordered range of all the groups belonging to the parent group 1920 * that match the keywords, optionally including the user's inherited 1921 * organization groups and user groups. System and staged groups are not 1922 * included. 1923 * 1924 * <p> 1925 * Useful when paginating results. Returns a maximum of <code>end - 1926 * start</code> instances. <code>start</code> and <code>end</code> are not 1927 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1928 * refers to the first result in the set. Setting both <code>start</code> 1929 * and <code>end</code> to {@link 1930 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1931 * result set. 1932 * </p> 1933 * 1934 * @param companyId the primary key of the company 1935 * @param parentGroupId the primary key of the parent group 1936 * @param keywords the keywords (space separated), which may occur in the 1937 sites's name, or description (optionally <code>null</code>) 1938 * @param params the finder params (optionally <code>null</code>). To 1939 include the user's inherited organizations and user groups in the 1940 search, add entries having "usersGroups" and 1941 "inherit" as keys mapped to the the user's ID. For more 1942 information see {@link 1943 com.liferay.portal.service.persistence.GroupFinder} 1944 * @param start the lower bound of the range of groups to return 1945 * @param end the upper bound of the range of groups to return (not 1946 inclusive) 1947 * @return the matching groups ordered by name 1948 * @throws SystemException if a system exception occurred 1949 */ 1950 @Override 1951 public java.util.List<com.liferay.portal.model.Group> search( 1952 long companyId, long parentGroupId, java.lang.String keywords, 1953 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1954 int start, int end) 1955 throws com.liferay.portal.kernel.exception.SystemException { 1956 return _groupLocalService.search(companyId, parentGroupId, keywords, 1957 params, start, end); 1958 } 1959 1960 /** 1961 * Returns an ordered range of all the groups belonging to the parent group 1962 * that match the keywords, optionally including the user's inherited 1963 * organization groups and user groups. System and staged groups are not 1964 * included. 1965 * 1966 * <p> 1967 * Useful when paginating results. Returns a maximum of <code>end - 1968 * start</code> instances. <code>start</code> and <code>end</code> are not 1969 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1970 * refers to the first result in the set. Setting both <code>start</code> 1971 * and <code>end</code> to {@link 1972 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1973 * result set. 1974 * </p> 1975 * 1976 * @param companyId the primary key of the company 1977 * @param parentGroupId the primary key of the parent group 1978 * @param keywords the keywords (space separated), which may occur in the 1979 sites's name, or description (optionally <code>null</code>) 1980 * @param params the finder params (optionally <code>null</code>). To 1981 include the user's inherited organizations and user groups in the 1982 search, add entries having "usersGroups" and 1983 "inherit" as keys mapped to the the user's ID. For more 1984 information see {@link 1985 com.liferay.portal.service.persistence.GroupFinder} 1986 * @param start the lower bound of the range of groups to return 1987 * @param end the upper bound of the range of groups to return (not 1988 inclusive) 1989 * @param obc the comparator to order the groups (optionally 1990 <code>null</code>) 1991 * @return the matching groups ordered by comparator <code>obc</code> 1992 * @throws SystemException if a system exception occurred 1993 */ 1994 @Override 1995 public java.util.List<com.liferay.portal.model.Group> search( 1996 long companyId, long parentGroupId, java.lang.String keywords, 1997 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1998 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 1999 throws com.liferay.portal.kernel.exception.SystemException { 2000 return _groupLocalService.search(companyId, parentGroupId, keywords, 2001 params, start, end, obc); 2002 } 2003 2004 /** 2005 * Returns an ordered range of all the site groups belonging to the parent 2006 * group and organization groups that match the name and description, 2007 * optionally including the user's inherited organization groups and user 2008 * groups. System and staged groups are not included. 2009 * 2010 * <p> 2011 * Useful when paginating results. Returns a maximum of <code>end - 2012 * start</code> instances. <code>start</code> and <code>end</code> are not 2013 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2014 * refers to the first result in the set. Setting both <code>start</code> 2015 * and <code>end</code> to {@link 2016 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2017 * result set. 2018 * </p> 2019 * 2020 * @param companyId the primary key of the company 2021 * @param parentGroupId the primary key of the parent group 2022 * @param name the group's name (optionally <code>null</code>) 2023 * @param description the group's description (optionally 2024 <code>null</code>) 2025 * @param params the finder params (optionally <code>null</code>). To 2026 include the user's inherited organizations and user groups in the 2027 search, add entries having "usersGroups" and 2028 "inherit" as keys mapped to the the user's ID. For more 2029 information see {@link 2030 com.liferay.portal.service.persistence.GroupFinder} 2031 * @param andOperator whether every field must match its keywords, or just 2032 one field. 2033 * @param start the lower bound of the range of groups to return 2034 * @param end the upper bound of the range of groups to return (not 2035 inclusive) 2036 * @return the matching groups ordered by name 2037 * @throws SystemException if a system exception occurred 2038 */ 2039 @Override 2040 public java.util.List<com.liferay.portal.model.Group> search( 2041 long companyId, long parentGroupId, java.lang.String name, 2042 java.lang.String description, 2043 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2044 boolean andOperator, int start, int end) 2045 throws com.liferay.portal.kernel.exception.SystemException { 2046 return _groupLocalService.search(companyId, parentGroupId, name, 2047 description, params, andOperator, start, end); 2048 } 2049 2050 /** 2051 * Returns an ordered range of all the site groups belonging to the parent 2052 * group and organization groups that match the name and description, 2053 * optionally including the user's inherited organization groups and user 2054 * groups. System and staged groups are not included. 2055 * 2056 * <p> 2057 * Useful when paginating results. Returns a maximum of <code>end - 2058 * start</code> instances. <code>start</code> and <code>end</code> are not 2059 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2060 * refers to the first result in the set. Setting both <code>start</code> 2061 * and <code>end</code> to {@link 2062 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2063 * result set. 2064 * </p> 2065 * 2066 * @param companyId the primary key of the company 2067 * @param parentGroupId the primary key of the parent group 2068 * @param name the group's name (optionally <code>null</code>) 2069 * @param description the group's description (optionally 2070 <code>null</code>) 2071 * @param params the finder params (optionally <code>null</code>). To 2072 include the user's inherited organizations and user groups in the 2073 search, add entries having "usersGroups" and 2074 "inherit" as keys mapped to the the user's ID. For more 2075 information see {@link 2076 com.liferay.portal.service.persistence.GroupFinder} 2077 * @param andOperator whether every field must match its keywords, or just 2078 one field. 2079 * @param start the lower bound of the range of groups to return 2080 * @param end the upper bound of the range of groups to return (not 2081 inclusive) 2082 * @param obc the comparator to order the groups (optionally 2083 <code>null</code>) 2084 * @return the matching groups ordered by comparator <code>obc</code> 2085 * @throws SystemException if a system exception occurred 2086 */ 2087 @Override 2088 public java.util.List<com.liferay.portal.model.Group> search( 2089 long companyId, long parentGroupId, java.lang.String name, 2090 java.lang.String description, 2091 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2092 boolean andOperator, int start, int end, 2093 com.liferay.portal.kernel.util.OrderByComparator obc) 2094 throws com.liferay.portal.kernel.exception.SystemException { 2095 return _groupLocalService.search(companyId, parentGroupId, name, 2096 description, params, andOperator, start, end, obc); 2097 } 2098 2099 /** 2100 * Returns an ordered range of all the groups belonging to the parent group 2101 * that match the class name IDs and keywords, optionally including the 2102 * user's inherited organization groups and user groups. System and staged 2103 * groups are not included. 2104 * 2105 * <p> 2106 * Useful when paginating results. Returns a maximum of <code>end - 2107 * start</code> instances. <code>start</code> and <code>end</code> are not 2108 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2109 * refers to the first result in the set. Setting both <code>start</code> 2110 * and <code>end</code> to {@link 2111 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2112 * result set. 2113 * </p> 2114 * 2115 * @param companyId the primary key of the company 2116 * @param classNameIds the primary keys of the class names of the entities 2117 the groups are related to (optionally <code>null</code>) 2118 * @param parentGroupId the primary key of the parent group 2119 * @param keywords the keywords (space separated), which may occur in the 2120 sites's name, or description (optionally <code>null</code>) 2121 * @param params the finder params (optionally <code>null</code>). To 2122 include a user's organizations, inherited organizations, and user 2123 groups in the search, add an entry with key 2124 "usersGroups" mapped to the user's ID and an entry with 2125 key "inherit" mapped to a non-<code>null</code> object. 2126 For more information see {@link 2127 com.liferay.portal.service.persistence.GroupFinder} 2128 * @param start the lower bound of the range of groups to return 2129 * @param end the upper bound of the range of groups to return (not 2130 inclusive) 2131 * @return the matching groups ordered by name 2132 * @throws SystemException if a system exception occurred 2133 */ 2134 @Override 2135 public java.util.List<com.liferay.portal.model.Group> search( 2136 long companyId, long[] classNameIds, long parentGroupId, 2137 java.lang.String keywords, 2138 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2139 int start, int end) 2140 throws com.liferay.portal.kernel.exception.SystemException { 2141 return _groupLocalService.search(companyId, classNameIds, 2142 parentGroupId, keywords, params, start, end); 2143 } 2144 2145 /** 2146 * Returns an ordered range of all the groups belonging to the parent group 2147 * that match the class name IDs and keywords, optionally including the 2148 * user's inherited organization groups and user groups. System and staged 2149 * groups are not included. 2150 * 2151 * <p> 2152 * Useful when paginating results. Returns a maximum of <code>end - 2153 * start</code> instances. <code>start</code> and <code>end</code> are not 2154 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2155 * refers to the first result in the set. Setting both <code>start</code> 2156 * and <code>end</code> to {@link 2157 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2158 * result set. 2159 * </p> 2160 * 2161 * @param companyId the primary key of the company 2162 * @param classNameIds the primary keys of the class names of the entities 2163 the groups are related to (optionally <code>null</code>) 2164 * @param parentGroupId the primary key of the parent group 2165 * @param keywords the keywords (space separated), which may occur in the 2166 sites's name, or description (optionally <code>null</code>) 2167 * @param params the finder params (optionally <code>null</code>). To 2168 include a user's organizations, inherited organizations, and user 2169 groups in the search, add an entry with key 2170 "usersGroups" mapped to the user's ID and an entry with 2171 key "inherit" mapped to a non-<code>null</code> object. 2172 For more information see {@link 2173 com.liferay.portal.service.persistence.GroupFinder} 2174 * @param start the lower bound of the range of groups to return 2175 * @param end the upper bound of the range of groups to return (not 2176 inclusive) 2177 * @param obc the comparator to order the groups (optionally 2178 <code>null</code>) 2179 * @return the matching groups ordered by comparator <code>obc</code> 2180 * @throws SystemException if a system exception occurred 2181 */ 2182 @Override 2183 public java.util.List<com.liferay.portal.model.Group> search( 2184 long companyId, long[] classNameIds, long parentGroupId, 2185 java.lang.String keywords, 2186 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2187 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 2188 throws com.liferay.portal.kernel.exception.SystemException { 2189 return _groupLocalService.search(companyId, classNameIds, 2190 parentGroupId, keywords, params, start, end, obc); 2191 } 2192 2193 /** 2194 * Returns an ordered range of all the groups belonging to the parent group 2195 * that match the class name IDs, name, and description, optionally 2196 * including the user's inherited organization groups and user groups. 2197 * System and staged groups are not included. 2198 * 2199 * <p> 2200 * Useful when paginating results. Returns a maximum of <code>end - 2201 * start</code> instances. <code>start</code> and <code>end</code> are not 2202 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2203 * refers to the first result in the set. Setting both <code>start</code> 2204 * and <code>end</code> to {@link 2205 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2206 * result set. 2207 * </p> 2208 * 2209 * @param companyId the primary key of the company 2210 * @param classNameIds the primary keys of the class names of the entities 2211 the groups are related to (optionally <code>null</code>) 2212 * @param parentGroupId the primary key of the parent group 2213 * @param name the group's name (optionally <code>null</code>) 2214 * @param description the group's description (optionally 2215 <code>null</code>) 2216 * @param params the finder params (optionally <code>null</code>). To 2217 include a user's organizations, inherited organizations, and user 2218 groups in the search, add an entry with key 2219 "usersGroups" mapped to the user's ID and an entry with 2220 key "inherit" mapped to a non-<code>null</code> object. 2221 For more information see {@link 2222 com.liferay.portal.service.persistence.GroupFinder} 2223 * @param andOperator whether every field must match its keywords, or just 2224 one field. 2225 * @param start the lower bound of the range of groups to return 2226 * @param end the upper bound of the range of groups to return (not 2227 inclusive) 2228 * @return the matching groups ordered by name 2229 * @throws SystemException if a system exception occurred 2230 */ 2231 @Override 2232 public java.util.List<com.liferay.portal.model.Group> search( 2233 long companyId, long[] classNameIds, long parentGroupId, 2234 java.lang.String name, java.lang.String description, 2235 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2236 boolean andOperator, int start, int end) 2237 throws com.liferay.portal.kernel.exception.SystemException { 2238 return _groupLocalService.search(companyId, classNameIds, 2239 parentGroupId, name, description, params, andOperator, start, end); 2240 } 2241 2242 /** 2243 * Returns an ordered range of all the groups belonging to the parent group 2244 * that match the class name IDs, name, and description, optionally 2245 * including the user's inherited organization groups and user groups. 2246 * System and staged groups are not included. 2247 * 2248 * <p> 2249 * Useful when paginating results. Returns a maximum of <code>end - 2250 * start</code> instances. <code>start</code> and <code>end</code> are not 2251 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2252 * refers to the first result in the set. Setting both <code>start</code> 2253 * and <code>end</code> to {@link 2254 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2255 * result set. 2256 * </p> 2257 * 2258 * @param companyId the primary key of the company 2259 * @param classNameIds the primary keys of the class names of the entities 2260 the groups are related to (optionally <code>null</code>) 2261 * @param parentGroupId the primary key of the parent group 2262 * @param name the group's name (optionally <code>null</code>) 2263 * @param description the group's description (optionally 2264 <code>null</code>) 2265 * @param params the finder params (optionally <code>null</code>). To 2266 include a user's organizations, inherited organizations, and user 2267 groups in the search, add an entry with key 2268 "usersGroups" mapped to the user's ID and an entry with 2269 key "inherit" mapped to a non-<code>null</code> object. 2270 For more information see {@link 2271 com.liferay.portal.service.persistence.GroupFinder} 2272 * @param andOperator whether every field must match its keywords, or just 2273 one field. 2274 * @param start the lower bound of the range of groups to return 2275 * @param end the upper bound of the range of groups to return (not 2276 inclusive) 2277 * @param obc the comparator to order the groups (optionally 2278 <code>null</code>) 2279 * @return the matching groups ordered by comparator <code>obc</code> 2280 * @throws SystemException if a system exception occurred 2281 */ 2282 @Override 2283 public java.util.List<com.liferay.portal.model.Group> search( 2284 long companyId, long[] classNameIds, long parentGroupId, 2285 java.lang.String name, java.lang.String description, 2286 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2287 boolean andOperator, int start, int end, 2288 com.liferay.portal.kernel.util.OrderByComparator obc) 2289 throws com.liferay.portal.kernel.exception.SystemException { 2290 return _groupLocalService.search(companyId, classNameIds, 2291 parentGroupId, name, description, params, andOperator, start, end, 2292 obc); 2293 } 2294 2295 /** 2296 * Returns an ordered range of all the groups that match the class name IDs 2297 * and keywords, optionally including the user's inherited organization 2298 * groups and user groups. System and staged groups are not included. 2299 * 2300 * <p> 2301 * Useful when paginating results. Returns a maximum of <code>end - 2302 * start</code> instances. <code>start</code> and <code>end</code> are not 2303 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2304 * refers to the first result in the set. Setting both <code>start</code> 2305 * and <code>end</code> to {@link 2306 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2307 * result set. 2308 * </p> 2309 * 2310 * @param companyId the primary key of the company 2311 * @param classNameIds the primary keys of the class names of the entities 2312 the groups are related to (optionally <code>null</code>) 2313 * @param keywords the keywords (space separated), which may occur in the 2314 sites's name, or description (optionally <code>null</code>) 2315 * @param params the finder params (optionally <code>null</code>). To 2316 include a user's organizations, inherited organizations, and user 2317 groups in the search, add an entry with key 2318 "usersGroups" mapped to the user's ID and an entry with 2319 key "inherit" mapped to a non-<code>null</code> object. 2320 For more information see {@link 2321 com.liferay.portal.service.persistence.GroupFinder} 2322 * @param start the lower bound of the range of groups to return 2323 * @param end the upper bound of the range of groups to return (not 2324 inclusive) 2325 * @return the matching groups ordered by name 2326 * @throws SystemException if a system exception occurred 2327 */ 2328 @Override 2329 public java.util.List<com.liferay.portal.model.Group> search( 2330 long companyId, long[] classNameIds, java.lang.String keywords, 2331 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2332 int start, int end) 2333 throws com.liferay.portal.kernel.exception.SystemException { 2334 return _groupLocalService.search(companyId, classNameIds, keywords, 2335 params, start, end); 2336 } 2337 2338 /** 2339 * Returns an ordered range of all the groups that match the class name IDs 2340 * and keywords, optionally including the user's inherited organization 2341 * groups and user groups. System and staged groups are not included. 2342 * 2343 * <p> 2344 * Useful when paginating results. Returns a maximum of <code>end - 2345 * start</code> instances. <code>start</code> and <code>end</code> are not 2346 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2347 * refers to the first result in the set. Setting both <code>start</code> 2348 * and <code>end</code> to {@link 2349 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2350 * result set. 2351 * </p> 2352 * 2353 * @param companyId the primary key of the company 2354 * @param classNameIds the primary keys of the class names of the entities 2355 the groups are related to (optionally <code>null</code>) 2356 * @param keywords the keywords (space separated), which may occur in the 2357 sites's name, or description (optionally <code>null</code>) 2358 * @param params the finder params (optionally <code>null</code>). To 2359 include a user's organizations, inherited organizations, and user 2360 groups in the search, add an entry with key 2361 "usersGroups" mapped to the user's ID and an entry with 2362 key "inherit" mapped to a non-<code>null</code> object. 2363 For more information see {@link 2364 com.liferay.portal.service.persistence.GroupFinder} 2365 * @param start the lower bound of the range of groups to return 2366 * @param end the upper bound of the range of groups to return (not 2367 inclusive) 2368 * @param obc the comparator to order the groups (optionally 2369 <code>null</code>) 2370 * @return the matching groups ordered by comparator <code>obc</code> 2371 * @throws SystemException if a system exception occurred 2372 */ 2373 @Override 2374 public java.util.List<com.liferay.portal.model.Group> search( 2375 long companyId, long[] classNameIds, java.lang.String keywords, 2376 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2377 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 2378 throws com.liferay.portal.kernel.exception.SystemException { 2379 return _groupLocalService.search(companyId, classNameIds, keywords, 2380 params, start, end, obc); 2381 } 2382 2383 /** 2384 * Returns an ordered range of all the groups that match the class name IDs, 2385 * name, and description, optionally including the user's inherited 2386 * organization groups and user groups. System and staged groups are not 2387 * included. 2388 * 2389 * <p> 2390 * Useful when paginating results. Returns a maximum of <code>end - 2391 * start</code> instances. <code>start</code> and <code>end</code> are not 2392 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2393 * refers to the first result in the set. Setting both <code>start</code> 2394 * and <code>end</code> to {@link 2395 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2396 * result set. 2397 * </p> 2398 * 2399 * @param companyId the primary key of the company 2400 * @param classNameIds the primary keys of the class names of the entities 2401 the groups are related to (optionally <code>null</code>) 2402 * @param name the group's name (optionally <code>null</code>) 2403 * @param description the group's description (optionally 2404 <code>null</code>) 2405 * @param params the finder params (optionally <code>null</code>). To 2406 include a user's organizations, inherited organizations, and user 2407 groups in the search, add an entry with key 2408 "usersGroups" mapped to the user's ID and an entry with 2409 key "inherit" mapped to a non-<code>null</code> object. 2410 For more information see {@link 2411 com.liferay.portal.service.persistence.GroupFinder} 2412 * @param andOperator whether every field must match its keywords, or just 2413 one field. 2414 * @param start the lower bound of the range of groups to return 2415 * @param end the upper bound of the range of groups to return (not 2416 inclusive) 2417 * @return the matching groups ordered by name 2418 * @throws SystemException if a system exception occurred 2419 */ 2420 @Override 2421 public java.util.List<com.liferay.portal.model.Group> search( 2422 long companyId, long[] classNameIds, java.lang.String name, 2423 java.lang.String description, 2424 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2425 boolean andOperator, int start, int end) 2426 throws com.liferay.portal.kernel.exception.SystemException { 2427 return _groupLocalService.search(companyId, classNameIds, name, 2428 description, params, andOperator, start, end); 2429 } 2430 2431 /** 2432 * Returns an ordered range of all the groups that match the class name IDs, 2433 * name, and description, optionally including the user's inherited 2434 * organization groups and user groups. System and staged groups are not 2435 * included. 2436 * 2437 * <p> 2438 * Useful when paginating results. Returns a maximum of <code>end - 2439 * start</code> instances. <code>start</code> and <code>end</code> are not 2440 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2441 * refers to the first result in the set. Setting both <code>start</code> 2442 * and <code>end</code> to {@link 2443 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2444 * result set. 2445 * </p> 2446 * 2447 * @param companyId the primary key of the company 2448 * @param classNameIds the primary keys of the class names of the entities 2449 the groups are related to (optionally <code>null</code>) 2450 * @param name the group's name (optionally <code>null</code>) 2451 * @param description the group's description (optionally 2452 <code>null</code>) 2453 * @param params the finder params (optionally <code>null</code>). To 2454 include a user's organizations, inherited organizations, and user 2455 groups in the search, add an entry with key 2456 "usersGroups" mapped to the user's ID and an entry with 2457 key "inherit" mapped to a non-<code>null</code> object. 2458 For more information see {@link 2459 com.liferay.portal.service.persistence.GroupFinder} 2460 * @param andOperator whether every field must match its keywords, or just 2461 one field. 2462 * @param start the lower bound of the range of groups to return 2463 * @param end the upper bound of the range of groups to return (not 2464 inclusive) 2465 * @param obc the comparator to order the groups (optionally 2466 <code>null</code>) 2467 * @return the matching groups ordered by comparator <code>obc</code> 2468 * @throws SystemException if a system exception occurred 2469 */ 2470 @Override 2471 public java.util.List<com.liferay.portal.model.Group> search( 2472 long companyId, long[] classNameIds, java.lang.String name, 2473 java.lang.String description, 2474 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2475 boolean andOperator, int start, int end, 2476 com.liferay.portal.kernel.util.OrderByComparator obc) 2477 throws com.liferay.portal.kernel.exception.SystemException { 2478 return _groupLocalService.search(companyId, classNameIds, name, 2479 description, params, andOperator, start, end, obc); 2480 } 2481 2482 /** 2483 * Returns an ordered range of all the groups that match the keywords, 2484 * optionally including the user's inherited organization groups and user 2485 * groups. System and staged groups are not included. 2486 * 2487 * <p> 2488 * Useful when paginating results. Returns a maximum of <code>end - 2489 * start</code> instances. <code>start</code> and <code>end</code> are not 2490 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2491 * refers to the first result in the set. Setting both <code>start</code> 2492 * and <code>end</code> to {@link 2493 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2494 * result set. 2495 * </p> 2496 * 2497 * @param companyId the primary key of the company 2498 * @param keywords the keywords (space separated), which may occur in the 2499 sites's name, or description (optionally <code>null</code>) 2500 * @param params the finder params (optionally <code>null</code>). To 2501 include the user's inherited organizations and user groups in the 2502 search, add entries having "usersGroups" and 2503 "inherit" as keys mapped to the the user's ID. For more 2504 information see {@link 2505 com.liferay.portal.service.persistence.GroupFinder} 2506 * @param start the lower bound of the range of groups to return 2507 * @param end the upper bound of the range of groups to return (not 2508 inclusive) 2509 * @return the matching groups ordered by name 2510 * @throws SystemException if a system exception occurred 2511 */ 2512 @Override 2513 public java.util.List<com.liferay.portal.model.Group> search( 2514 long companyId, java.lang.String keywords, 2515 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2516 int start, int end) 2517 throws com.liferay.portal.kernel.exception.SystemException { 2518 return _groupLocalService.search(companyId, keywords, params, start, end); 2519 } 2520 2521 /** 2522 * Returns an ordered range of all the groups that match the keywords, 2523 * optionally including the user's inherited organization groups and user 2524 * groups. System and staged groups are not included. 2525 * 2526 * <p> 2527 * Useful when paginating results. Returns a maximum of <code>end - 2528 * start</code> instances. <code>start</code> and <code>end</code> are not 2529 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2530 * refers to the first result in the set. Setting both <code>start</code> 2531 * and <code>end</code> to {@link 2532 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2533 * result set. 2534 * </p> 2535 * 2536 * @param companyId the primary key of the company 2537 * @param keywords the keywords (space separated), which may occur in the 2538 sites's name, or description (optionally <code>null</code>) 2539 * @param params the finder params (optionally <code>null</code>). To 2540 include the user's inherited organizations and user groups in the 2541 search, add entries having "usersGroups" and 2542 "inherit" as keys mapped to the the user's ID. For more 2543 information see {@link 2544 com.liferay.portal.service.persistence.GroupFinder} 2545 * @param start the lower bound of the range of groups to return 2546 * @param end the upper bound of the range of groups to return (not 2547 inclusive) 2548 * @param obc the comparator to order the groups (optionally 2549 <code>null</code>) 2550 * @return the matching groups ordered by comparator <code>obc</code> 2551 * @throws SystemException if a system exception occurred 2552 */ 2553 @Override 2554 public java.util.List<com.liferay.portal.model.Group> search( 2555 long companyId, java.lang.String keywords, 2556 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2557 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 2558 throws com.liferay.portal.kernel.exception.SystemException { 2559 return _groupLocalService.search(companyId, keywords, params, start, 2560 end, obc); 2561 } 2562 2563 /** 2564 * Returns an ordered range of all the site groups and organization groups 2565 * that match the name and description, optionally including the user's 2566 * inherited organization groups and user groups. System and staged groups 2567 * are not included. 2568 * 2569 * <p> 2570 * Useful when paginating results. Returns a maximum of <code>end - 2571 * start</code> instances. <code>start</code> and <code>end</code> are not 2572 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2573 * refers to the first result in the set. Setting both <code>start</code> 2574 * and <code>end</code> to {@link 2575 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2576 * result set. 2577 * </p> 2578 * 2579 * @param companyId the primary key of the company 2580 * @param name the group's name (optionally <code>null</code>) 2581 * @param description the group's description (optionally 2582 <code>null</code>) 2583 * @param params the finder params (optionally <code>null</code>). To 2584 include the user's inherited organizations and user groups in the 2585 search, add entries having "usersGroups" and 2586 "inherit" as keys mapped to the the user's ID. For more 2587 information see {@link 2588 com.liferay.portal.service.persistence.GroupFinder} 2589 * @param andOperator whether every field must match its keywords, or just 2590 one field. 2591 * @param start the lower bound of the range of groups to return 2592 * @param end the upper bound of the range of groups to return (not 2593 inclusive) 2594 * @return the matching groups ordered by name 2595 * @throws SystemException if a system exception occurred 2596 */ 2597 @Override 2598 public java.util.List<com.liferay.portal.model.Group> search( 2599 long companyId, java.lang.String name, java.lang.String description, 2600 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2601 boolean andOperator, int start, int end) 2602 throws com.liferay.portal.kernel.exception.SystemException { 2603 return _groupLocalService.search(companyId, name, description, params, 2604 andOperator, start, end); 2605 } 2606 2607 /** 2608 * Returns an ordered range of all the site groups and organization groups 2609 * that match the name and description, optionally including the user's 2610 * inherited organization groups and user groups. System and staged groups 2611 * are not included. 2612 * 2613 * <p> 2614 * Useful when paginating results. Returns a maximum of <code>end - 2615 * start</code> instances. <code>start</code> and <code>end</code> are not 2616 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2617 * refers to the first result in the set. Setting both <code>start</code> 2618 * and <code>end</code> to {@link 2619 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 2620 * result set. 2621 * </p> 2622 * 2623 * @param companyId the primary key of the company 2624 * @param name the group's name (optionally <code>null</code>) 2625 * @param description the group's description (optionally 2626 <code>null</code>) 2627 * @param params the finder params (optionally <code>null</code>). To 2628 include the user's inherited organizations and user groups in the 2629 search, add entries having "usersGroups" and 2630 "inherit" as keys mapped to the the user's ID. For more 2631 information see {@link 2632 com.liferay.portal.service.persistence.GroupFinder} 2633 * @param andOperator whether every field must match its keywords, or just 2634 one field. 2635 * @param start the lower bound of the range of groups to return 2636 * @param end the upper bound of the range of groups to return (not 2637 inclusive) 2638 * @param obc the comparator to order the groups (optionally 2639 <code>null</code>) 2640 * @return the matching groups ordered by comparator <code>obc</code> 2641 * @throws SystemException if a system exception occurred 2642 */ 2643 @Override 2644 public java.util.List<com.liferay.portal.model.Group> search( 2645 long companyId, java.lang.String name, java.lang.String description, 2646 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2647 boolean andOperator, int start, int end, 2648 com.liferay.portal.kernel.util.OrderByComparator obc) 2649 throws com.liferay.portal.kernel.exception.SystemException { 2650 return _groupLocalService.search(companyId, name, description, params, 2651 andOperator, start, end, obc); 2652 } 2653 2654 /** 2655 * Returns the number of groups belonging to the parent group that match the 2656 * keywords, optionally including the user's inherited organization groups 2657 * and user groups. System and staged groups are not included. 2658 * 2659 * @param companyId the primary key of the company 2660 * @param parentGroupId the primary key of the parent group 2661 * @param keywords the keywords (space separated), which may occur in the 2662 sites's name, or description (optionally <code>null</code>) 2663 * @param params the finder params (optionally <code>null</code>). To 2664 include the user's inherited organization groups and user groups 2665 in the search, add entries having "usersGroups" and 2666 "inherit" as keys mapped to the the user's ID. For more 2667 information see {@link 2668 com.liferay.portal.service.persistence.GroupFinder} 2669 * @return the number of matching groups 2670 * @throws SystemException if a system exception occurred 2671 */ 2672 @Override 2673 public int searchCount(long companyId, long parentGroupId, 2674 java.lang.String keywords, 2675 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 2676 throws com.liferay.portal.kernel.exception.SystemException { 2677 return _groupLocalService.searchCount(companyId, parentGroupId, 2678 keywords, params); 2679 } 2680 2681 /** 2682 * Returns the number of groups belonging to the parent group and immediate 2683 * organization groups that match the name and description, optionally 2684 * including the user's inherited organization groups and user groups. 2685 * System and staged groups are not included. 2686 * 2687 * @param companyId the primary key of the company 2688 * @param parentGroupId the primary key of the parent group 2689 * @param name the group's name (optionally <code>null</code>) 2690 * @param description the group's description (optionally 2691 <code>null</code>) 2692 * @param params the finder params (optionally <code>null</code>). To 2693 include the user's inherited organization groups and user groups 2694 in the search, add entries having "usersGroups" and 2695 "inherit" as keys mapped to the the user's ID. For more 2696 information see {@link 2697 com.liferay.portal.service.persistence.GroupFinder} 2698 * @param andOperator whether every field must match its keywords, or just 2699 one field. 2700 * @return the number of matching groups 2701 * @throws SystemException if a system exception occurred 2702 */ 2703 @Override 2704 public int searchCount(long companyId, long parentGroupId, 2705 java.lang.String name, java.lang.String description, 2706 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2707 boolean andOperator) 2708 throws com.liferay.portal.kernel.exception.SystemException { 2709 return _groupLocalService.searchCount(companyId, parentGroupId, name, 2710 description, params, andOperator); 2711 } 2712 2713 /** 2714 * Returns the number of groups belonging to the parent group that match the 2715 * class name IDs, and keywords, optionally including the user's inherited 2716 * organization groups and user groups. System and staged groups are not 2717 * included. 2718 * 2719 * @param companyId the primary key of the company 2720 * @param classNameIds the primary keys of the class names of the entities 2721 the groups are related to (optionally <code>null</code>) 2722 * @param parentGroupId the primary key of the parent group 2723 * @param keywords the keywords (space separated), which may occur in the 2724 sites's name, or description (optionally <code>null</code>) 2725 * @param params the finder params (optionally <code>null</code>). To 2726 include the user's inherited organization groups and user groups 2727 in the search, add entries having "usersGroups" and 2728 "inherit" as keys mapped to the the user's ID. For more 2729 information see {@link 2730 com.liferay.portal.service.persistence.GroupFinder} 2731 * @return the number of matching groups 2732 * @throws SystemException if a system exception occurred 2733 */ 2734 @Override 2735 public int searchCount(long companyId, long[] classNameIds, 2736 long parentGroupId, java.lang.String keywords, 2737 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 2738 throws com.liferay.portal.kernel.exception.SystemException { 2739 return _groupLocalService.searchCount(companyId, classNameIds, 2740 parentGroupId, keywords, params); 2741 } 2742 2743 /** 2744 * Returns the number of groups belonging to the parent group that match the 2745 * class name IDs, name, and description, optionally including the user's 2746 * inherited organization groups and user groups. System and staged groups 2747 * are not included. 2748 * 2749 * @param companyId the primary key of the company 2750 * @param classNameIds the primary keys of the class names of the entities 2751 the groups are related to (optionally <code>null</code>) 2752 * @param parentGroupId the primary key of the parent group 2753 * @param name the group's name (optionally <code>null</code>) 2754 * @param description the group's description (optionally 2755 <code>null</code>) 2756 * @param params the finder params (optionally <code>null</code>). To 2757 include the user's inherited organization groups and user groups 2758 in the search, add entries having "usersGroups" and 2759 "inherit" as keys mapped to the the user's ID. For more 2760 information see {@link 2761 com.liferay.portal.service.persistence.GroupFinder} 2762 * @param andOperator whether every field must match its keywords, or just 2763 one field. 2764 * @return the number of matching groups 2765 * @throws SystemException if a system exception occurred 2766 */ 2767 @Override 2768 public int searchCount(long companyId, long[] classNameIds, 2769 long parentGroupId, java.lang.String name, 2770 java.lang.String description, 2771 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2772 boolean andOperator) 2773 throws com.liferay.portal.kernel.exception.SystemException { 2774 return _groupLocalService.searchCount(companyId, classNameIds, 2775 parentGroupId, name, description, params, andOperator); 2776 } 2777 2778 /** 2779 * Returns the number of groups that match the class name IDs, and keywords, 2780 * optionally including the user's inherited organization groups and user 2781 * groups. System and staged groups are not included. 2782 * 2783 * @param companyId the primary key of the company 2784 * @param classNameIds the primary keys of the class names of the entities 2785 the groups are related to (optionally <code>null</code>) 2786 * @param keywords the keywords (space separated), which may occur in the 2787 sites's name, or description (optionally <code>null</code>) 2788 * @param params the finder params (optionally <code>null</code>). To 2789 include the user's inherited organization groups and user groups 2790 in the search, add entries having "usersGroups" and 2791 "inherit" as keys mapped to the the user's ID. For more 2792 information see {@link 2793 com.liferay.portal.service.persistence.GroupFinder} 2794 * @return the number of matching groups 2795 * @throws SystemException if a system exception occurred 2796 */ 2797 @Override 2798 public int searchCount(long companyId, long[] classNameIds, 2799 java.lang.String keywords, 2800 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 2801 throws com.liferay.portal.kernel.exception.SystemException { 2802 return _groupLocalService.searchCount(companyId, classNameIds, 2803 keywords, params); 2804 } 2805 2806 /** 2807 * Returns the number of groups that match the class name IDs, name, and 2808 * description, optionally including the user's inherited organization 2809 * groups and user groups. System and staged groups are not included. 2810 * 2811 * @param companyId the primary key of the company 2812 * @param classNameIds the primary keys of the class names of the entities 2813 the groups are related to (optionally <code>null</code>) 2814 * @param name the group's name (optionally <code>null</code>) 2815 * @param description the group's description (optionally 2816 <code>null</code>) 2817 * @param params the finder params (optionally <code>null</code>). To 2818 include the user's inherited organization groups and user groups 2819 in the search, add entries having "usersGroups" and 2820 "inherit" as keys mapped to the the user's ID. For more 2821 information see {@link 2822 com.liferay.portal.service.persistence.GroupFinder} 2823 * @param andOperator whether every field must match its keywords, or just 2824 one field. 2825 * @return the number of matching groups 2826 * @throws SystemException if a system exception occurred 2827 */ 2828 @Override 2829 public int searchCount(long companyId, long[] classNameIds, 2830 java.lang.String name, java.lang.String description, 2831 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2832 boolean andOperator) 2833 throws com.liferay.portal.kernel.exception.SystemException { 2834 return _groupLocalService.searchCount(companyId, classNameIds, name, 2835 description, params, andOperator); 2836 } 2837 2838 /** 2839 * Returns the number of groups that match the keywords, optionally 2840 * including the user's inherited organization groups and user groups. 2841 * System and staged groups are not included. 2842 * 2843 * @param companyId the primary key of the company 2844 * @param keywords the keywords (space separated), which may occur in the 2845 sites's name, or description (optionally <code>null</code>) 2846 * @param params the finder params (optionally <code>null</code>). To 2847 include the user's inherited organization groups and user groups 2848 in the search, add entries having "usersGroups" and 2849 "inherit" as keys mapped to the the user's ID. For more 2850 information see {@link 2851 com.liferay.portal.service.persistence.GroupFinder} 2852 * @return the number of matching groups 2853 * @throws SystemException if a system exception occurred 2854 */ 2855 @Override 2856 public int searchCount(long companyId, java.lang.String keywords, 2857 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 2858 throws com.liferay.portal.kernel.exception.SystemException { 2859 return _groupLocalService.searchCount(companyId, keywords, params); 2860 } 2861 2862 /** 2863 * Returns the number of groups and immediate organization groups that match 2864 * the name and description, optionally including the user's inherited 2865 * organization groups and user groups. System and staged groups are not 2866 * included. 2867 * 2868 * @param companyId the primary key of the company 2869 * @param name the group's name (optionally <code>null</code>) 2870 * @param description the group's description (optionally 2871 <code>null</code>) 2872 * @param params the finder params (optionally <code>null</code>). To 2873 include the user's inherited organization groups and user groups 2874 in the search, add entries having "usersGroups" and 2875 "inherit" as keys mapped to the the user's ID. For more 2876 information see {@link 2877 com.liferay.portal.service.persistence.GroupFinder} 2878 * @param andOperator whether every field must match its keywords, or just 2879 one field. 2880 * @return the number of matching groups 2881 * @throws SystemException if a system exception occurred 2882 */ 2883 @Override 2884 public int searchCount(long companyId, java.lang.String name, 2885 java.lang.String description, 2886 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2887 boolean andOperator) 2888 throws com.liferay.portal.kernel.exception.SystemException { 2889 return _groupLocalService.searchCount(companyId, name, description, 2890 params, andOperator); 2891 } 2892 2893 /** 2894 * Removes the groups from the role. 2895 * 2896 * @param roleId the primary key of the role 2897 * @param groupIds the primary keys of the groups 2898 * @throws SystemException if a system exception occurred 2899 */ 2900 @Override 2901 public void unsetRoleGroups(long roleId, long[] groupIds) 2902 throws com.liferay.portal.kernel.exception.SystemException { 2903 _groupLocalService.unsetRoleGroups(roleId, groupIds); 2904 } 2905 2906 /** 2907 * Removes the user from the groups. 2908 * 2909 * @param userId the primary key of the user 2910 * @param groupIds the primary keys of the groups 2911 * @throws SystemException if a system exception occurred 2912 */ 2913 @Override 2914 public void unsetUserGroups(long userId, long[] groupIds) 2915 throws com.liferay.portal.kernel.exception.SystemException { 2916 _groupLocalService.unsetUserGroups(userId, groupIds); 2917 } 2918 2919 /** 2920 * Updates the group's asset replacing categories and tag names. 2921 * 2922 * @param userId the primary key of the user 2923 * @param group the group 2924 * @param assetCategoryIds the primary keys of the asset categories 2925 (optionally <code>null</code>) 2926 * @param assetTagNames the asset tag names (optionally <code>null</code>) 2927 * @throws PortalException if a user with the primary key could not be found 2928 * @throws SystemException if a system exception occurred 2929 */ 2930 @Override 2931 public void updateAsset(long userId, com.liferay.portal.model.Group group, 2932 long[] assetCategoryIds, java.lang.String[] assetTagNames) 2933 throws com.liferay.portal.kernel.exception.PortalException, 2934 com.liferay.portal.kernel.exception.SystemException { 2935 _groupLocalService.updateAsset(userId, group, assetCategoryIds, 2936 assetTagNames); 2937 } 2938 2939 /** 2940 * Updates the group's friendly URL. 2941 * 2942 * @param groupId the primary key of the group 2943 * @param friendlyURL the group's new friendlyURL (optionally 2944 <code>null</code>) 2945 * @return the group 2946 * @throws PortalException if a group with the primary key could not be 2947 found or if a valid friendly URL could not be created for the 2948 group 2949 * @throws SystemException if a system exception occurred 2950 */ 2951 @Override 2952 public com.liferay.portal.model.Group updateFriendlyURL(long groupId, 2953 java.lang.String friendlyURL) 2954 throws com.liferay.portal.kernel.exception.PortalException, 2955 com.liferay.portal.kernel.exception.SystemException { 2956 return _groupLocalService.updateFriendlyURL(groupId, friendlyURL); 2957 } 2958 2959 /** 2960 * Updates the group. 2961 * 2962 * @param groupId the primary key of the group 2963 * @param parentGroupId the primary key of the parent group 2964 * @param name the group's new name 2965 * @param description the group's new description (optionally 2966 <code>null</code>) 2967 * @param type the group's new type. For more information see {@link 2968 com.liferay.portal.model.GroupConstants} 2969 * @param friendlyURL the group's new friendlyURL (optionally 2970 <code>null</code>) 2971 * @param active whether the group is active 2972 * @param serviceContext the service context to be applied (optionally 2973 <code>null</code>). Can set asset category IDs and asset tag 2974 names for the group. 2975 * @return the group 2976 * @throws PortalException if a group with the primary key could not be 2977 found or if the friendly URL was invalid or could one not be 2978 created 2979 * @throws SystemException if a system exception occurred 2980 */ 2981 @Override 2982 public com.liferay.portal.model.Group updateGroup(long groupId, 2983 long parentGroupId, java.lang.String name, 2984 java.lang.String description, int type, boolean manualMembership, 2985 int membershipRestriction, java.lang.String friendlyURL, 2986 boolean active, com.liferay.portal.service.ServiceContext serviceContext) 2987 throws com.liferay.portal.kernel.exception.PortalException, 2988 com.liferay.portal.kernel.exception.SystemException { 2989 return _groupLocalService.updateGroup(groupId, parentGroupId, name, 2990 description, type, manualMembership, membershipRestriction, 2991 friendlyURL, active, serviceContext); 2992 } 2993 2994 /** 2995 * Updates the group's type settings. 2996 * 2997 * @param groupId the primary key of the group 2998 * @param typeSettings the group's new type settings (optionally 2999 <code>null</code>) 3000 * @return the group 3001 * @throws PortalException if a group with the primary key could not be 3002 found 3003 * @throws SystemException if a system exception occurred 3004 */ 3005 @Override 3006 public com.liferay.portal.model.Group updateGroup(long groupId, 3007 java.lang.String typeSettings) 3008 throws com.liferay.portal.kernel.exception.PortalException, 3009 com.liferay.portal.kernel.exception.SystemException { 3010 return _groupLocalService.updateGroup(groupId, typeSettings); 3011 } 3012 3013 /** 3014 * Associates the group with a main site if the group is an organization. 3015 * 3016 * @param groupId the primary key of the group 3017 * @param site whether the group is to be associated with a main site 3018 * @return the group 3019 * @throws PortalException if a group with the primary key could not be 3020 found 3021 * @throws SystemException if a system exception occurred 3022 */ 3023 @Override 3024 public com.liferay.portal.model.Group updateSite(long groupId, boolean site) 3025 throws com.liferay.portal.kernel.exception.PortalException, 3026 com.liferay.portal.kernel.exception.SystemException { 3027 return _groupLocalService.updateSite(groupId, site); 3028 } 3029 3030 /** 3031 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 3032 */ 3033 public GroupLocalService getWrappedGroupLocalService() { 3034 return _groupLocalService; 3035 } 3036 3037 /** 3038 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 3039 */ 3040 public void setWrappedGroupLocalService(GroupLocalService groupLocalService) { 3041 _groupLocalService = groupLocalService; 3042 } 3043 3044 @Override 3045 public GroupLocalService getWrappedService() { 3046 return _groupLocalService; 3047 } 3048 3049 @Override 3050 public void setWrappedService(GroupLocalService groupLocalService) { 3051 _groupLocalService = groupLocalService; 3052 } 3053 3054 private GroupLocalService _groupLocalService; 3055 }