com.liferay.portal.service
Class GroupLocalServiceUtil
java.lang.Object
com.liferay.portal.service.GroupLocalServiceUtil
public class GroupLocalServiceUtil
- 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.GroupLocalService
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:
GroupLocalService
Method Summary |
static Group |
addGroup(Group group)
|
static Group |
addGroup(long userId,
java.lang.String className,
long classPK,
long liveGroupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
|
static Group |
addGroup(long userId,
java.lang.String className,
long classPK,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
|
static void |
addRoleGroups(long roleId,
long[] groupIds)
|
static void |
addUserGroups(long userId,
long[] groupIds)
|
static void |
checkSystemGroups(long companyId)
|
static Group |
createGroup(long groupId)
|
static void |
deleteGroup(Group group)
|
static void |
deleteGroup(long groupId)
|
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 Group |
getFriendlyURLGroup(long companyId,
java.lang.String friendlyURL)
|
static Group |
getGroup(long groupId)
|
static Group |
getGroup(long companyId,
java.lang.String name)
|
static java.util.List<Group> |
getGroups(int start,
int end)
|
static java.util.List<Group> |
getGroups(long[] groupIds)
|
static int |
getGroupsCount()
|
static Group |
getLayoutGroup(long companyId,
long plid)
|
static java.util.List<Group> |
getManageableGroups(long userId)
|
static java.util.List<Group> |
getNullFriendlyURLGroups()
|
static Group |
getOrganizationGroup(long companyId,
long organizationId)
|
static java.util.List<Group> |
getOrganizationsGroups(java.util.List<Organization> organizations)
|
static java.util.List<Group> |
getRoleGroups(long roleId)
|
static GroupLocalService |
getService()
|
static Group |
getStagingGroup(long liveGroupId)
|
static Group |
getUserGroup(long companyId,
long userId)
|
static Group |
getUserGroupGroup(long companyId,
long userGroupId)
|
static java.util.List<Group> |
getUserGroups(long userId)
|
static java.util.List<Group> |
getUserGroupsGroups(java.util.List<UserGroup> userGroups)
|
static java.util.List<Group> |
getUserOrganizationsGroups(long userId,
int start,
int end)
|
static boolean |
hasRoleGroup(long roleId,
long groupId)
|
static boolean |
hasStagingGroup(long liveGroupId)
|
static boolean |
hasUserGroup(long userId,
long groupId)
|
static java.util.List<Group> |
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)
|
static java.util.List<Group> |
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)
|
static void |
setRoleGroups(long roleId,
long[] groupIds)
|
void |
setService(GroupLocalService service)
|
static void |
unsetRoleGroups(long roleId,
long[] groupIds)
|
static void |
unsetUserGroups(long userId,
long[] groupIds)
|
static Group |
updateFriendlyURL(long groupId,
java.lang.String friendlyURL)
|
static Group |
updateGroup(Group group)
|
static Group |
updateGroup(long groupId,
java.lang.String typeSettings)
|
static Group |
updateGroup(long groupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
|
static Group |
updateWorkflow(long groupId,
boolean workflowEnabled,
int workflowStages,
java.lang.String workflowRoleNames)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupLocalServiceUtil
public GroupLocalServiceUtil()
addGroup
public static Group addGroup(Group group)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createGroup
public static Group createGroup(long groupId)
deleteGroup
public static void deleteGroup(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteGroup
public static void deleteGroup(Group group)
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
getGroup
public static Group getGroup(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroups
public static java.util.List<Group> getGroups(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupsCount
public static int getGroupsCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateGroup
public static Group updateGroup(Group group)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroup
public static Group addGroup(long userId,
java.lang.String className,
long classPK,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addGroup
public static Group addGroup(long userId,
java.lang.String className,
long classPK,
long liveGroupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addRoleGroups
public static void addRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUserGroups
public static void addUserGroups(long userId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkSystemGroups
public static void checkSystemGroups(long companyId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getFriendlyURLGroup
public static Group getFriendlyURLGroup(long companyId,
java.lang.String friendlyURL)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroup
public static Group getGroup(long companyId,
java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroups
public static java.util.List<Group> getGroups(long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getLayoutGroup
public static Group getLayoutGroup(long companyId,
long plid)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getManageableGroups
public static java.util.List<Group> getManageableGroups(long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getNullFriendlyURLGroups
public static java.util.List<Group> getNullFriendlyURLGroups()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganizationGroup
public static Group getOrganizationGroup(long companyId,
long organizationId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getOrganizationsGroups
public static java.util.List<Group> getOrganizationsGroups(java.util.List<Organization> organizations)
getRoleGroups
public static java.util.List<Group> getRoleGroups(long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getStagingGroup
public static Group getStagingGroup(long liveGroupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroup
public static Group getUserGroup(long companyId,
long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroupGroup
public static Group getUserGroupGroup(long companyId,
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<Group> getUserGroups(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroupsGroups
public static java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)
getUserOrganizationsGroups
public static java.util.List<Group> getUserOrganizationsGroups(long userId,
int start,
int end)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasRoleGroup
public static boolean hasRoleGroup(long roleId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasStagingGroup
public static boolean hasStagingGroup(long liveGroupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserGroup
public static boolean hasUserGroup(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static java.util.List<Group> 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)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static java.util.List<Group> 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
setRoleGroups
public static void setRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
unsetRoleGroups
public static void unsetRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
unsetUserGroups
public static void unsetUserGroups(long userId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateFriendlyURL
public static Group updateFriendlyURL(long groupId,
java.lang.String friendlyURL)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateGroup
public static Group updateGroup(long groupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateGroup
public static Group updateGroup(long groupId,
java.lang.String typeSettings)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateWorkflow
public static Group updateWorkflow(long groupId,
boolean workflowEnabled,
int workflowStages,
java.lang.String workflowRoleNames)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getService
public static GroupLocalService getService()
setService
public void setService(GroupLocalService service)