com.liferay.portal.service
Class GroupServiceUtil

java.lang.Object
  extended by 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

Constructor Summary
GroupServiceUtil()
           
 
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> getOrganizationsGroups(java.util.List<Organization> organizations)
           
static GroupService getService()
           
static java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)
           
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
 

Constructor Detail

GroupServiceUtil

public GroupServiceUtil()
Method Detail

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,
                             java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

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,
                             java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addRoleGroups

public static void addRoleGroups(long roleId,
                                 long[] groupIds)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException,
                                 java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

deleteGroup

public static void deleteGroup(long groupId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException,
                               java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getGroup

public static Group getGroup(long groupId)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException,
                             java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getGroup

public static Group getGroup(long companyId,
                             java.lang.String name)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException,
                             java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getOrganizationsGroups

public static java.util.List<Group> getOrganizationsGroups(java.util.List<Organization> organizations)
                                                    throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getUserGroupsGroups

public static java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)
                                                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

hasUserGroup

public static boolean hasUserGroup(long userId,
                                   long groupId)
                            throws com.liferay.portal.SystemException,
                                   java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

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,
                                           java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

searchCount

public static int searchCount(long companyId,
                              java.lang.String name,
                              java.lang.String description,
                              java.lang.String[] params)
                       throws com.liferay.portal.SystemException,
                              java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

setRoleGroups

public static void setRoleGroups(long roleId,
                                 long[] groupIds)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException,
                                 java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetRoleGroups

public static void unsetRoleGroups(long roleId,
                                   long[] groupIds)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException,
                                   java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateFriendlyURL

public static Group updateFriendlyURL(long groupId,
                                      java.lang.String friendlyURL)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException,
                                      java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

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,
                                java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateGroup

public static Group updateGroup(long groupId,
                                java.lang.String typeSettings)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException,
                                java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updateWorkflow

public static Group updateWorkflow(long groupId,
                                   boolean workflowEnabled,
                                   int workflowStages,
                                   java.lang.String workflowRoleNames)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException,
                                   java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getService

public static GroupService getService()

setService

public void setService(GroupService service)