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
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
- Generated:
Method Summary |
static Group |
addGroup(long liveGroupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active,
ServiceContext serviceContext)
|
static Group |
addGroup(java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active,
ServiceContext serviceContext)
|
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(java.lang.String actionId,
int max)
|
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,
ServiceContext serviceContext)
|
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,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addGroup
public static Group addGroup(long liveGroupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addRoleGroups
public static void addRoleGroups(long roleId,
long[] groupIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteGroup
public static void deleteGroup(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroup
public static Group getGroup(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroup
public static Group getGroup(long companyId,
java.lang.String name)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getManageableGroups
public static java.util.List<Group> getManageableGroups(java.lang.String actionId,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getOrganizationsGroups
public static java.util.List<Group> getOrganizationsGroups(java.util.List<Organization> organizations)
getUserGroup
public static Group getUserGroup(long companyId,
long userId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserGroupsGroups
public static java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserOrganizationsGroups
public static java.util.List<Group> getUserOrganizationsGroups(long userId,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasUserGroup
public static boolean hasUserGroup(long userId,
long groupId)
throws SystemException
- Throws:
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 SystemException
- Throws:
SystemException
searchCount
public static int searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params)
throws SystemException
- Throws:
SystemException
setRoleGroups
public static void setRoleGroups(long roleId,
long[] groupIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRoleGroups
public static void unsetRoleGroups(long roleId,
long[] groupIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFriendlyURL
public static Group updateFriendlyURL(long groupId,
java.lang.String friendlyURL)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateGroup
public static Group updateGroup(long groupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateGroup
public static Group updateGroup(long groupId,
java.lang.String typeSettings)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateWorkflow
public static Group updateWorkflow(long groupId,
boolean workflowEnabled,
int workflowStages,
java.lang.String workflowRoleNames)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static GroupService getService()
setService
public void setService(GroupService service)