com.liferay.portal.service
Class UserGroupLocalServiceUtil

java.lang.Object
  extended bycom.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.

com.liferay.portal.service.UserGroupLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
UserGroupLocalService, UserGroupLocalServiceFactory

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 model)
           
static void clearUserUserGroups(long userId)
           
static void deleteUserGroup(long userGroupId)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static UserGroup getUserGroup(long userGroupId)
           
static UserGroup getUserGroup(long companyId, java.lang.String name)
           
static java.util.List getUserGroups(long companyId)
           
static java.util.List getUserUserGroups(long userId)
           
static boolean hasGroupUserGroup(long groupId, long userGroupId)
           
static java.util.List search(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap params, int begin, int end)
           
static int searchCount(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap params)
           
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 model)
           
 
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 model)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateUserGroup

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

addGroupUserGroups

public static void addGroupUserGroups(long groupId,
                                      long[] userGroupIds)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
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.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

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

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

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 getUserGroups(long companyId)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserUserGroups

public static java.util.List getUserUserGroups(long userId)
                                        throws com.liferay.portal.PortalException,
                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

hasGroupUserGroup

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

search

public static java.util.List search(long companyId,
                                    java.lang.String name,
                                    java.lang.String description,
                                    java.util.LinkedHashMap params,
                                    int begin,
                                    int end)
                             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 params)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

unsetGroupUserGroups

public static void unsetGroupUserGroups(long groupId,
                                        long[] userGroupIds)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
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