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