001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 /** 020 * Provides a wrapper for {@link GroupService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see GroupService 024 * @generated 025 */ 026 @ProviderType 027 public class GroupServiceWrapper implements GroupService, 028 ServiceWrapper<GroupService> { 029 public GroupServiceWrapper(GroupService groupService) { 030 _groupService = groupService; 031 } 032 033 /** 034 * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, String, 035 String, int, String, boolean, boolean, ServiceContext)} 036 */ 037 @Deprecated 038 @Override 039 public com.liferay.portal.model.Group addGroup(java.lang.String name, 040 java.lang.String description, int type, java.lang.String friendlyURL, 041 boolean site, boolean active, 042 com.liferay.portal.service.ServiceContext serviceContext) 043 throws com.liferay.portal.kernel.exception.PortalException { 044 return _groupService.addGroup(name, description, type, friendlyURL, 045 site, active, serviceContext); 046 } 047 048 /** 049 * Adds a group. 050 * 051 * @param parentGroupId the primary key of the parent group 052 * @param liveGroupId the primary key of the live group 053 * @param name the entity's name 054 * @param description the group's description (optionally 055 <code>null</code>) 056 * @param type the group's type. For more information see {@link 057 GroupConstants}. 058 * @param manualMembership whether manual membership is allowed for the 059 group 060 * @param membershipRestriction the group's membership restriction. For 061 more information see {@link GroupConstants}. 062 * @param friendlyURL the group's friendlyURL (optionally 063 <code>null</code>) 064 * @param site whether the group is to be associated with a main site 065 * @param active whether the group is active 066 * @param serviceContext the service context to be applied (optionally 067 <code>null</code>). Can set the asset category IDs and asset tag 068 names for the group, and can set whether the group is for staging 069 * @return the group 070 * @throws PortalException if the user did not have permission to add the 071 group, if a creator could not be found, if the group's 072 information was invalid, if a layout could not be found, or if a 073 valid friendly URL could not be created for the group 074 */ 075 @Override 076 public com.liferay.portal.model.Group addGroup(long parentGroupId, 077 long liveGroupId, java.lang.String name, java.lang.String description, 078 int type, boolean manualMembership, int membershipRestriction, 079 java.lang.String friendlyURL, boolean site, boolean active, 080 com.liferay.portal.service.ServiceContext serviceContext) 081 throws com.liferay.portal.kernel.exception.PortalException { 082 return _groupService.addGroup(parentGroupId, liveGroupId, name, 083 description, type, manualMembership, membershipRestriction, 084 friendlyURL, site, active, serviceContext); 085 } 086 087 /** 088 * Adds the group using the group default live group ID. 089 * 090 * @param parentGroupId the primary key of the parent group 091 * @param name the entity's name 092 * @param description the group's description (optionally 093 <code>null</code>) 094 * @param type the group's type. For more information see {@link 095 GroupConstants}. 096 * @param friendlyURL the group's friendlyURL 097 * @param site whether the group is to be associated with a main site 098 * @param active whether the group is active 099 * @param serviceContext the service context to be applied (optionally 100 <code>null</code>). Can set asset category IDs and asset tag 101 names for the group, and can set whether the group is for 102 staging 103 * @return the group 104 * @throws PortalException if the user did not have permission to add 105 the group, if a creator could not be found, if the group's 106 information was invalid, if a layout could not be found, or 107 if a valid friendly URL could not be created for the group 108 * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String, 109 String, int, boolean, int, String, boolean, boolean, 110 ServiceContext)} 111 */ 112 @Deprecated 113 @Override 114 public com.liferay.portal.model.Group addGroup(long parentGroupId, 115 java.lang.String name, java.lang.String description, int type, 116 java.lang.String friendlyURL, boolean site, boolean active, 117 com.liferay.portal.service.ServiceContext serviceContext) 118 throws com.liferay.portal.kernel.exception.PortalException { 119 return _groupService.addGroup(parentGroupId, name, description, type, 120 friendlyURL, site, active, serviceContext); 121 } 122 123 /** 124 * Adds the groups to the role. 125 * 126 * @param roleId the primary key of the role 127 * @param groupIds the primary keys of the groups 128 * @throws PortalException if the user did not have permission to update the 129 role 130 */ 131 @Override 132 public void addRoleGroups(long roleId, long[] groupIds) 133 throws com.liferay.portal.kernel.exception.PortalException { 134 _groupService.addRoleGroups(roleId, groupIds); 135 } 136 137 /** 138 * Checks that the current user is permitted to use the group for Remote 139 * Staging. 140 * 141 * @param groupId the primary key of the group 142 * @throws PortalException if a group with the primary key could not be 143 found, if the current user did not have permission to view the 144 group, or if the group's company was different from the current 145 user's company 146 */ 147 @Override 148 public void checkRemoteStagingGroup(long groupId) 149 throws com.liferay.portal.kernel.exception.PortalException { 150 _groupService.checkRemoteStagingGroup(groupId); 151 } 152 153 /** 154 * Deletes the group. 155 * 156 * <p> 157 * The group is unstaged and its assets and resources including layouts, 158 * membership requests, subscriptions, teams, blogs, bookmarks, calendar 159 * events, image gallery, journals, message boards, polls, shopping related 160 * entities, software catalog, and wikis are also deleted. 161 * </p> 162 * 163 * @param groupId the primary key of the group 164 * @throws PortalException if the user did not have permission to delete the 165 group or its assets or resources, if a group with the primary key 166 could not be found, or if the group was a system group 167 */ 168 @Override 169 public void deleteGroup(long groupId) 170 throws com.liferay.portal.kernel.exception.PortalException { 171 _groupService.deleteGroup(groupId); 172 } 173 174 @Override 175 public void disableStaging(long groupId) 176 throws com.liferay.portal.kernel.exception.PortalException { 177 _groupService.disableStaging(groupId); 178 } 179 180 @Override 181 public void enableStaging(long groupId) 182 throws com.liferay.portal.kernel.exception.PortalException { 183 _groupService.enableStaging(groupId); 184 } 185 186 /** 187 * Returns the Spring bean ID for this bean. 188 * 189 * @return the Spring bean ID for this bean 190 */ 191 @Override 192 public java.lang.String getBeanIdentifier() { 193 return _groupService.getBeanIdentifier(); 194 } 195 196 /** 197 * Returns the company group. 198 * 199 * @param companyId the primary key of the company 200 * @return the group associated with the company 201 * @throws PortalException if a matching group could not be found 202 */ 203 @Override 204 public com.liferay.portal.model.Group getCompanyGroup(long companyId) 205 throws com.liferay.portal.kernel.exception.PortalException { 206 return _groupService.getCompanyGroup(companyId); 207 } 208 209 /** 210 * Returns the group with the name. 211 * 212 * @param companyId the primary key of the company 213 * @param name the group's name 214 * @return the group with the name 215 * @throws PortalException if a matching group could not be found or if the 216 current user did not have permission to view the group 217 */ 218 @Override 219 public com.liferay.portal.model.Group getGroup(long companyId, 220 java.lang.String name) 221 throws com.liferay.portal.kernel.exception.PortalException { 222 return _groupService.getGroup(companyId, name); 223 } 224 225 /** 226 * Returns the group with the primary key. 227 * 228 * @param groupId the primary key of the group 229 * @return the group with the primary key 230 * @throws PortalException if a group with the primary key could not be 231 found or if the current user did not have permission to view the 232 group 233 */ 234 @Override 235 public com.liferay.portal.model.Group getGroup(long groupId) 236 throws com.liferay.portal.kernel.exception.PortalException { 237 return _groupService.getGroup(groupId); 238 } 239 240 /** 241 * Returns all the groups that are direct children of the parent group. 242 * 243 * @param companyId the primary key of the company 244 * @param parentGroupId the primary key of the parent group 245 * @param site whether the group is to be associated with a main site 246 * @return the matching groups, or <code>null</code> if no matches were 247 found 248 * @throws PortalException if the user did not have permission to view the 249 group or if a portal exception occurred 250 */ 251 @Override 252 public java.util.List<com.liferay.portal.model.Group> getGroups( 253 long companyId, long parentGroupId, boolean site) 254 throws com.liferay.portal.kernel.exception.PortalException { 255 return _groupService.getGroups(companyId, parentGroupId, site); 256 } 257 258 /** 259 * Returns a range of all the site groups for which the user has control 260 * panel access. 261 * 262 * @param portlets the portlets to manage 263 * @param max the upper bound of the range of groups to consider (not 264 inclusive) 265 * @return the range of site groups for which the user has Control Panel 266 access 267 * @throws PortalException if a portal exception occurred 268 */ 269 @Override 270 public java.util.List<com.liferay.portal.model.Group> getManageableSiteGroups( 271 java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max) 272 throws com.liferay.portal.kernel.exception.PortalException { 273 return _groupService.getManageableSiteGroups(portlets, max); 274 } 275 276 /** 277 * Returns a range of all the site groups for which the user has control 278 * panel access. 279 * 280 * @param portlets the portlets to manage 281 * @param max the upper bound of the range of groups to consider (not 282 inclusive) 283 * @return the range of site groups for which the user has Control Panel 284 access 285 * @throws PortalException if a portal exception occurred 286 * @deprecated As of 6.2.0, replaced by {@link 287 #getManageableSiteGroups(Collection, int)} 288 */ 289 @Deprecated 290 @Override 291 public java.util.List<com.liferay.portal.model.Group> getManageableSites( 292 java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max) 293 throws com.liferay.portal.kernel.exception.PortalException { 294 return _groupService.getManageableSites(portlets, max); 295 } 296 297 /** 298 * Returns the groups associated with the organizations. 299 * 300 * @param organizations the organizations 301 * @return the groups associated with the organizations 302 * @throws PortalException if a portal exception occurred 303 */ 304 @Override 305 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups( 306 java.util.List<com.liferay.portal.model.Organization> organizations) 307 throws com.liferay.portal.kernel.exception.PortalException { 308 return _groupService.getOrganizationsGroups(organizations); 309 } 310 311 /** 312 * Returns the group associated with the user. 313 * 314 * @param companyId the primary key of the company 315 * @param userId the primary key of the user 316 * @return the group associated with the user 317 * @throws PortalException if a matching group could not be found or if the 318 current user did not have permission to view the group 319 */ 320 @Override 321 public com.liferay.portal.model.Group getUserGroup(long companyId, 322 long userId) throws com.liferay.portal.kernel.exception.PortalException { 323 return _groupService.getUserGroup(companyId, userId); 324 } 325 326 /** 327 * Returns the groups associated with the user groups. 328 * 329 * @param userGroups the user groups 330 * @return the groups associated with the user groups 331 * @throws PortalException if any one of the user group's group could not be 332 found 333 */ 334 @Override 335 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups( 336 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 337 throws com.liferay.portal.kernel.exception.PortalException { 338 return _groupService.getUserGroupsGroups(userGroups); 339 } 340 341 /** 342 * Returns the range of all groups associated with the user's organization 343 * groups, including the ancestors of the organization groups, unless portal 344 * property <code>organizations.membership.strict</code> is set to 345 * <code>true</code>. 346 * 347 * <p> 348 * Useful when paginating results. Returns a maximum of <code>end - 349 * start</code> instances. <code>start</code> and <code>end</code> are not 350 * primary keys, they are indexes in the result set. Thus, <code>0</code> 351 * refers to the first result in the set. Setting both <code>start</code> 352 * and <code>end</code> to {@link 353 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 354 * result set. 355 * </p> 356 * 357 * @param userId the primary key of the user 358 * @param start the lower bound of the range of groups to consider 359 * @param end the upper bound of the range of groups to consider (not 360 inclusive) 361 * @return the range of groups associated with the user's organizations 362 * @throws PortalException if a user with the primary key could not be found 363 or if another portal exception occurred 364 */ 365 @Override 366 public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups( 367 long userId, int start, int end) 368 throws com.liferay.portal.kernel.exception.PortalException { 369 return _groupService.getUserOrganizationsGroups(userId, start, end); 370 } 371 372 /** 373 * Returns the guest or current user's groups "sites" associated 374 * with the group entity class names, including the Control Panel group if 375 * the user is permitted to view the Control Panel. 376 * 377 * <ul> 378 * <li> 379 * Class name "User" includes the user's layout set 380 * group. 381 * </li> 382 * <li> 383 * Class name "Organization" includes the user's 384 * immediate organization groups and inherited organization groups. 385 * </li> 386 * <li> 387 * Class name "Group" includes the user's immediate 388 * organization groups and site groups. 389 * </li> 390 * <li> 391 * A <code>classNames</code> 392 * value of <code>null</code> includes the user's layout set group, 393 * organization groups, inherited organization groups, and site groups. 394 * </li> 395 * </ul> 396 * 397 * @param classNames the group entity class names (optionally 398 <code>null</code>). For more information see {@link 399 #getUserSitesGroups(String[], int)}. 400 * @param max the maximum number of groups to return 401 * @return the user's groups "sites" 402 * @throws PortalException if a portal exception occurred 403 * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(String[], 404 int)} 405 */ 406 @Deprecated 407 @Override 408 public java.util.List<com.liferay.portal.model.Group> getUserPlaces( 409 java.lang.String[] classNames, int max) 410 throws com.liferay.portal.kernel.exception.PortalException { 411 return _groupService.getUserPlaces(classNames, max); 412 } 413 414 /** 415 * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(long, 416 String[], boolean, int)} 417 */ 418 @Deprecated 419 @Override 420 public java.util.List<com.liferay.portal.model.Group> getUserPlaces( 421 long userId, java.lang.String[] classNames, 422 boolean includeControlPanel, int max) 423 throws com.liferay.portal.kernel.exception.PortalException { 424 return _groupService.getUserPlaces(userId, classNames, 425 includeControlPanel, max); 426 } 427 428 /** 429 * Returns the user's groups "sites" associated with the group 430 * entity class names, including the Control Panel group if the user is 431 * permitted to view the Control Panel. 432 * 433 * <ul> 434 * <li> 435 * Class name "User" includes the user's layout set 436 * group. 437 * </li> 438 * <li> 439 * Class name "Organization" includes the user's 440 * immediate organization groups and inherited organization groups. 441 * </li> 442 * <li> 443 * Class name "Group" includes the user's immediate 444 * organization groups and site groups. 445 * </li> 446 * <li> 447 * A <code>classNames</code> 448 * value of <code>null</code> includes the user's layout set group, 449 * organization groups, inherited organization groups, and site groups. 450 * </li> 451 * </ul> 452 * 453 * @param userId the primary key of the user 454 * @param classNames the group entity class names (optionally 455 <code>null</code>). For more information see {@link 456 #getUserSitesGroups(long, String[], int)}. 457 * @param max the maximum number of groups to return 458 * @return the user's groups "sites" 459 * @throws PortalException if a portal exception occurred 460 * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(long, 461 String[], int)} 462 */ 463 @Deprecated 464 @Override 465 public java.util.List<com.liferay.portal.model.Group> getUserPlaces( 466 long userId, java.lang.String[] classNames, int max) 467 throws com.liferay.portal.kernel.exception.PortalException { 468 return _groupService.getUserPlaces(userId, classNames, max); 469 } 470 471 /** 472 * Returns the number of the guest or current user's groups 473 * "sites" associated with the group entity class names, including 474 * the Control Panel group if the user is permitted to view the Control 475 * Panel. 476 * 477 * @return the number of user's groups "sites" 478 * @throws PortalException if a portal exception occurred 479 * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroupsCount()} 480 */ 481 @Deprecated 482 @Override 483 public int getUserPlacesCount() 484 throws com.liferay.portal.kernel.exception.PortalException { 485 return _groupService.getUserPlacesCount(); 486 } 487 488 /** 489 * Returns the guest or current user's layout set group, organization 490 * groups, inherited organization groups, and site groups. 491 * 492 * @return the user's layout set group, organization groups, and 493 inherited organization groups, and site groups 494 * @throws PortalException if a portal exception occurred 495 * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups} 496 */ 497 @Deprecated 498 @Override 499 public java.util.List<com.liferay.portal.model.Group> getUserSites() 500 throws com.liferay.portal.kernel.exception.PortalException { 501 return _groupService.getUserSites(); 502 } 503 504 @Override 505 public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups() 506 throws com.liferay.portal.kernel.exception.PortalException { 507 return _groupService.getUserSitesGroups(); 508 } 509 510 /** 511 * Returns the guest or current user's groups "sites" associated 512 * with the group entity class names, including the Control Panel group if 513 * the user is permitted to view the Control Panel. 514 * 515 * <ul> 516 * <li> 517 * Class name "User" includes the user's layout set 518 * group. 519 * </li> 520 * <li> 521 * Class name "Organization" includes the user's 522 * immediate organization groups and inherited organization groups. 523 * </li> 524 * <li> 525 * Class name "Group" includes the user's immediate 526 * organization groups and site groups. 527 * </li> 528 * <li> 529 * A <code>classNames</code> 530 * value of <code>null</code> includes the user's layout set group, 531 * organization groups, inherited organization groups, and site groups. 532 * </li> 533 * </ul> 534 * 535 * @param classNames the group entity class names (optionally 536 <code>null</code>). For more information see {@link 537 #getUserSitesGroups(long, String[], boolean, int)}. 538 * @param max the maximum number of groups to return 539 * @return the user's groups "sites" 540 * @throws PortalException if a portal exception occurred 541 */ 542 @Override 543 public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups( 544 java.lang.String[] classNames, int max) 545 throws com.liferay.portal.kernel.exception.PortalException { 546 return _groupService.getUserSitesGroups(classNames, max); 547 } 548 549 @Override 550 public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups( 551 long userId, java.lang.String[] classNames, 552 boolean includeControlPanel, int max) 553 throws com.liferay.portal.kernel.exception.PortalException { 554 return _groupService.getUserSitesGroups(userId, classNames, 555 includeControlPanel, max); 556 } 557 558 /** 559 * Returns the user's groups "sites" associated with the group 560 * entity class names, including the Control Panel group if the user is 561 * permitted to view the Control Panel. 562 * 563 * <ul> 564 * <li> 565 * Class name "User" includes the user's layout set 566 * group. 567 * </li> 568 * <li> 569 * Class name "Organization" includes the user's 570 * immediate organization groups and inherited organization groups. 571 * </li> 572 * <li> 573 * Class name "Group" includes the user's immediate 574 * organization groups and site groups. 575 * </li> 576 * <li> 577 * A <code>classNames</code> 578 * value of <code>null</code> includes the user's layout set group, 579 * organization groups, inherited organization groups, and site groups. 580 * </li> 581 * </ul> 582 * 583 * @param userId the primary key of the user 584 * @param classNames the group entity class names (optionally 585 <code>null</code>). For more information see {@link 586 #getUserSitesGroups(long, String[], boolean, int)}. 587 * @param max the maximum number of groups to return 588 * @return the user's groups "sites" 589 * @throws PortalException if a portal exception occurred 590 */ 591 @Override 592 public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups( 593 long userId, java.lang.String[] classNames, int max) 594 throws com.liferay.portal.kernel.exception.PortalException { 595 return _groupService.getUserSitesGroups(userId, classNames, max); 596 } 597 598 /** 599 * Returns the number of the guest or current user's groups 600 * "sites" associated with the group entity class names, including 601 * the Control Panel group if the user is permitted to view the Control 602 * Panel. 603 * 604 * @return the number of user's groups "sites" 605 * @throws PortalException if a portal exception occurred 606 */ 607 @Override 608 public int getUserSitesGroupsCount() 609 throws com.liferay.portal.kernel.exception.PortalException { 610 return _groupService.getUserSitesGroupsCount(); 611 } 612 613 /** 614 * Returns <code>true</code> if the user is associated with the group, 615 * including the user's inherited organizations and user groups. System and 616 * staged groups are not included. 617 * 618 * @param userId the primary key of the user 619 * @param groupId the primary key of the group 620 * @return <code>true</code> if the user is associated with the group; 621 <code>false</code> otherwise 622 * @throws PortalException if the current user did not have permission to 623 view the user or group members 624 */ 625 @Override 626 public boolean hasUserGroup(long userId, long groupId) 627 throws com.liferay.portal.kernel.exception.PortalException { 628 return _groupService.hasUserGroup(userId, groupId); 629 } 630 631 @Override 632 public java.util.List<com.liferay.portal.model.Group> search( 633 long companyId, long[] classNameIds, java.lang.String keywords, 634 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 635 int start, int end, 636 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc) 637 throws com.liferay.portal.kernel.exception.PortalException { 638 return _groupService.search(companyId, classNameIds, keywords, params, 639 start, end, obc); 640 } 641 642 @Override 643 public java.util.List<com.liferay.portal.model.Group> search( 644 long companyId, long[] classNameIds, java.lang.String name, 645 java.lang.String description, 646 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 647 boolean andOperator, int start, int end, 648 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc) 649 throws com.liferay.portal.kernel.exception.PortalException { 650 return _groupService.search(companyId, classNameIds, name, description, 651 params, andOperator, start, end, obc); 652 } 653 654 /** 655 * Returns an ordered range of all the site groups and organization groups 656 * that match the name and description, optionally including the user's 657 * inherited organization groups and user groups. System and staged groups 658 * are not included. 659 * 660 * <p> 661 * Useful when paginating results. Returns a maximum of <code>end - 662 * start</code> instances. <code>start</code> and <code>end</code> are not 663 * primary keys, they are indexes in the result set. Thus, <code>0</code> 664 * refers to the first result in the set. Setting both <code>start</code> 665 * and <code>end</code> to {@link 666 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 667 * result set. 668 * </p> 669 * 670 * @param companyId the primary key of the company 671 * @param name the group's name (optionally <code>null</code>) 672 * @param description the group's description (optionally 673 <code>null</code>) 674 * @param params the finder params (optionally <code>null</code>). To 675 include the user's inherited organizations and user groups in the 676 search, add entries having "usersGroups" and 677 "inherit" as keys mapped to the the user's ID. For more 678 information see {@link 679 com.liferay.portal.service.persistence.GroupFinder}. 680 * @param start the lower bound of the range of groups to return 681 * @param end the upper bound of the range of groups to return (not 682 inclusive) 683 * @return the matching groups ordered by name 684 * @throws PortalException if a portal exception occurred 685 */ 686 @Override 687 public java.util.List<com.liferay.portal.model.Group> search( 688 long companyId, java.lang.String name, java.lang.String description, 689 java.lang.String[] params, int start, int end) 690 throws com.liferay.portal.kernel.exception.PortalException { 691 return _groupService.search(companyId, name, description, params, 692 start, end); 693 } 694 695 /** 696 * Returns the number of groups and organization groups that match the name 697 * and description, optionally including the user's inherited organizations 698 * and user groups. System and staged groups are not included. 699 * 700 * @param companyId the primary key of the company 701 * @param name the group's name (optionally <code>null</code>) 702 * @param description the group's description (optionally 703 <code>null</code>) 704 * @param params the finder params (optionally <code>null</code>). To 705 include the user's inherited organizations and user groups in the 706 search, add entries having "usersGroups" and 707 "inherit" as keys mapped to the the user's ID. For more 708 information see {@link 709 com.liferay.portal.service.persistence.GroupFinder}. 710 * @return the number of matching groups 711 */ 712 @Override 713 public int searchCount(long companyId, java.lang.String name, 714 java.lang.String description, java.lang.String[] params) { 715 return _groupService.searchCount(companyId, name, description, params); 716 } 717 718 /** 719 * Sets the Spring bean ID for this bean. 720 * 721 * @param beanIdentifier the Spring bean ID for this bean 722 */ 723 @Override 724 public void setBeanIdentifier(java.lang.String beanIdentifier) { 725 _groupService.setBeanIdentifier(beanIdentifier); 726 } 727 728 /** 729 * Sets the groups associated with the role, removing and adding 730 * associations as necessary. 731 * 732 * @param roleId the primary key of the role 733 * @param groupIds the primary keys of the groups 734 * @throws PortalException if the user did not have permission to update 735 update the role 736 */ 737 @Override 738 public void setRoleGroups(long roleId, long[] groupIds) 739 throws com.liferay.portal.kernel.exception.PortalException { 740 _groupService.setRoleGroups(roleId, groupIds); 741 } 742 743 /** 744 * Removes the groups from the role. 745 * 746 * @param roleId the primary key of the role 747 * @param groupIds the primary keys of the groups 748 * @throws PortalException if the user did not have permission to update the 749 role 750 */ 751 @Override 752 public void unsetRoleGroups(long roleId, long[] groupIds) 753 throws com.liferay.portal.kernel.exception.PortalException { 754 _groupService.unsetRoleGroups(roleId, groupIds); 755 } 756 757 /** 758 * Updates the group's friendly URL. 759 * 760 * @param groupId the primary key of the group 761 * @param friendlyURL the group's new friendlyURL (optionally 762 <code>null</code>) 763 * @return the group 764 * @throws PortalException if the user did not have permission to update the 765 group, if a group with the primary key could not be found, or if 766 a valid friendly URL could not be created for the group 767 */ 768 @Override 769 public com.liferay.portal.model.Group updateFriendlyURL(long groupId, 770 java.lang.String friendlyURL) 771 throws com.liferay.portal.kernel.exception.PortalException { 772 return _groupService.updateFriendlyURL(groupId, friendlyURL); 773 } 774 775 /** 776 * Updates the group. 777 * 778 * @param groupId the primary key of the group 779 * @param parentGroupId the primary key of the parent group 780 * @param name the group's new name 781 * @param description the group's new description (optionally 782 <code>null</code>) 783 * @param type the group's new type. For more information see {@link 784 GroupConstants}. 785 * @param manualMembership whether manual membership is allowed for the 786 group 787 * @param membershipRestriction the group's membership restriction. For 788 more information see {@link GroupConstants}. 789 * @param friendlyURL the group's new friendlyURL (optionally 790 <code>null</code>) 791 * @param active whether the group is active 792 * @param serviceContext the service context to be applied (optionally 793 <code>null</code>). Can set the asset category IDs and asset tag 794 names for the group. 795 * @return the group 796 * @throws PortalException if the user did not have permission to update the 797 group, if a group with the primary key could not be found, if the 798 friendly URL was invalid or could one not be created 799 */ 800 @Override 801 public com.liferay.portal.model.Group updateGroup(long groupId, 802 long parentGroupId, java.lang.String name, 803 java.lang.String description, int type, boolean manualMembership, 804 int membershipRestriction, java.lang.String friendlyURL, 805 boolean active, com.liferay.portal.service.ServiceContext serviceContext) 806 throws com.liferay.portal.kernel.exception.PortalException { 807 return _groupService.updateGroup(groupId, parentGroupId, name, 808 description, type, manualMembership, membershipRestriction, 809 friendlyURL, active, serviceContext); 810 } 811 812 /** 813 * Updates the group's type settings. 814 * 815 * @param groupId the primary key of the group 816 * @param typeSettings the group's new type settings (optionally 817 <code>null</code>) 818 * @return the group 819 * @throws PortalException if the user did not have permission to update the 820 group or if a group with the primary key could not be found 821 */ 822 @Override 823 public com.liferay.portal.model.Group updateGroup(long groupId, 824 java.lang.String typeSettings) 825 throws com.liferay.portal.kernel.exception.PortalException { 826 return _groupService.updateGroup(groupId, typeSettings); 827 } 828 829 @Override 830 public void updateStagedPortlets(long groupId, 831 java.util.Map<java.lang.String, java.lang.String> stagedPortletIds) 832 throws com.liferay.portal.kernel.exception.PortalException { 833 _groupService.updateStagedPortlets(groupId, stagedPortletIds); 834 } 835 836 /** 837 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 838 */ 839 @Deprecated 840 public GroupService getWrappedGroupService() { 841 return _groupService; 842 } 843 844 /** 845 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 846 */ 847 @Deprecated 848 public void setWrappedGroupService(GroupService groupService) { 849 _groupService = groupService; 850 } 851 852 @Override 853 public GroupService getWrappedService() { 854 return _groupService; 855 } 856 857 @Override 858 public void setWrappedService(GroupService groupService) { 859 _groupService = groupService; 860 } 861 862 private GroupService _groupService; 863 }