com.liferay.portal.service
Class UserGroupLocalServiceUtil

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

public class UserGroupLocalServiceUtil
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.UserGroupLocalService 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:
UserGroupLocalService

Constructor Summary
UserGroupLocalServiceUtil()
           
 
Method Summary
static void addGroupUserGroups(long groupId, long[] userGroupIds)
           
static UserGroup addUserGroup(long userId, long companyId, java.lang.String name, java.lang.String description)
           
static UserGroup addUserGroup(UserGroup userGroup)
           
static void clearUserUserGroups(long userId)
           
static UserGroup createUserGroup(long userGroupId)
           
static void deleteUserGroup(long userGroupId)
           
static void deleteUserGroup(UserGroup userGroup)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static UserGroupLocalService getService()
           
static UserGroup getUserGroup(long userGroupId)
           
static UserGroup getUserGroup(long companyId, java.lang.String name)
           
static java.util.List<UserGroup> getUserGroups(int start, int end)
           
static java.util.List<UserGroup> getUserGroups(long companyId)
           
static java.util.List<UserGroup> getUserGroups(long[] userGroupIds)
           
static int getUserGroupsCount()
           
static java.util.List<UserGroup> getUserUserGroups(long userId)
           
static boolean hasGroupUserGroup(long groupId, long userGroupId)
           
static java.util.List<UserGroup> search(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int searchCount(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
 void setService(UserGroupLocalService service)
           
static void unsetGroupUserGroups(long groupId, long[] userGroupIds)
           
static UserGroup updateUserGroup(long companyId, long userGroupId, java.lang.String name, java.lang.String description)
           
static UserGroup updateUserGroup(UserGroup userGroup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserGroupLocalServiceUtil

public UserGroupLocalServiceUtil()
Method Detail

addUserGroup

public static UserGroup addUserGroup(UserGroup userGroup)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createUserGroup

public static UserGroup createUserGroup(long userGroupId)

deleteUserGroup

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

deleteUserGroup

public static void deleteUserGroup(UserGroup userGroup)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroup

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

getUserGroups

public static java.util.List<UserGroup> getUserGroups(int start,
                                                      int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroupsCount

public static int getUserGroupsCount()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateUserGroup

public static UserGroup updateUserGroup(UserGroup userGroup)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addGroupUserGroups

public static void addGroupUserGroups(long groupId,
                                      long[] userGroupIds)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addUserGroup

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

clearUserUserGroups

public static void clearUserUserGroups(long userId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroup

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

getUserGroups

public static java.util.List<UserGroup> getUserGroups(long companyId)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroups

public static java.util.List<UserGroup> getUserGroups(long[] userGroupIds)
                                               throws com.liferay.portal.PortalException,
                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserUserGroups

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

hasGroupUserGroup

public static boolean hasGroupUserGroup(long groupId,
                                        long userGroupId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static java.util.List<UserGroup> search(long companyId,
                                               java.lang.String name,
                                               java.lang.String description,
                                               java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                               int start,
                                               int end,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

public static int searchCount(long companyId,
                              java.lang.String name,
                              java.lang.String description,
                              java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

unsetGroupUserGroups

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

updateUserGroup

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

getService

public static UserGroupLocalService getService()

setService

public void setService(UserGroupLocalService service)