com.liferay.portal.service
Class GroupServiceUtil
java.lang.Object
com.liferay.portal.service.GroupServiceUtil
public class GroupServiceUtil
- 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.GroupService
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:
GroupService
Method Summary |
static Group |
addGroup(long liveGroupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
|
static Group |
addGroup(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 |
deleteGroup(long groupId)
|
static Group |
getGroup(long groupId)
|
static Group |
getGroup(long companyId,
java.lang.String name)
|
static java.util.List<Group> |
getManageableGroups(long userId,
java.lang.String actionId)
|
static java.util.List<Group> |
getOrganizationsGroups(java.util.List<Organization> organizations)
|
static GroupService |
getService()
|
static Group |
getUserGroup(long companyId,
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 |
hasUserGroup(long userId,
long groupId)
|
static java.util.List<Group> |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params,
int start,
int end)
|
static int |
searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params)
|
static void |
setRoleGroups(long roleId,
long[] groupIds)
|
void |
setService(GroupService service)
|
static void |
unsetRoleGroups(long roleId,
long[] groupIds)
|
static Group |
updateFriendlyURL(long groupId,
java.lang.String friendlyURL)
|
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 |
GroupServiceUtil
public GroupServiceUtil()
addGroup
public static Group addGroup(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 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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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
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
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
getManageableGroups
public static java.util.List<Group> getManageableGroups(long userId,
java.lang.String actionId)
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)
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
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
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.lang.String[] params,
int start,
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.lang.String[] params)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setRoleGroups
public static void setRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetRoleGroups
public static void unsetRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
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 GroupService getService()
setService
public void setService(GroupService service)