com.liferay.portal.service
Class UserGroupLocalServiceUtil
java.lang.Object
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.
com.liferay.portal.service.UserGroupLocalServiceFactory
is responsible for the lookup of the bean.
- Author:
- Brian Wing Shun Chan
- See Also:
UserGroupLocalService
,
UserGroupLocalServiceFactory
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 void |
deleteUserGroup(long userGroupId)
|
static void |
deleteUserGroup(UserGroup userGroup)
|
static java.util.List<UserGroup> |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
static java.util.List<UserGroup> |
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<UserGroup> |
getUserGroups(long companyId)
|
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 begin,
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)
|
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 |
UserGroupLocalServiceUtil
public UserGroupLocalServiceUtil()
addUserGroup
public static UserGroup addUserGroup(UserGroup userGroup)
throws com.liferay.portal.SystemException
- Throws:
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
deleteUserGroup
public static void deleteUserGroup(UserGroup userGroup)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<UserGroup> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<UserGroup> 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 userGroup)
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
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<UserGroup> 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<UserGroup> 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<UserGroup> search(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int begin,
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.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