Liferay 6.0.4

com.liferay.portal.service
Class UserGroupLocalServiceUtil

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

public class UserGroupLocalServiceUtil
extends Object

This class provides static methods for the 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.

See Also:
UserGroupLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
UserGroupLocalServiceUtil()
           
 
Method Summary
static void addGroupUserGroups(long groupId, long[] userGroupIds)
           
static UserGroup addUserGroup(long userId, long companyId, String name, String description)
           
static UserGroup addUserGroup(UserGroup userGroup)
           
static void clearUserUserGroups(long userId)
           
static void copyUserGroupLayouts(long[] userGroupIds, long userId)
           
static void copyUserGroupLayouts(long userGroupId, long userId)
           
static void copyUserGroupLayouts(long userGroupId, long[] userIds)
           
static UserGroup createUserGroup(long userGroupId)
           
static void deleteUserGroup(long userGroupId)
           
static void deleteUserGroup(UserGroup userGroup)
           
static List dynamicQuery(DynamicQuery dynamicQuery)
           
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static long dynamicQueryCount(DynamicQuery dynamicQuery)
           
static UserGroupLocalService getService()
           
static UserGroup getUserGroup(long userGroupId)
           
static UserGroup getUserGroup(long companyId, String name)
           
static List<UserGroup> getUserGroups(int start, int end)
           
static List<UserGroup> getUserGroups(long companyId)
           
static List<UserGroup> getUserGroups(long[] userGroupIds)
           
static int getUserGroupsCount()
           
static List<UserGroup> getUserUserGroups(long userId)
           
static boolean hasGroupUserGroup(long groupId, long userGroupId)
           
static List<UserGroup> search(long companyId, String name, String description, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc)
           
static int searchCount(long companyId, String name, String description, LinkedHashMap<String,Object> params)
           
 void setService(UserGroupLocalService service)
           
static void setUserUserGroups(long userId, long[] userGroupIds)
           
static void unsetGroupUserGroups(long groupId, long[] userGroupIds)
           
static UserGroup updateUserGroup(long companyId, long userGroupId, String name, String description)
           
static UserGroup updateUserGroup(UserGroup userGroup)
           
static UserGroup updateUserGroup(UserGroup userGroup, boolean merge)
           
 
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 SystemException
Throws:
SystemException

createUserGroup

public static UserGroup createUserGroup(long userGroupId)

deleteUserGroup

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

deleteUserGroup

public static void deleteUserGroup(UserGroup userGroup)
                            throws SystemException
Throws:
SystemException

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery)
                         throws SystemException
Throws:
SystemException

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
                         throws SystemException
Throws:
SystemException

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Throws:
SystemException

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Throws:
SystemException

getUserGroup

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

getUserGroups

public static List<UserGroup> getUserGroups(int start,
                                            int end)
                                     throws SystemException
Throws:
SystemException

getUserGroupsCount

public static int getUserGroupsCount()
                              throws SystemException
Throws:
SystemException

updateUserGroup

public static UserGroup updateUserGroup(UserGroup userGroup)
                                 throws SystemException
Throws:
SystemException

updateUserGroup

public static UserGroup updateUserGroup(UserGroup userGroup,
                                        boolean merge)
                                 throws SystemException
Throws:
SystemException

addGroupUserGroups

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

addUserGroup

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

clearUserUserGroups

public static void clearUserUserGroups(long userId)
                                throws SystemException
Throws:
SystemException

copyUserGroupLayouts

public static void copyUserGroupLayouts(long userGroupId,
                                        long[] userIds)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

copyUserGroupLayouts

public static void copyUserGroupLayouts(long[] userGroupIds,
                                        long userId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

copyUserGroupLayouts

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

getUserGroup

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

getUserGroups

public static List<UserGroup> getUserGroups(long companyId)
                                     throws SystemException
Throws:
SystemException

getUserGroups

public static List<UserGroup> getUserGroups(long[] userGroupIds)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getUserUserGroups

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

hasGroupUserGroup

public static boolean hasGroupUserGroup(long groupId,
                                        long userGroupId)
                                 throws SystemException
Throws:
SystemException

search

public static List<UserGroup> search(long companyId,
                                     String name,
                                     String description,
                                     LinkedHashMap<String,Object> params,
                                     int start,
                                     int end,
                                     OrderByComparator obc)
                              throws SystemException
Throws:
SystemException

searchCount

public static int searchCount(long companyId,
                              String name,
                              String description,
                              LinkedHashMap<String,Object> params)
                       throws SystemException
Throws:
SystemException

setUserUserGroups

public static void setUserUserGroups(long userId,
                                     long[] userGroupIds)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

unsetGroupUserGroups

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

updateUserGroup

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

getService

public static UserGroupLocalService getService()

setService

public void setService(UserGroupLocalService service)

Liferay 6.0.4