Liferay 6.0-ee-sp2

com.liferay.portal.service
Class UserGroupServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.UserGroupServiceUtil

public class UserGroupServiceUtil
extends Object

The utility for the user group remote service. This utility wraps com.liferay.portal.service.impl.UserGroupServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
UserGroupService, UserGroupServiceBaseImpl, com.liferay.portal.service.impl.UserGroupServiceImpl

Constructor Summary
UserGroupServiceUtil()
           
 
Method Summary
static void addGroupUserGroups(long groupId, long[] userGroupIds)
           
static void addTeamUserGroups(long teamId, long[] userGroupIds)
           
static UserGroup addUserGroup(String name, String description)
           
static void deleteUserGroup(long userGroupId)
           
static UserGroupService getService()
           
static UserGroup getUserGroup(long userGroupId)
           
static UserGroup getUserGroup(String name)
           
static List<UserGroup> getUserUserGroups(long userId)
           
 void setService(UserGroupService service)
           
static void unsetGroupUserGroups(long groupId, long[] userGroupIds)
           
static void unsetTeamUserGroups(long teamId, long[] userGroupIds)
           
static UserGroup updateUserGroup(long userGroupId, String name, String description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserGroupServiceUtil

public UserGroupServiceUtil()
Method Detail

addGroupUserGroups

public static void addGroupUserGroups(long groupId,
                                      long[] userGroupIds)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

addTeamUserGroups

public static void addTeamUserGroups(long teamId,
                                     long[] userGroupIds)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

addUserGroup

public static UserGroup addUserGroup(String name,
                                     String description)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

deleteUserGroup

public static void deleteUserGroup(long userGroupId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getUserGroup

public static UserGroup getUserGroup(long userGroupId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getUserGroup

public static UserGroup getUserGroup(String name)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getUserUserGroups

public static List<UserGroup> getUserUserGroups(long userId)
                                         throws SystemException
Throws:
SystemException

unsetGroupUserGroups

public static void unsetGroupUserGroups(long groupId,
                                        long[] userGroupIds)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

unsetTeamUserGroups

public static void unsetTeamUserGroups(long teamId,
                                       long[] userGroupIds)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

updateUserGroup

public static UserGroup updateUserGroup(long userGroupId,
                                        String name,
                                        String description)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getService

public static UserGroupService getService()

setService

public void setService(UserGroupService service)

Liferay 6.0-ee-sp2