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