001 /** 002 * Copyright (c) 2000-2012 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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.util.ReferenceRegistry; 019 020 /** 021 * The utility for the user group local service. This utility wraps {@link com.liferay.portal.service.impl.UserGroupLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server. 022 * 023 * <p> 024 * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM. 025 * </p> 026 * 027 * @author Brian Wing Shun Chan 028 * @see UserGroupLocalService 029 * @see com.liferay.portal.service.base.UserGroupLocalServiceBaseImpl 030 * @see com.liferay.portal.service.impl.UserGroupLocalServiceImpl 031 * @generated 032 */ 033 public class UserGroupLocalServiceUtil { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.UserGroupLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. 038 */ 039 040 /** 041 * Adds the user group to the database. Also notifies the appropriate model listeners. 042 * 043 * @param userGroup the user group 044 * @return the user group that was added 045 * @throws SystemException if a system exception occurred 046 */ 047 public static com.liferay.portal.model.UserGroup addUserGroup( 048 com.liferay.portal.model.UserGroup userGroup) 049 throws com.liferay.portal.kernel.exception.SystemException { 050 return getService().addUserGroup(userGroup); 051 } 052 053 /** 054 * Creates a new user group with the primary key. Does not add the user group to the database. 055 * 056 * @param userGroupId the primary key for the new user group 057 * @return the new user group 058 */ 059 public static com.liferay.portal.model.UserGroup createUserGroup( 060 long userGroupId) { 061 return getService().createUserGroup(userGroupId); 062 } 063 064 /** 065 * Deletes the user group with the primary key from the database. Also notifies the appropriate model listeners. 066 * 067 * @param userGroupId the primary key of the user group 068 * @return the user group that was removed 069 * @throws PortalException if a user group with the primary key could not be found 070 * @throws SystemException if a system exception occurred 071 */ 072 public static com.liferay.portal.model.UserGroup deleteUserGroup( 073 long userGroupId) 074 throws com.liferay.portal.kernel.exception.PortalException, 075 com.liferay.portal.kernel.exception.SystemException { 076 return getService().deleteUserGroup(userGroupId); 077 } 078 079 /** 080 * Deletes the user group from the database. Also notifies the appropriate model listeners. 081 * 082 * @param userGroup the user group 083 * @return the user group that was removed 084 * @throws PortalException 085 * @throws SystemException if a system exception occurred 086 */ 087 public static com.liferay.portal.model.UserGroup deleteUserGroup( 088 com.liferay.portal.model.UserGroup userGroup) 089 throws com.liferay.portal.kernel.exception.PortalException, 090 com.liferay.portal.kernel.exception.SystemException { 091 return getService().deleteUserGroup(userGroup); 092 } 093 094 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 095 return getService().dynamicQuery(); 096 } 097 098 /** 099 * Performs a dynamic query on the database and returns the matching rows. 100 * 101 * @param dynamicQuery the dynamic query 102 * @return the matching rows 103 * @throws SystemException if a system exception occurred 104 */ 105 @SuppressWarnings("rawtypes") 106 public static java.util.List dynamicQuery( 107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 108 throws com.liferay.portal.kernel.exception.SystemException { 109 return getService().dynamicQuery(dynamicQuery); 110 } 111 112 /** 113 * Performs a dynamic query on the database and returns a range of the matching rows. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param dynamicQuery the dynamic query 120 * @param start the lower bound of the range of model instances 121 * @param end the upper bound of the range of model instances (not inclusive) 122 * @return the range of matching rows 123 * @throws SystemException if a system exception occurred 124 */ 125 @SuppressWarnings("rawtypes") 126 public static java.util.List dynamicQuery( 127 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 128 int end) throws com.liferay.portal.kernel.exception.SystemException { 129 return getService().dynamicQuery(dynamicQuery, start, end); 130 } 131 132 /** 133 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 134 * 135 * <p> 136 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 137 * </p> 138 * 139 * @param dynamicQuery the dynamic query 140 * @param start the lower bound of the range of model instances 141 * @param end the upper bound of the range of model instances (not inclusive) 142 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 143 * @return the ordered range of matching rows 144 * @throws SystemException if a system exception occurred 145 */ 146 @SuppressWarnings("rawtypes") 147 public static java.util.List dynamicQuery( 148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 149 int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException { 152 return getService() 153 .dynamicQuery(dynamicQuery, start, end, orderByComparator); 154 } 155 156 /** 157 * Returns the number of rows that match the dynamic query. 158 * 159 * @param dynamicQuery the dynamic query 160 * @return the number of rows that match the dynamic query 161 * @throws SystemException if a system exception occurred 162 */ 163 public static long dynamicQueryCount( 164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return getService().dynamicQueryCount(dynamicQuery); 167 } 168 169 public static com.liferay.portal.model.UserGroup fetchUserGroup( 170 long userGroupId) 171 throws com.liferay.portal.kernel.exception.SystemException { 172 return getService().fetchUserGroup(userGroupId); 173 } 174 175 /** 176 * Returns the user group with the primary key. 177 * 178 * @param userGroupId the primary key of the user group 179 * @return the user group 180 * @throws PortalException if a user group with the primary key could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public static com.liferay.portal.model.UserGroup getUserGroup( 184 long userGroupId) 185 throws com.liferay.portal.kernel.exception.PortalException, 186 com.liferay.portal.kernel.exception.SystemException { 187 return getService().getUserGroup(userGroupId); 188 } 189 190 public static com.liferay.portal.model.PersistedModel getPersistedModel( 191 java.io.Serializable primaryKeyObj) 192 throws com.liferay.portal.kernel.exception.PortalException, 193 com.liferay.portal.kernel.exception.SystemException { 194 return getService().getPersistedModel(primaryKeyObj); 195 } 196 197 /** 198 * Returns a range of all the user groups. 199 * 200 * <p> 201 * 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. 202 * </p> 203 * 204 * @param start the lower bound of the range of user groups 205 * @param end the upper bound of the range of user groups (not inclusive) 206 * @return the range of user groups 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 210 int start, int end) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getService().getUserGroups(start, end); 213 } 214 215 /** 216 * Returns the number of user groups. 217 * 218 * @return the number of user groups 219 * @throws SystemException if a system exception occurred 220 */ 221 public static int getUserGroupsCount() 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getService().getUserGroupsCount(); 224 } 225 226 /** 227 * Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 228 * 229 * @param userGroup the user group 230 * @return the user group that was updated 231 * @throws SystemException if a system exception occurred 232 */ 233 public static com.liferay.portal.model.UserGroup updateUserGroup( 234 com.liferay.portal.model.UserGroup userGroup) 235 throws com.liferay.portal.kernel.exception.SystemException { 236 return getService().updateUserGroup(userGroup); 237 } 238 239 /** 240 * Returns the Spring bean ID for this bean. 241 * 242 * @return the Spring bean ID for this bean 243 */ 244 public static java.lang.String getBeanIdentifier() { 245 return getService().getBeanIdentifier(); 246 } 247 248 /** 249 * Sets the Spring bean ID for this bean. 250 * 251 * @param beanIdentifier the Spring bean ID for this bean 252 */ 253 public static void setBeanIdentifier(java.lang.String beanIdentifier) { 254 getService().setBeanIdentifier(beanIdentifier); 255 } 256 257 /** 258 * Adds the user groups to the group. 259 * 260 * @param groupId the primary key of the group 261 * @param userGroupIds the primary keys of the user groups 262 * @throws SystemException if a system exception occurred 263 */ 264 public static void addGroupUserGroups(long groupId, long[] userGroupIds) 265 throws com.liferay.portal.kernel.exception.SystemException { 266 getService().addGroupUserGroups(groupId, userGroupIds); 267 } 268 269 /** 270 * Adds the user groups to the team. 271 * 272 * @param teamId the primary key of the team 273 * @param userGroupIds the primary keys of the user groups 274 * @throws SystemException if a system exception occurred 275 */ 276 public static void addTeamUserGroups(long teamId, long[] userGroupIds) 277 throws com.liferay.portal.kernel.exception.SystemException { 278 getService().addTeamUserGroups(teamId, userGroupIds); 279 } 280 281 /** 282 * Adds a user group. 283 * 284 * <p> 285 * This method handles the creation and bookkeeping of the user group, 286 * including its resources, metadata, and internal data structures. It is 287 * not necessary to make subsequent calls to setup default groups and 288 * resources for the user group. 289 * </p> 290 * 291 * @param userId the primary key of the user 292 * @param companyId the primary key of the user group's company 293 * @param name the user group's name 294 * @param description the user group's description 295 * @return the user group 296 * @throws PortalException if the user group's information was invalid 297 * @throws SystemException if a system exception occurred 298 */ 299 public static com.liferay.portal.model.UserGroup addUserGroup(long userId, 300 long companyId, java.lang.String name, java.lang.String description) 301 throws com.liferay.portal.kernel.exception.PortalException, 302 com.liferay.portal.kernel.exception.SystemException { 303 return getService().addUserGroup(userId, companyId, name, description); 304 } 305 306 /** 307 * Clears all associations between the user and its user groups and clears 308 * the permissions cache. 309 * 310 * <p> 311 * This method is called from {@link #deleteUserGroup(UserGroup)}. 312 * </p> 313 * 314 * @param userId the primary key of the user 315 * @throws SystemException if a system exception occurred 316 */ 317 public static void clearUserUserGroups(long userId) 318 throws com.liferay.portal.kernel.exception.SystemException { 319 getService().clearUserUserGroups(userId); 320 } 321 322 /** 323 * Copies the user group's layouts to the users who are not already members 324 * of the user group. 325 * 326 * @param userGroupId the primary key of the user group 327 * @param userIds the primary keys of the users 328 * @throws PortalException if any one of the users could not be found or 329 if a portal exception occurred 330 * @throws SystemException if a system exception occurred 331 * @deprecated 332 */ 333 public static void copyUserGroupLayouts(long userGroupId, long[] userIds) 334 throws com.liferay.portal.kernel.exception.PortalException, 335 com.liferay.portal.kernel.exception.SystemException { 336 getService().copyUserGroupLayouts(userGroupId, userIds); 337 } 338 339 /** 340 * Copies the user groups' layouts to the user. 341 * 342 * @param userGroupIds the primary keys of the user groups 343 * @param userId the primary key of the user 344 * @throws PortalException if a user with the primary key could not be 345 found or if a portal exception occurred 346 * @throws SystemException if a system exception occurred 347 * @deprecated 348 */ 349 public static void copyUserGroupLayouts(long[] userGroupIds, long userId) 350 throws com.liferay.portal.kernel.exception.PortalException, 351 com.liferay.portal.kernel.exception.SystemException { 352 getService().copyUserGroupLayouts(userGroupIds, userId); 353 } 354 355 /** 356 * Copies the user group's layout to the user. 357 * 358 * @param userGroupId the primary key of the user group 359 * @param userId the primary key of the user 360 * @throws PortalException if a user with the primary key could not be 361 found or if a portal exception occurred 362 * @throws SystemException if a system exception occurred 363 * @deprecated 364 */ 365 public static void copyUserGroupLayouts(long userGroupId, long userId) 366 throws com.liferay.portal.kernel.exception.PortalException, 367 com.liferay.portal.kernel.exception.SystemException { 368 getService().copyUserGroupLayouts(userGroupId, userId); 369 } 370 371 /** 372 * Returns the user group with the name. 373 * 374 * @param companyId the primary key of the user group's company 375 * @param name the user group's name 376 * @return Returns the user group with the name 377 * @throws PortalException if a user group with the name could not be found 378 * @throws SystemException if a system exception occurred 379 */ 380 public static com.liferay.portal.model.UserGroup getUserGroup( 381 long companyId, java.lang.String name) 382 throws com.liferay.portal.kernel.exception.PortalException, 383 com.liferay.portal.kernel.exception.SystemException { 384 return getService().getUserGroup(companyId, name); 385 } 386 387 /** 388 * Returns all the user groups belonging to the company. 389 * 390 * @param companyId the primary key of the user groups' company 391 * @return the user groups belonging to the company 392 * @throws SystemException if a system exception occurred 393 */ 394 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 395 long companyId) 396 throws com.liferay.portal.kernel.exception.SystemException { 397 return getService().getUserGroups(companyId); 398 } 399 400 /** 401 * Returns all the user groups with the primary keys. 402 * 403 * @param userGroupIds the primary keys of the user groups 404 * @return the user groups with the primary keys 405 * @throws PortalException if any one of the user groups could not be found 406 * @throws SystemException if a system exception occurred 407 */ 408 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 409 long[] userGroupIds) 410 throws com.liferay.portal.kernel.exception.PortalException, 411 com.liferay.portal.kernel.exception.SystemException { 412 return getService().getUserGroups(userGroupIds); 413 } 414 415 /** 416 * Returns all the user groups to which the user belongs. 417 * 418 * @param userId the primary key of the user 419 * @return the user groups to which the user belongs 420 * @throws SystemException if a system exception occurred 421 */ 422 public static java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups( 423 long userId) throws com.liferay.portal.kernel.exception.SystemException { 424 return getService().getUserUserGroups(userId); 425 } 426 427 /** 428 * Returns <code>true</code> if the user group is associated with the group. 429 * 430 * @param groupId the primary key of the group 431 * @param userGroupId the primary key of the user group 432 * @return <code>true</code> if the user group belongs to the group; 433 <code>false</code> otherwise 434 * @throws SystemException if a system exception occurred 435 */ 436 public static boolean hasGroupUserGroup(long groupId, long userGroupId) 437 throws com.liferay.portal.kernel.exception.SystemException { 438 return getService().hasGroupUserGroup(groupId, userGroupId); 439 } 440 441 /** 442 * Returns <code>true</code> if the user group belongs to the team. 443 * 444 * @param teamId the primary key of the team 445 * @param userGroupId the primary key of the user group 446 * @return <code>true</code> if the user group belongs to the team; 447 <code>false</code> otherwise 448 * @throws SystemException if a system exception occurred 449 */ 450 public static boolean hasTeamUserGroup(long teamId, long userGroupId) 451 throws com.liferay.portal.kernel.exception.SystemException { 452 return getService().hasTeamUserGroup(teamId, userGroupId); 453 } 454 455 /** 456 * Returns an ordered range of all the user groups that match the keywords. 457 * 458 * <p> 459 * Useful when paginating results. Returns a maximum of <code>end - 460 * start</code> instances. <code>start</code> and <code>end</code> are not 461 * primary keys, they are indexes in the result set. Thus, <code>0</code> 462 * refers to the first result in the set. Setting both <code>start</code> 463 * and <code>end</code> to {@link 464 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 465 * result set. 466 * </p> 467 * 468 * @param companyId the primary key of the user group's company 469 * @param keywords the keywords (space separated), which may occur in the 470 user group's name or description (optionally <code>null</code>) 471 * @param params the finder params (optionally <code>null</code>). For more 472 information see {@link 473 com.liferay.portal.service.persistence.UserGroupFinder} 474 * @param start the lower bound of the range of user groups to return 475 * @param end the upper bound of the range of user groups to return (not 476 inclusive) 477 * @param obc the comparator to order the user groups (optionally 478 <code>null</code>) 479 * @return the matching user groups ordered by comparator <code>obc</code> 480 * @throws SystemException if a system exception occurred 481 * @see com.liferay.portal.service.persistence.UserGroupFinder 482 */ 483 public static java.util.List<com.liferay.portal.model.UserGroup> search( 484 long companyId, java.lang.String keywords, 485 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 486 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 487 throws com.liferay.portal.kernel.exception.SystemException { 488 return getService().search(companyId, keywords, params, start, end, obc); 489 } 490 491 /** 492 * Returns an ordered range of all the user groups that match the name and 493 * description. 494 * 495 * <p> 496 * Useful when paginating results. Returns a maximum of <code>end - 497 * start</code> instances. <code>start</code> and <code>end</code> are not 498 * primary keys, they are indexes in the result set. Thus, <code>0</code> 499 * refers to the first result in the set. Setting both <code>start</code> 500 * and <code>end</code> to {@link 501 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 502 * result set. 503 * </p> 504 * 505 * @param companyId the primary key of the user group's company 506 * @param name the user group's name (optionally <code>null</code>) 507 * @param description the user group's description (optionally 508 <code>null</code>) 509 * @param params the finder params (optionally <code>null</code>). For more 510 information see {@link 511 com.liferay.portal.service.persistence.UserGroupFinder} 512 * @param start the lower bound of the range of user groups to return 513 * @param end the upper bound of the range of user groups to return (not 514 inclusive) 515 * @param obc the comparator to order the user groups (optionally 516 <code>null</code>) 517 * @return the matching user groups ordered by comparator <code>obc</code> 518 * @throws SystemException if a system exception occurred 519 * @see com.liferay.portal.service.persistence.UserGroupFinder 520 */ 521 public static java.util.List<com.liferay.portal.model.UserGroup> search( 522 long companyId, java.lang.String name, java.lang.String description, 523 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 524 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 525 throws com.liferay.portal.kernel.exception.SystemException { 526 return getService() 527 .search(companyId, name, description, params, start, end, obc); 528 } 529 530 /** 531 * Returns the number of user groups that match the keywords 532 * 533 * @param companyId the primary key of the user group's company 534 * @param keywords the keywords (space separated), which may occur in the 535 user group's name or description (optionally <code>null</code>) 536 * @param params the finder params (optionally <code>null</code>). For more 537 information see {@link 538 com.liferay.portal.service.persistence.UserGroupFinder} 539 * @return the number of matching user groups 540 * @throws SystemException if a system exception occurred 541 * @see com.liferay.portal.service.persistence.UserGroupFinder 542 */ 543 public static int searchCount(long companyId, java.lang.String keywords, 544 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 545 throws com.liferay.portal.kernel.exception.SystemException { 546 return getService().searchCount(companyId, keywords, params); 547 } 548 549 /** 550 * Returns the number of user groups that match the name and description. 551 * 552 * @param companyId the primary key of the user group's company 553 * @param name the user group's name (optionally <code>null</code>) 554 * @param description the user group's description (optionally 555 <code>null</code>) 556 * @param params the finder params (optionally <code>null</code>). For more 557 information see {@link 558 com.liferay.portal.service.persistence.UserGroupFinder} 559 * @return the number of matching user groups 560 * @throws SystemException if a system exception occurred 561 * @see com.liferay.portal.service.persistence.UserGroupFinder 562 */ 563 public static int searchCount(long companyId, java.lang.String name, 564 java.lang.String description, 565 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 566 throws com.liferay.portal.kernel.exception.SystemException { 567 return getService().searchCount(companyId, name, description, params); 568 } 569 570 /** 571 * Sets the user groups associated with the user copying the user group 572 * layouts and removing and adding user group associations for the user as 573 * necessary. 574 * 575 * @param userId the primary key of the user 576 * @param userGroupIds the primary keys of the user groups 577 * @throws PortalException if a portal exception occurred 578 * @throws SystemException if a system exception occurred 579 */ 580 public static void setUserUserGroups(long userId, long[] userGroupIds) 581 throws com.liferay.portal.kernel.exception.PortalException, 582 com.liferay.portal.kernel.exception.SystemException { 583 getService().setUserUserGroups(userId, userGroupIds); 584 } 585 586 /** 587 * Removes the user groups from the group. 588 * 589 * @param groupId the primary key of the group 590 * @param userGroupIds the primary keys of the user groups 591 * @throws SystemException if a system exception occurred 592 */ 593 public static void unsetGroupUserGroups(long groupId, long[] userGroupIds) 594 throws com.liferay.portal.kernel.exception.SystemException { 595 getService().unsetGroupUserGroups(groupId, userGroupIds); 596 } 597 598 /** 599 * Removes the user groups from the team. 600 * 601 * @param teamId the primary key of the team 602 * @param userGroupIds the primary keys of the user groups 603 * @throws SystemException if a system exception occurred 604 */ 605 public static void unsetTeamUserGroups(long teamId, long[] userGroupIds) 606 throws com.liferay.portal.kernel.exception.SystemException { 607 getService().unsetTeamUserGroups(teamId, userGroupIds); 608 } 609 610 /** 611 * Updates the user group. 612 * 613 * @param companyId the primary key of the user group's company 614 * @param userGroupId the primary key of the user group 615 * @param name the user group's name 616 * @param description the user group's description 617 * @return the user group 618 * @throws PortalException if a user group with the primary key could not be 619 found or if the new information was invalid 620 * @throws SystemException if a system exception occurred 621 */ 622 public static com.liferay.portal.model.UserGroup updateUserGroup( 623 long companyId, long userGroupId, java.lang.String name, 624 java.lang.String description) 625 throws com.liferay.portal.kernel.exception.PortalException, 626 com.liferay.portal.kernel.exception.SystemException { 627 return getService() 628 .updateUserGroup(companyId, userGroupId, name, description); 629 } 630 631 public static UserGroupLocalService getService() { 632 if (_service == null) { 633 _service = (UserGroupLocalService)PortalBeanLocatorUtil.locate(UserGroupLocalService.class.getName()); 634 635 ReferenceRegistry.registerReference(UserGroupLocalServiceUtil.class, 636 "_service"); 637 } 638 639 return _service; 640 } 641 642 /** 643 * @deprecated 644 */ 645 public void setService(UserGroupLocalService service) { 646 } 647 648 private static UserGroupLocalService _service; 649 }