com.liferay.portal.service
Class UserGroupServiceUtil

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

public class UserGroupServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portal.service.UserGroupService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
UserGroupService

Constructor Summary
UserGroupServiceUtil()
           
 
Method Summary
static void addGroupUserGroups(long groupId, long[] userGroupIds)
           
static UserGroup addUserGroup(java.lang.String name, java.lang.String description)
           
static void deleteUserGroup(long userGroupId)
           
static UserGroupService getService()
           
static UserGroup getUserGroup(long userGroupId)
           
static UserGroup getUserGroup(java.lang.String name)
           
static java.util.List<UserGroup> getUserUserGroups(long userId)
           
 void setService(UserGroupService service)
           
static void unsetGroupUserGroups(long groupId, long[] userGroupIds)
           
static UserGroup updateUserGroup(long userGroupId, java.lang.String name, java.lang.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 com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException,
                                      java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addUserGroup

public static UserGroup addUserGroup(java.lang.String name,
                                     java.lang.String description)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException,
                                     java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

deleteUserGroup

public static void deleteUserGroup(long userGroupId)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException,
                                   java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserGroup

public static UserGroup getUserGroup(long userGroupId)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException,
                                     java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserGroup

public static UserGroup getUserGroup(java.lang.String name)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException,
                                     java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserUserGroups

public static java.util.List<UserGroup> getUserUserGroups(long userId)
                                                   throws com.liferay.portal.SystemException,
                                                          java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetGroupUserGroups

public static void unsetGroupUserGroups(long groupId,
                                        long[] userGroupIds)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException,
                                        java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateUserGroup

public static UserGroup updateUserGroup(long userGroupId,
                                        java.lang.String name,
                                        java.lang.String description)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException,
                                        java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getService

public static UserGroupService getService()

setService

public void setService(UserGroupService service)