Liferay 6.0.5

com.liferay.portal.service
Class GroupServiceUtil

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

public class GroupServiceUtil
extends Object

The utility for the group remote service. This utility wraps GroupServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

Never modify this class directly. Add custom service methods to GroupServiceImpl and rerun ServiceBuilder to regenerate this class.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
GroupService, GroupServiceBaseImpl, GroupServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
GroupServiceUtil()
           
 
Method Summary
static Group addGroup(long liveGroupId, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext)
           
static Group addGroup(String name, String description, int type, 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, String name)
           
static List<Group> getManageableGroups(String actionId, int max)
           
static List<Group> getOrganizationsGroups(List<Organization> organizations)
           
static GroupService getService()
           
static Group getUserGroup(long companyId, long userId)
           
static List<Group> getUserGroupsGroups(List<UserGroup> userGroups)
           
static List<Group> getUserOrganizationsGroups(long userId, int start, int end)
           
static boolean hasUserGroup(long userId, long groupId)
           
static List<Group> search(long companyId, String name, String description, String[] params, int start, int end)
           
static int searchCount(long companyId, String name, String description, 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, String friendlyURL)
           
static Group updateGroup(long groupId, String typeSettings)
           
static Group updateGroup(long groupId, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext)
           
static Group updateWorkflow(long groupId, boolean workflowEnabled, int workflowStages, String workflowRoleNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupServiceUtil

public GroupServiceUtil()
Method Detail

addGroup

public static Group addGroup(String name,
                             String description,
                             int type,
                             String friendlyURL,
                             boolean active,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addGroup

public static Group addGroup(long liveGroupId,
                             String name,
                             String description,
                             int type,
                             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,
                             String name)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getManageableGroups

public static List<Group> getManageableGroups(String actionId,
                                              int max)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getOrganizationsGroups

public static List<Group> getOrganizationsGroups(List<Organization> organizations)

getUserGroup

public static Group getUserGroup(long companyId,
                                 long userId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getUserGroupsGroups

public static List<Group> getUserGroupsGroups(List<UserGroup> userGroups)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getUserOrganizationsGroups

public static 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 List<Group> search(long companyId,
                                 String name,
                                 String description,
                                 String[] params,
                                 int start,
                                 int end)
                          throws SystemException
Throws:
SystemException

searchCount

public static int searchCount(long companyId,
                              String name,
                              String description,
                              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,
                                      String friendlyURL)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

updateGroup

public static Group updateGroup(long groupId,
                                String name,
                                String description,
                                int type,
                                String friendlyURL,
                                boolean active,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateGroup

public static Group updateGroup(long groupId,
                                String typeSettings)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateWorkflow

public static Group updateWorkflow(long groupId,
                                   boolean workflowEnabled,
                                   int workflowStages,
                                   String workflowRoleNames)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getService

public static GroupService getService()

setService

public void setService(GroupService service)

Liferay 6.0.5