001 /** 002 * Copyright (c) 2000-2011 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 /** 018 * <p> 019 * This class is a wrapper for {@link GroupLocalService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see GroupLocalService 024 * @generated 025 */ 026 public class GroupLocalServiceWrapper implements GroupLocalService, 027 ServiceWrapper<GroupLocalService> { 028 public GroupLocalServiceWrapper(GroupLocalService groupLocalService) { 029 _groupLocalService = groupLocalService; 030 } 031 032 /** 033 * Adds the group to the database. Also notifies the appropriate model listeners. 034 * 035 * @param group the group 036 * @return the group that was added 037 * @throws SystemException if a system exception occurred 038 */ 039 public com.liferay.portal.model.Group addGroup( 040 com.liferay.portal.model.Group group) 041 throws com.liferay.portal.kernel.exception.SystemException { 042 return _groupLocalService.addGroup(group); 043 } 044 045 /** 046 * Creates a new group with the primary key. Does not add the group to the database. 047 * 048 * @param groupId the primary key for the new group 049 * @return the new group 050 */ 051 public com.liferay.portal.model.Group createGroup(long groupId) { 052 return _groupLocalService.createGroup(groupId); 053 } 054 055 /** 056 * Deletes the group with the primary key from the database. Also notifies the appropriate model listeners. 057 * 058 * @param groupId the primary key of the group 059 * @throws PortalException if a group with the primary key could not be found 060 * @throws SystemException if a system exception occurred 061 */ 062 public void deleteGroup(long groupId) 063 throws com.liferay.portal.kernel.exception.PortalException, 064 com.liferay.portal.kernel.exception.SystemException { 065 _groupLocalService.deleteGroup(groupId); 066 } 067 068 /** 069 * Deletes the group from the database. Also notifies the appropriate model listeners. 070 * 071 * @param group the group 072 * @throws PortalException 073 * @throws SystemException if a system exception occurred 074 */ 075 public void deleteGroup(com.liferay.portal.model.Group group) 076 throws com.liferay.portal.kernel.exception.PortalException, 077 com.liferay.portal.kernel.exception.SystemException { 078 _groupLocalService.deleteGroup(group); 079 } 080 081 /** 082 * Performs a dynamic query on the database and returns the matching rows. 083 * 084 * @param dynamicQuery the dynamic query 085 * @return the matching rows 086 * @throws SystemException if a system exception occurred 087 */ 088 @SuppressWarnings("rawtypes") 089 public java.util.List dynamicQuery( 090 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 091 throws com.liferay.portal.kernel.exception.SystemException { 092 return _groupLocalService.dynamicQuery(dynamicQuery); 093 } 094 095 /** 096 * Performs a dynamic query on the database and returns a range of the matching rows. 097 * 098 * <p> 099 * 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. 100 * </p> 101 * 102 * @param dynamicQuery the dynamic query 103 * @param start the lower bound of the range of model instances 104 * @param end the upper bound of the range of model instances (not inclusive) 105 * @return the range of matching rows 106 * @throws SystemException if a system exception occurred 107 */ 108 @SuppressWarnings("rawtypes") 109 public java.util.List dynamicQuery( 110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 111 int end) throws com.liferay.portal.kernel.exception.SystemException { 112 return _groupLocalService.dynamicQuery(dynamicQuery, start, end); 113 } 114 115 /** 116 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 117 * 118 * <p> 119 * 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. 120 * </p> 121 * 122 * @param dynamicQuery the dynamic query 123 * @param start the lower bound of the range of model instances 124 * @param end the upper bound of the range of model instances (not inclusive) 125 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 126 * @return the ordered range of matching rows 127 * @throws SystemException if a system exception occurred 128 */ 129 @SuppressWarnings("rawtypes") 130 public java.util.List dynamicQuery( 131 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 132 int end, 133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 134 throws com.liferay.portal.kernel.exception.SystemException { 135 return _groupLocalService.dynamicQuery(dynamicQuery, start, end, 136 orderByComparator); 137 } 138 139 /** 140 * Returns the number of rows that match the dynamic query. 141 * 142 * @param dynamicQuery the dynamic query 143 * @return the number of rows that match the dynamic query 144 * @throws SystemException if a system exception occurred 145 */ 146 public long dynamicQueryCount( 147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 148 throws com.liferay.portal.kernel.exception.SystemException { 149 return _groupLocalService.dynamicQueryCount(dynamicQuery); 150 } 151 152 public com.liferay.portal.model.Group fetchGroup(long groupId) 153 throws com.liferay.portal.kernel.exception.SystemException { 154 return _groupLocalService.fetchGroup(groupId); 155 } 156 157 /** 158 * Returns the group with the primary key. 159 * 160 * @param groupId the primary key of the group 161 * @return the group 162 * @throws PortalException if a group with the primary key could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portal.model.Group getGroup(long groupId) 166 throws com.liferay.portal.kernel.exception.PortalException, 167 com.liferay.portal.kernel.exception.SystemException { 168 return _groupLocalService.getGroup(groupId); 169 } 170 171 public com.liferay.portal.model.PersistedModel getPersistedModel( 172 java.io.Serializable primaryKeyObj) 173 throws com.liferay.portal.kernel.exception.PortalException, 174 com.liferay.portal.kernel.exception.SystemException { 175 return _groupLocalService.getPersistedModel(primaryKeyObj); 176 } 177 178 /** 179 * Returns a range of all the groups. 180 * 181 * <p> 182 * 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. 183 * </p> 184 * 185 * @param start the lower bound of the range of groups 186 * @param end the upper bound of the range of groups (not inclusive) 187 * @return the range of groups 188 * @throws SystemException if a system exception occurred 189 */ 190 public java.util.List<com.liferay.portal.model.Group> getGroups(int start, 191 int end) throws com.liferay.portal.kernel.exception.SystemException { 192 return _groupLocalService.getGroups(start, end); 193 } 194 195 /** 196 * Returns the number of groups. 197 * 198 * @return the number of groups 199 * @throws SystemException if a system exception occurred 200 */ 201 public int getGroupsCount() 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return _groupLocalService.getGroupsCount(); 204 } 205 206 /** 207 * Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 208 * 209 * @param group the group 210 * @return the group that was updated 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portal.model.Group updateGroup( 214 com.liferay.portal.model.Group group) 215 throws com.liferay.portal.kernel.exception.SystemException { 216 return _groupLocalService.updateGroup(group); 217 } 218 219 /** 220 * Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 221 * 222 * @param group the group 223 * @param merge whether to merge the group with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation. 224 * @return the group that was updated 225 * @throws SystemException if a system exception occurred 226 */ 227 public com.liferay.portal.model.Group updateGroup( 228 com.liferay.portal.model.Group group, boolean merge) 229 throws com.liferay.portal.kernel.exception.SystemException { 230 return _groupLocalService.updateGroup(group, merge); 231 } 232 233 /** 234 * Returns the Spring bean ID for this bean. 235 * 236 * @return the Spring bean ID for this bean 237 */ 238 public java.lang.String getBeanIdentifier() { 239 return _groupLocalService.getBeanIdentifier(); 240 } 241 242 /** 243 * Sets the Spring bean ID for this bean. 244 * 245 * @param beanIdentifier the Spring bean ID for this bean 246 */ 247 public void setBeanIdentifier(java.lang.String beanIdentifier) { 248 _groupLocalService.setBeanIdentifier(beanIdentifier); 249 } 250 251 /** 252 * Adds a group. 253 * 254 * @param userId the primary key of the group's creator/owner 255 * @param className the entity's class name 256 * @param classPK the primary key of the entity's instance 257 * @param liveGroupId the primary key of the live group 258 * @param name the entity's name 259 * @param description the group's description (optionally 260 <code>null</code>) 261 * @param type the group's type. For more information see {@link 262 com.liferay.portal.model.GroupConstants} 263 * @param friendlyURL the group's friendlyURL (optionally 264 <code>null</code>) 265 * @param site whether the group is to be associated with a main site 266 * @param active whether the group is active 267 * @param serviceContext the service context to be applied (optionally 268 <code>null</code>). Can specify the group's asset category IDs, 269 asset tag names, and whether the group is for staging 270 * @return the group 271 * @throws PortalException if a creator could not be found, if the group's 272 information was invalid, if a layout could not be found, or if a 273 valid friendly URL could not be created for the group 274 * @throws SystemException if a system exception occurred 275 */ 276 public com.liferay.portal.model.Group addGroup(long userId, 277 java.lang.String className, long classPK, long liveGroupId, 278 java.lang.String name, java.lang.String description, int type, 279 java.lang.String friendlyURL, boolean site, boolean active, 280 com.liferay.portal.service.ServiceContext serviceContext) 281 throws com.liferay.portal.kernel.exception.PortalException, 282 com.liferay.portal.kernel.exception.SystemException { 283 return _groupLocalService.addGroup(userId, className, classPK, 284 liveGroupId, name, description, type, friendlyURL, site, active, 285 serviceContext); 286 } 287 288 /** 289 * Adds the group using the default live group. 290 * 291 * @param userId the primary key of the group's creator/owner 292 * @param className the entity's class name 293 * @param classPK the primary key of the entity's instance 294 * @param name the entity's name 295 * @param description the group's description (optionally 296 <code>null</code>) 297 * @param type the group's type. For more information see {@link 298 com.liferay.portal.model.GroupConstants} 299 * @param friendlyURL the group's friendlyURL 300 * @param site whether the group is to be associated with a main site 301 * @param active whether the group is active 302 * @param serviceContext the service context to be applied (optionally 303 <code>null</code>). Can specify the group's asset category IDs, 304 asset tag names, and whether the group is for staging 305 * @return the group 306 * @throws PortalException if a creator could not be found, if the group's 307 information was invalid, if a layout could not be found, or if a 308 valid friendly URL could not be created for the group 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portal.model.Group addGroup(long userId, 312 java.lang.String className, long classPK, java.lang.String name, 313 java.lang.String description, int type, java.lang.String friendlyURL, 314 boolean site, boolean active, 315 com.liferay.portal.service.ServiceContext serviceContext) 316 throws com.liferay.portal.kernel.exception.PortalException, 317 com.liferay.portal.kernel.exception.SystemException { 318 return _groupLocalService.addGroup(userId, className, classPK, name, 319 description, type, friendlyURL, site, active, serviceContext); 320 } 321 322 /** 323 * Adds the groups to the role. 324 * 325 * @param roleId the primary key of the role 326 * @param groupIds the primary keys of the groups 327 * @throws SystemException if a system exception occurred 328 */ 329 public void addRoleGroups(long roleId, long[] groupIds) 330 throws com.liferay.portal.kernel.exception.SystemException { 331 _groupLocalService.addRoleGroups(roleId, groupIds); 332 } 333 334 /** 335 * Adds the user to the groups. 336 * 337 * @param userId the primary key of the user 338 * @param groupIds the primary keys of the groups 339 * @throws SystemException if a system exception occurred 340 */ 341 public void addUserGroups(long userId, long[] groupIds) 342 throws com.liferay.portal.kernel.exception.SystemException { 343 _groupLocalService.addUserGroups(userId, groupIds); 344 } 345 346 /** 347 * Adds a company group if it does not exist. This method is typically used 348 * when a virtual host is added. 349 * 350 * @param companyId the primary key of the company 351 * @throws PortalException if a default user for the company could not be 352 found, if the group's information was invalid, if a layout could 353 not be found, or if a valid friendly URL could not be created 354 for the group 355 * @throws SystemException if a system exception occurred 356 */ 357 public void checkCompanyGroup(long companyId) 358 throws com.liferay.portal.kernel.exception.PortalException, 359 com.liferay.portal.kernel.exception.SystemException { 360 _groupLocalService.checkCompanyGroup(companyId); 361 } 362 363 /** 364 * Creates systems groups and other related data needed by the system on 365 * the very first startup. Also takes care of creating the control panel 366 * groups and layouts. 367 * 368 * @param companyId the primary key of the company 369 * @throws PortalException if a new system group could not be created 370 * @throws SystemException if a system exception occurred 371 */ 372 public void checkSystemGroups(long companyId) 373 throws com.liferay.portal.kernel.exception.PortalException, 374 com.liferay.portal.kernel.exception.SystemException { 375 _groupLocalService.checkSystemGroups(companyId); 376 } 377 378 /** 379 * Returns the group with the matching friendly URL. 380 * 381 * @param companyId the primary key of the company 382 * @param friendlyURL the friendly URL 383 * @return the group with the friendly URL, or <code>null</code> if a 384 matching group could not be found 385 * @throws SystemException if a system exception occurred 386 */ 387 public com.liferay.portal.model.Group fetchFriendlyURLGroup( 388 long companyId, java.lang.String friendlyURL) 389 throws com.liferay.portal.kernel.exception.SystemException { 390 return _groupLocalService.fetchFriendlyURLGroup(companyId, friendlyURL); 391 } 392 393 /** 394 * Returns the group with the matching group name. 395 * 396 * @param companyId the primary key of the company 397 * @param name the group's name 398 * @return the group with the name and associated company, or 399 <code>null</code> if a matching group could not be found 400 * @throws SystemException if a system exception occurred 401 */ 402 public com.liferay.portal.model.Group fetchGroup(long companyId, 403 java.lang.String name) 404 throws com.liferay.portal.kernel.exception.SystemException { 405 return _groupLocalService.fetchGroup(companyId, name); 406 } 407 408 /** 409 * Returns the company group. 410 * 411 * @param companyId the primary key of the company 412 * @return the group associated with the company 413 * @throws PortalException if a matching group could not be found 414 * @throws SystemException if a system exception occurred 415 */ 416 public com.liferay.portal.model.Group getCompanyGroup(long companyId) 417 throws com.liferay.portal.kernel.exception.PortalException, 418 com.liferay.portal.kernel.exception.SystemException { 419 return _groupLocalService.getCompanyGroup(companyId); 420 } 421 422 /** 423 * Returns a range of all the groups associated with the company. 424 * 425 * <p> 426 * Useful when paginating results. Returns a maximum of <code>end - 427 * start</code> instances. <code>start</code> and <code>end</code> are not 428 * primary keys, they are indexes in the result set. Thus, <code>0</code> 429 * refers to the first result in the set. Setting both <code>start</code> 430 * and <code>end</code> to {@link 431 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 432 * full result set. 433 * </p> 434 * 435 * @param companyId the primary key of the company 436 * @param start the lower bound of the range of groups to return 437 * @param end the upper bound of the range of groups to return (not 438 inclusive) 439 * @return the range of groups associated with the company 440 * @throws SystemException if a system exception occurred 441 */ 442 public java.util.List<com.liferay.portal.model.Group> getCompanyGroups( 443 long companyId, int start, int end) 444 throws com.liferay.portal.kernel.exception.SystemException { 445 return _groupLocalService.getCompanyGroups(companyId, start, end); 446 } 447 448 /** 449 * Returns the number of groups associated with the company. 450 * 451 * @param companyId the primary key of the company 452 * @return the number of groups associated with the company 453 * @throws SystemException if a system exception occurred 454 */ 455 public int getCompanyGroupsCount(long companyId) 456 throws com.liferay.portal.kernel.exception.SystemException { 457 return _groupLocalService.getCompanyGroupsCount(companyId); 458 } 459 460 /** 461 * Returns the group with the matching friendly URL. 462 * 463 * @param companyId the primary key of the company 464 * @param friendlyURL the group's friendlyURL 465 * @return the group with the friendly URL 466 * @throws PortalException if a matching group could not be found, or if 467 the friendly URL was invalid 468 * @throws SystemException if a system exception occurred 469 */ 470 public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId, 471 java.lang.String friendlyURL) 472 throws com.liferay.portal.kernel.exception.PortalException, 473 com.liferay.portal.kernel.exception.SystemException { 474 return _groupLocalService.getFriendlyURLGroup(companyId, friendlyURL); 475 } 476 477 /** 478 * Returns the group with the matching group name. 479 * 480 * @param companyId the primary key of the company 481 * @param name the group's name 482 * @return the group with the name 483 * @throws PortalException if a matching group could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public com.liferay.portal.model.Group getGroup(long companyId, 487 java.lang.String name) 488 throws com.liferay.portal.kernel.exception.PortalException, 489 com.liferay.portal.kernel.exception.SystemException { 490 return _groupLocalService.getGroup(companyId, name); 491 } 492 493 /** 494 * Returns the groups with the matching primary keys. 495 * 496 * @param groupIds the primary keys of the groups 497 * @return the groups with the primary keys 498 * @throws PortalException if any one of the groups could not be found 499 * @throws SystemException if a system exception occurred 500 */ 501 public java.util.List<com.liferay.portal.model.Group> getGroups( 502 long[] groupIds) 503 throws com.liferay.portal.kernel.exception.PortalException, 504 com.liferay.portal.kernel.exception.SystemException { 505 return _groupLocalService.getGroups(groupIds); 506 } 507 508 /** 509 * Returns the group associated with the layout. 510 * 511 * @param companyId the primary key of the company 512 * @param plid the primary key of the layout 513 * @return the group associated with the layout 514 * @throws PortalException if a matching group could not be found 515 * @throws SystemException if a system exception occurred 516 */ 517 public com.liferay.portal.model.Group getLayoutGroup(long companyId, 518 long plid) 519 throws com.liferay.portal.kernel.exception.PortalException, 520 com.liferay.portal.kernel.exception.SystemException { 521 return _groupLocalService.getLayoutGroup(companyId, plid); 522 } 523 524 /** 525 * Returns the group associated with the layout prototype. 526 * 527 * @param companyId the primary key of the company 528 * @param layoutPrototypeId the primary key of the layout prototype 529 * @return the group associated with the layout prototype 530 * @throws PortalException if a matching group could not be found 531 * @throws SystemException if a system exception occurred 532 */ 533 public com.liferay.portal.model.Group getLayoutPrototypeGroup( 534 long companyId, long layoutPrototypeId) 535 throws com.liferay.portal.kernel.exception.PortalException, 536 com.liferay.portal.kernel.exception.SystemException { 537 return _groupLocalService.getLayoutPrototypeGroup(companyId, 538 layoutPrototypeId); 539 } 540 541 /** 542 * Returns the group associated with the layout set prototype. 543 * 544 * @param companyId the primary key of the company 545 * @param layoutSetPrototypeId the primary key of the layout set prototype 546 * @return the group associated with the layout set prototype 547 * @throws PortalException if a matching group could not be found 548 * @throws SystemException if a system exception occurred 549 */ 550 public com.liferay.portal.model.Group getLayoutSetPrototypeGroup( 551 long companyId, long layoutSetPrototypeId) 552 throws com.liferay.portal.kernel.exception.PortalException, 553 com.liferay.portal.kernel.exception.SystemException { 554 return _groupLocalService.getLayoutSetPrototypeGroup(companyId, 555 layoutSetPrototypeId); 556 } 557 558 /** 559 * Returns all live groups. 560 * 561 * @return all live groups 562 * @throws SystemException if a system exception occurred 563 */ 564 public java.util.List<com.liferay.portal.model.Group> getLiveGroups() 565 throws com.liferay.portal.kernel.exception.SystemException { 566 return _groupLocalService.getLiveGroups(); 567 } 568 569 /** 570 * Returns a range of all non-system groups of a specified type (className) 571 * that have no layouts. 572 * 573 * <p> 574 * Useful when paginating results. Returns a maximum of <code>end - 575 * start</code> instances. <code>start</code> and <code>end</code> are not 576 * primary keys, they are indexes in the result set. Thus, <code>0</code> 577 * refers to the first result in the set. Setting both <code>start</code> 578 * and <code>end</code> to {@link 579 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 580 * full result set. 581 * </p> 582 * 583 * @param className the entity's class name 584 * @param privateLayout whether to include groups with private layout sets 585 or non-private layout sets 586 * @param start the lower bound of the range of groups to return 587 * @param end the upper bound of the range of groups to return (not 588 inclusive) 589 * @return the range of matching groups 590 * @throws SystemException if a system exception occurred 591 */ 592 public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups( 593 java.lang.String className, boolean privateLayout, int start, int end) 594 throws com.liferay.portal.kernel.exception.SystemException { 595 return _groupLocalService.getNoLayoutsGroups(className, privateLayout, 596 start, end); 597 } 598 599 /** 600 * Returns all non-system groups having <code>null</code> or empty friendly 601 * URLs. 602 * 603 * @return the non-system groups having <code>null</code> or empty friendly 604 URLs 605 * @throws SystemException if a system exception occurred 606 */ 607 public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups() 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return _groupLocalService.getNullFriendlyURLGroups(); 610 } 611 612 /** 613 * Returns the specified organization group. 614 * 615 * @param companyId the primary key of the company 616 * @param organizationId the primary key of the organization 617 * @return the group associated with the organization 618 * @throws PortalException if a matching group could not be found 619 * @throws SystemException if a system exception occurred 620 */ 621 public com.liferay.portal.model.Group getOrganizationGroup(long companyId, 622 long organizationId) 623 throws com.liferay.portal.kernel.exception.PortalException, 624 com.liferay.portal.kernel.exception.SystemException { 625 return _groupLocalService.getOrganizationGroup(companyId, organizationId); 626 } 627 628 /** 629 * Returns the specified organization groups. 630 * 631 * @param organizations the organizations 632 * @return the groups associated with the organizations 633 */ 634 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups( 635 java.util.List<com.liferay.portal.model.Organization> organizations) { 636 return _groupLocalService.getOrganizationsGroups(organizations); 637 } 638 639 /** 640 * Returns all the groups related to the organizations. 641 * 642 * @param organizations the organizations 643 * @return the groups related to the organizations 644 * @throws SystemException if a system exception occurred 645 */ 646 public java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups( 647 java.util.List<com.liferay.portal.model.Organization> organizations) 648 throws com.liferay.portal.kernel.exception.SystemException { 649 return _groupLocalService.getOrganizationsRelatedGroups(organizations); 650 } 651 652 /** 653 * Returns all the groups associated with the role. 654 * 655 * @param roleId the primary key of the role 656 * @return the groups associated with the role 657 * @throws SystemException if a system exception occurred 658 */ 659 public java.util.List<com.liferay.portal.model.Group> getRoleGroups( 660 long roleId) throws com.liferay.portal.kernel.exception.SystemException { 661 return _groupLocalService.getRoleGroups(roleId); 662 } 663 664 /** 665 * Returns the staging group. 666 * 667 * @param liveGroupId the primary key of the live group 668 * @return the staging group 669 * @throws PortalException if a matching staging group could not be found 670 * @throws SystemException if a system exception occurred 671 */ 672 public com.liferay.portal.model.Group getStagingGroup(long liveGroupId) 673 throws com.liferay.portal.kernel.exception.PortalException, 674 com.liferay.portal.kernel.exception.SystemException { 675 return _groupLocalService.getStagingGroup(liveGroupId); 676 } 677 678 /** 679 * Returns the group associated with the user. 680 * 681 * @param companyId the primary key of the company 682 * @param userId the primary key of the user 683 * @return the group associated with the user 684 * @throws PortalException if a matching group could not be found 685 * @throws SystemException if a system exception occurred 686 */ 687 public com.liferay.portal.model.Group getUserGroup(long companyId, 688 long userId) 689 throws com.liferay.portal.kernel.exception.PortalException, 690 com.liferay.portal.kernel.exception.SystemException { 691 return _groupLocalService.getUserGroup(companyId, userId); 692 } 693 694 /** 695 * Returns the specified "user group" group. That is, the group that 696 * represents the {@link com.liferay.portal.model.UserGroup} entity. 697 * 698 * @param companyId the primary key of the company 699 * @param userGroupId the primary key of the user group 700 * @return the group associated with the user group 701 * @throws PortalException if a matching group could not be found 702 * @throws SystemException if a system exception occurred 703 */ 704 public com.liferay.portal.model.Group getUserGroupGroup(long companyId, 705 long userGroupId) 706 throws com.liferay.portal.kernel.exception.PortalException, 707 com.liferay.portal.kernel.exception.SystemException { 708 return _groupLocalService.getUserGroupGroup(companyId, userGroupId); 709 } 710 711 /** 712 * Returns all the user's site groups and immediate organization groups. 713 * System and staged groups are not included. 714 * 715 * @param userId the primary key of the user 716 * @return the user's groups and organization groups 717 * @throws PortalException if a user with the primary key could not be 718 found 719 * @throws SystemException if a system exception occurred 720 */ 721 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 722 long userId) 723 throws com.liferay.portal.kernel.exception.PortalException, 724 com.liferay.portal.kernel.exception.SystemException { 725 return _groupLocalService.getUserGroups(userId); 726 } 727 728 /** 729 * Returns all the user's site groups and immediate organization groups, 730 * optionally including the user's inherited organization groups and user 731 * groups. System and staged groups are not included. 732 * 733 * @param userId the primary key of the user 734 * @param inherit whether to include the user's inherited organization 735 groups and user groups 736 * @return the user's groups and immediate organization groups 737 * @throws PortalException if a user with the primary key could not be 738 found 739 * @throws SystemException if a system exception occurred 740 */ 741 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 742 long userId, boolean inherit) 743 throws com.liferay.portal.kernel.exception.PortalException, 744 com.liferay.portal.kernel.exception.SystemException { 745 return _groupLocalService.getUserGroups(userId, inherit); 746 } 747 748 /** 749 * Returns a name ordered range of all the user's site groups and immediate 750 * organization groups, optionally including the user's inherited 751 * organization groups and user groups. System and staged groups are not 752 * included. 753 * 754 * <p> 755 * Useful when paginating results. Returns a maximum of <code>end - 756 * start</code> instances. <code>start</code> and <code>end</code> are not 757 * primary keys, they are indexes in the result set. Thus, <code>0</code> 758 * refers to the first result in the set. Setting both <code>start</code> 759 * and <code>end</code> to {@link 760 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 761 * full result set. 762 * </p> 763 * 764 * @param userId the primary key of the user 765 * @param inherit whether to include the user's inherited organization 766 groups and user groups 767 * @param start the lower bound of the range of groups to return 768 * @param end the upper bound of the range of groups to return (not 769 inclusive) 770 * @return the range of the user's groups and immediate organization groups 771 ordered by name 772 * @throws PortalException if a user with the primary key could not be 773 found 774 * @throws SystemException if a system exception occurred 775 */ 776 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 777 long userId, boolean inherit, int start, int end) 778 throws com.liferay.portal.kernel.exception.PortalException, 779 com.liferay.portal.kernel.exception.SystemException { 780 return _groupLocalService.getUserGroups(userId, inherit, start, end); 781 } 782 783 /** 784 * Returns a name ordered range of all the user's site groups and immediate 785 * organization groups. System and staged groups are not included. 786 * 787 * <p> 788 * Useful when paginating results. Returns a maximum of <code>end - 789 * start</code> instances. <code>start</code> and <code>end</code> are not 790 * primary keys, they are indexes in the result set. Thus, <code>0</code> 791 * refers to the first result in the set. Setting both <code>start</code> 792 * and <code>end</code> to {@link 793 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 794 * full result set. 795 * </p> 796 * 797 * @param userId the primary key of the user 798 * @param start the lower bound of the range of groups to return 799 * @param end the upper bound of the range of groups to return (not 800 inclusive) 801 * @return the range of the user's groups and organization groups ordered 802 by name 803 * @throws PortalException if a user with the primary key could not be 804 found 805 * @throws SystemException if a system exception occurred 806 */ 807 public java.util.List<com.liferay.portal.model.Group> getUserGroups( 808 long userId, int start, int end) 809 throws com.liferay.portal.kernel.exception.PortalException, 810 com.liferay.portal.kernel.exception.SystemException { 811 return _groupLocalService.getUserGroups(userId, start, end); 812 } 813 814 /** 815 * Returns the groups associated with the user groups. 816 * 817 * @param userGroups the user groups 818 * @return the groups associated with the user groups 819 * @throws PortalException if any one of the user group's group could not 820 be found 821 * @throws SystemException if a system exception occurred 822 */ 823 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups( 824 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 825 throws com.liferay.portal.kernel.exception.PortalException, 826 com.liferay.portal.kernel.exception.SystemException { 827 return _groupLocalService.getUserGroupsGroups(userGroups); 828 } 829 830 /** 831 * Returns all the groups related to the user groups. 832 * 833 * @param userGroups the user groups 834 * @return the groups related to the user groups 835 * @throws SystemException if a system exception occurred 836 */ 837 public java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups( 838 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 839 throws com.liferay.portal.kernel.exception.SystemException { 840 return _groupLocalService.getUserGroupsRelatedGroups(userGroups); 841 } 842 843 /** 844 * Returns the range of all groups associated with the user's organization 845 * groups, including the ancestors of the organization groups, unless 846 * portal property <code>organizations.membership.strict</code> is set to 847 * <code>true</code>. 848 * 849 * <p> 850 * Useful when paginating results. Returns a maximum of <code>end - 851 * start</code> instances. <code>start</code> and <code>end</code> are not 852 * primary keys, they are indexes in the result set. Thus, <code>0</code> 853 * refers to the first result in the set. Setting both <code>start</code> 854 * and <code>end</code> to {@link 855 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 856 * full result set. 857 * </p> 858 * 859 * @param userId the primary key of the user 860 * @param start the lower bound of the range of groups to consider 861 * @param end the upper bound of the range of groups to consider (not 862 inclusive) 863 * @return the range of groups associated with the user's organization 864 groups 865 * @throws PortalException if a user with the primary key could not be 866 found or if another portal exception occurred 867 * @throws SystemException if a system exception occurred 868 */ 869 public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups( 870 long userId, int start, int end) 871 throws com.liferay.portal.kernel.exception.PortalException, 872 com.liferay.portal.kernel.exception.SystemException { 873 return _groupLocalService.getUserOrganizationsGroups(userId, start, end); 874 } 875 876 /** 877 * Returns <code>true</code> if the group is associated with the role. 878 * 879 * @param roleId the primary key of the role 880 * @param groupId the primary key of the group 881 * @return <code>true</code> if the group is associated with the role; 882 <code>false</code> otherwise 883 * @throws SystemException if a system exception occurred 884 */ 885 public boolean hasRoleGroup(long roleId, long groupId) 886 throws com.liferay.portal.kernel.exception.SystemException { 887 return _groupLocalService.hasRoleGroup(roleId, groupId); 888 } 889 890 /** 891 * Returns <code>true</code> if the live group has a staging group. 892 * 893 * @param liveGroupId the primary key of the live group 894 * @return <code>true</code> if the live group has a staging group; 895 <code>false</code> otherwise 896 * @throws SystemException if a system exception occurred 897 */ 898 public boolean hasStagingGroup(long liveGroupId) 899 throws com.liferay.portal.kernel.exception.SystemException { 900 return _groupLocalService.hasStagingGroup(liveGroupId); 901 } 902 903 /** 904 * Returns <code>true</code> if the user is immediately associated with the 905 * group, or associated with the group via the user's organizations, 906 * inherited organizations, or user groups. 907 * 908 * @param userId the primary key of the user 909 * @param groupId the primary key of the group 910 * @return <code>true</code> if the user is associated with the group; 911 <code>false</code> otherwise 912 * @throws SystemException if a system exception occurred 913 */ 914 public boolean hasUserGroup(long userId, long groupId) 915 throws com.liferay.portal.kernel.exception.SystemException { 916 return _groupLocalService.hasUserGroup(userId, groupId); 917 } 918 919 /** 920 * Returns <code>true</code> if the user is immediately associated with the 921 * group, or optionally if the user is associated with the group via the 922 * user's organizations, inherited organizations, or user groups. 923 * 924 * @param userId the primary key of the user 925 * @param groupId the primary key of the group 926 * @param inherit whether to include organization groups and user groups 927 to which the user belongs in the determination 928 * @return <code>true</code> if the user is associated with the group; 929 <code>false</code> otherwise 930 * @throws SystemException if a system exception occurred 931 */ 932 public boolean hasUserGroup(long userId, long groupId, boolean inherit) 933 throws com.liferay.portal.kernel.exception.SystemException { 934 return _groupLocalService.hasUserGroup(userId, groupId, inherit); 935 } 936 937 public com.liferay.portal.model.Group loadFetchGroup(long companyId, 938 java.lang.String name) 939 throws com.liferay.portal.kernel.exception.SystemException { 940 return _groupLocalService.loadFetchGroup(companyId, name); 941 } 942 943 public com.liferay.portal.model.Group loadGetGroup(long companyId, 944 java.lang.String name) 945 throws com.liferay.portal.kernel.exception.PortalException, 946 com.liferay.portal.kernel.exception.SystemException { 947 return _groupLocalService.loadGetGroup(companyId, name); 948 } 949 950 public java.util.List<com.liferay.portal.model.Group> search( 951 long companyId, 952 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 953 int start, int end) 954 throws com.liferay.portal.kernel.exception.SystemException { 955 return _groupLocalService.search(companyId, params, start, end); 956 } 957 958 /** 959 * Returns a name ordered range of all the groups that match the class name 960 * IDs, name, and description, optionally including the user's inherited 961 * organization groups and user groups. System and staged groups are not 962 * included. 963 * 964 * <p> 965 * Useful when paginating results. Returns a maximum of <code>end - 966 * start</code> instances. <code>start</code> and <code>end</code> are not 967 * primary keys, they are indexes in the result set. Thus, <code>0</code> 968 * refers to the first result in the set. Setting both <code>start</code> 969 * and <code>end</code> to {@link 970 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 971 * full result set. 972 * </p> 973 * 974 * @param companyId the primary key of the company 975 * @param classNameIds the class names of entities to include in the 976 search (optionally <code>null</code>) 977 * @param name the group's name (optionally <code>null</code>) 978 * @param description the group's description (optionally 979 <code>null</code>) 980 * @param params the finder params (optionally <code>null</code>). To 981 include a user's organizations, inherited organizations, and 982 user groups in the search, add an entry with key 983 "usersGroups" mapped to the user's ID and an entry 984 with key "inherit" mapped to a non-<code>null</code> 985 object. For more information see {@link 986 com.liferay.portal.service.persistence.GroupFinder} 987 com.liferay.portal.service.persistence.GroupFinder} 988 * @param start the lower bound of the range of groups to return 989 * @param end the upper bound of the range of groups to return (not 990 inclusive) 991 * @return the matching groups ordered by name 992 * @throws SystemException if a system exception occurred 993 */ 994 public java.util.List<com.liferay.portal.model.Group> search( 995 long companyId, long[] classNameIds, java.lang.String name, 996 java.lang.String description, 997 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 998 int start, int end) 999 throws com.liferay.portal.kernel.exception.SystemException { 1000 return _groupLocalService.search(companyId, classNameIds, name, 1001 description, params, start, end); 1002 } 1003 1004 /** 1005 * Returns an ordered range of all the groups that match the class name 1006 * IDs, name, and description, optionally including the user's inherited 1007 * organization groups and user groups. System and staged groups are not 1008 * included. 1009 * 1010 * <p> 1011 * Useful when paginating results. Returns a maximum of <code>end - 1012 * start</code> instances. <code>start</code> and <code>end</code> are not 1013 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1014 * refers to the first result in the set. Setting both <code>start</code> 1015 * and <code>end</code> to {@link 1016 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 1017 * full result set. 1018 * </p> 1019 * 1020 * @param companyId the primary key of the company 1021 * @param classNameIds the group's class name IDs (optionally 1022 <code>null</code>) 1023 * @param name the group's name (optionally <code>null</code>) 1024 * @param description the group's description (optionally 1025 <code>null</code>) 1026 * @param params the finder params (optionally <code>null</code>). To 1027 include a user's organizations, inherited organizations, and 1028 user groups in the search, add an entry with key 1029 "usersGroups" mapped to the user's ID and an entry 1030 with key "inherit" mapped to a non-<code>null</code> 1031 object. For more information see {@link 1032 com.liferay.portal.service.persistence.GroupFinder} 1033 * @param start the lower bound of the range of groups to return 1034 * @param end the upper bound of the range of groups to return (not 1035 inclusive) 1036 * @param obc the comparator to order the groups (optionally 1037 <code>null</code>) 1038 * @return the matching groups ordered by comparator <code>obc</code> 1039 * @throws SystemException if a system exception occurred 1040 */ 1041 public java.util.List<com.liferay.portal.model.Group> search( 1042 long companyId, long[] classNameIds, java.lang.String name, 1043 java.lang.String description, 1044 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1045 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 1046 throws com.liferay.portal.kernel.exception.SystemException { 1047 return _groupLocalService.search(companyId, classNameIds, name, 1048 description, params, start, end, obc); 1049 } 1050 1051 /** 1052 * Returns a name ordered range of all the site groups and organization 1053 * groups that match the name and description, optionally including the 1054 * user's inherited organization groups and user groups. System and staged 1055 * groups are not included. 1056 * 1057 * <p> 1058 * Useful when paginating results. Returns a maximum of <code>end - 1059 * start</code> instances. <code>start</code> and <code>end</code> are not 1060 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1061 * refers to the first result in the set. Setting both <code>start</code> 1062 * and <code>end</code> to {@link 1063 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 1064 * full result set. 1065 * </p> 1066 * 1067 * @param companyId the primary key of the company 1068 * @param name the group's name (optionally <code>null</code>) 1069 * @param description the group's description (optionally 1070 <code>null</code>) 1071 * @param params the finder params (optionally <code>null</code>). To 1072 include the user's inherited organizations and user groups in 1073 the search, add entries having "usersGroups" and 1074 "inherit" as keys mapped to the the user's ID. For 1075 more information see {@link 1076 com.liferay.portal.service.persistence.GroupFinder} 1077 * @param start the lower bound of the range of groups to return 1078 * @param end the upper bound of the range of groups to return (not 1079 inclusive) 1080 * @return the matching groups ordered by name 1081 * @throws SystemException if a system exception occurred 1082 */ 1083 public java.util.List<com.liferay.portal.model.Group> search( 1084 long companyId, java.lang.String name, java.lang.String description, 1085 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1086 int start, int end) 1087 throws com.liferay.portal.kernel.exception.SystemException { 1088 return _groupLocalService.search(companyId, name, description, params, 1089 start, end); 1090 } 1091 1092 /** 1093 * Returns an ordered range of all the site groups and organization groups 1094 * that match the name and description, optionally including the user's 1095 * inherited organization groups and user groups. System and staged groups 1096 * are not included. 1097 * 1098 * <p> 1099 * Useful when paginating results. Returns a maximum of <code>end - 1100 * start</code> instances. <code>start</code> and <code>end</code> are not 1101 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1102 * refers to the first result in the set. Setting both <code>start</code> 1103 * and <code>end</code> to {@link 1104 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the 1105 * full result set. 1106 * </p> 1107 * 1108 * @param companyId the primary key of the company 1109 * @param name the group's name (optionally <code>null</code>) 1110 * @param description the group's description (optionally 1111 <code>null</code>) 1112 * @param params the finder params (optionally <code>null</code>). To 1113 include the user's inherited organizations and user groups in 1114 the search, add entries having "usersGroups" and 1115 "inherit" as keys mapped to the the user's ID. For 1116 more information see {@link 1117 com.liferay.portal.service.persistence.GroupFinder} 1118 * @param start the lower bound of the range of groups to return 1119 * @param end the upper bound of the range of groups to return (not 1120 inclusive) 1121 * @param obc the comparator to order the groups (optionally 1122 <code>null</code>) 1123 * @return the matching groups ordered by comparator <code>obc</code> 1124 * @throws SystemException if a system exception occurred 1125 */ 1126 public java.util.List<com.liferay.portal.model.Group> search( 1127 long companyId, java.lang.String name, java.lang.String description, 1128 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 1129 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 1130 throws com.liferay.portal.kernel.exception.SystemException { 1131 return _groupLocalService.search(companyId, name, description, params, 1132 start, end, obc); 1133 } 1134 1135 /** 1136 * Returns the number of groups that match the class name IDs, name, and 1137 * description, optionally including the user's inherited organization 1138 * groups and user groups. System and staged groups are not included. 1139 * 1140 * @param companyId the primary key of the company 1141 * @param classNameIds the class names of entities to include in the 1142 search (optionally <code>null</code>) 1143 * @param name the group's name (optionally <code>null</code>) 1144 * @param description the group's description (optionally 1145 <code>null</code>) 1146 * @param params the finder params (optionally <code>null</code>). To 1147 include the user's inherited organization groups and user groups 1148 in the search, add entries having "usersGroups" and 1149 "inherit" as keys mapped to the the user's ID. For 1150 more information see {@link 1151 com.liferay.portal.service.persistence.GroupFinder} 1152 * @return the number of matching groups 1153 * @throws SystemException if a system exception occurred 1154 */ 1155 public int searchCount(long companyId, long[] classNameIds, 1156 java.lang.String name, java.lang.String description, 1157 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 1158 throws com.liferay.portal.kernel.exception.SystemException { 1159 return _groupLocalService.searchCount(companyId, classNameIds, name, 1160 description, params); 1161 } 1162 1163 /** 1164 * Returns the number of groups and immediate organization groups that 1165 * match the name and description, optionally including the user's 1166 * inherited organization groups and user groups. System and staged groups 1167 * are not included. 1168 * 1169 * @param companyId the primary key of the company 1170 * @param name the group's name (optionally <code>null</code>) 1171 * @param description the group's description (optionally 1172 <code>null</code>) 1173 * @param params the finder params (optionally <code>null</code>). To 1174 include the user's inherited organization groups and user groups 1175 in the search, add entries having "usersGroups" and 1176 "inherit" as keys mapped to the the user's ID. For 1177 more information see {@link 1178 com.liferay.portal.service.persistence.GroupFinder} 1179 * @return the number of matching groups 1180 * @throws SystemException if a system exception occurred 1181 */ 1182 public int searchCount(long companyId, java.lang.String name, 1183 java.lang.String description, 1184 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 1185 throws com.liferay.portal.kernel.exception.SystemException { 1186 return _groupLocalService.searchCount(companyId, name, description, 1187 params); 1188 } 1189 1190 /** 1191 * Sets the groups associated with the role, removing and adding 1192 * associations as necessary. 1193 * 1194 * @param roleId the primary key of the role 1195 * @param groupIds the primary keys of the groups 1196 * @throws SystemException if a system exception occurred 1197 */ 1198 public void setRoleGroups(long roleId, long[] groupIds) 1199 throws com.liferay.portal.kernel.exception.SystemException { 1200 _groupLocalService.setRoleGroups(roleId, groupIds); 1201 } 1202 1203 /** 1204 * Removes the groups from the role. 1205 * 1206 * @param roleId the primary key of the role 1207 * @param groupIds the primary keys of the groups 1208 * @throws SystemException if a system exception occurred 1209 */ 1210 public void unsetRoleGroups(long roleId, long[] groupIds) 1211 throws com.liferay.portal.kernel.exception.SystemException { 1212 _groupLocalService.unsetRoleGroups(roleId, groupIds); 1213 } 1214 1215 /** 1216 * Removes the user from the groups. 1217 * 1218 * @param userId the primary key of the user 1219 * @param groupIds the primary keys of the groups 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public void unsetUserGroups(long userId, long[] groupIds) 1223 throws com.liferay.portal.kernel.exception.SystemException { 1224 _groupLocalService.unsetUserGroups(userId, groupIds); 1225 } 1226 1227 /** 1228 * Updates the group's asset replacing categories and tag names. 1229 * 1230 * @param userId the primary key of the user 1231 * @param group the group 1232 * @param assetCategoryIds the primary keys of the asset categories 1233 (optionally <code>null</code>) 1234 * @param assetTagNames the asset tag names (optionally <code>null</code>) 1235 * @throws PortalException if a user with the primary key could not be 1236 found 1237 * @throws SystemException if a system exception occurred 1238 */ 1239 public void updateAsset(long userId, com.liferay.portal.model.Group group, 1240 long[] assetCategoryIds, java.lang.String[] assetTagNames) 1241 throws com.liferay.portal.kernel.exception.PortalException, 1242 com.liferay.portal.kernel.exception.SystemException { 1243 _groupLocalService.updateAsset(userId, group, assetCategoryIds, 1244 assetTagNames); 1245 } 1246 1247 /** 1248 * Updates the group's friendly URL. 1249 * 1250 * @param groupId the primary key of the group 1251 * @param friendlyURL the group's new friendlyURL (optionally 1252 <code>null</code>) 1253 * @return the group 1254 * @throws PortalException if a group with the primary key could not be 1255 found or if a valid friendly URL could not be created for the 1256 group 1257 * @throws SystemException if a system exception occurred 1258 */ 1259 public com.liferay.portal.model.Group updateFriendlyURL(long groupId, 1260 java.lang.String friendlyURL) 1261 throws com.liferay.portal.kernel.exception.PortalException, 1262 com.liferay.portal.kernel.exception.SystemException { 1263 return _groupLocalService.updateFriendlyURL(groupId, friendlyURL); 1264 } 1265 1266 /** 1267 * Updates the group's type settings. 1268 * 1269 * @param groupId the primary key of the group 1270 * @param typeSettings the group's new type settings (optionally 1271 <code>null</code>) 1272 * @return the group 1273 * @throws PortalException if a group with the primary key could not be 1274 found 1275 * @throws SystemException if a system exception occurred 1276 */ 1277 public com.liferay.portal.model.Group updateGroup(long groupId, 1278 java.lang.String typeSettings) 1279 throws com.liferay.portal.kernel.exception.PortalException, 1280 com.liferay.portal.kernel.exception.SystemException { 1281 return _groupLocalService.updateGroup(groupId, typeSettings); 1282 } 1283 1284 /** 1285 * Updates the group. 1286 * 1287 * @param groupId the primary key of the group 1288 * @param name the group's new name 1289 * @param description the group's new description (optionally 1290 <code>null</code>) 1291 * @param type the group's new type. For more information see {@link 1292 com.liferay.portal.model.GroupConstants} 1293 * @param friendlyURL the group's new friendlyURL (optionally 1294 <code>null</code>) 1295 * @param active whether the group is active 1296 * @param serviceContext the service context to be applied (optionally 1297 <code>null</code>). Can specify the group's replacement asset 1298 category IDs and replacement asset tag names 1299 * @return the group 1300 * @throws PortalException if a group with the primary key could not be 1301 found or if the friendly URL was invalid or could one not be 1302 created 1303 * @throws SystemException if a system exception occurred 1304 */ 1305 public com.liferay.portal.model.Group updateGroup(long groupId, 1306 java.lang.String name, java.lang.String description, int type, 1307 java.lang.String friendlyURL, boolean active, 1308 com.liferay.portal.service.ServiceContext serviceContext) 1309 throws com.liferay.portal.kernel.exception.PortalException, 1310 com.liferay.portal.kernel.exception.SystemException { 1311 return _groupLocalService.updateGroup(groupId, name, description, type, 1312 friendlyURL, active, serviceContext); 1313 } 1314 1315 /** 1316 * Associates the group with a main site if the group is an organization. 1317 * 1318 * @param groupId the primary key of the group 1319 * @param site whether the group is to be associated with a main site 1320 * @return the group 1321 * @throws PortalException if a group with the primary key could not be 1322 found 1323 * @throws SystemException if a system exception occurred 1324 */ 1325 public com.liferay.portal.model.Group updateSite(long groupId, boolean site) 1326 throws com.liferay.portal.kernel.exception.PortalException, 1327 com.liferay.portal.kernel.exception.SystemException { 1328 return _groupLocalService.updateSite(groupId, site); 1329 } 1330 1331 /** 1332 * @deprecated Renamed to {@link #getWrappedService} 1333 */ 1334 public GroupLocalService getWrappedGroupLocalService() { 1335 return _groupLocalService; 1336 } 1337 1338 /** 1339 * @deprecated Renamed to {@link #setWrappedService} 1340 */ 1341 public void setWrappedGroupLocalService(GroupLocalService groupLocalService) { 1342 _groupLocalService = groupLocalService; 1343 } 1344 1345 public GroupLocalService getWrappedService() { 1346 return _groupLocalService; 1347 } 1348 1349 public void setWrappedService(GroupLocalService groupLocalService) { 1350 _groupLocalService = groupLocalService; 1351 } 1352 1353 private GroupLocalService _groupLocalService; 1354 }