com.liferay.portal.service
Class GroupServiceUtil

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

com.liferay.portal.service.GroupServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
GroupService, GroupServiceFactory

Constructor Summary
GroupServiceUtil()
           
 
Method Summary
static Group addGroup(long liveGroupId, java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String friendlyURL, boolean active)
           
static Group addGroup(java.lang.String name, java.lang.String description, java.lang.String 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 getOrganizationsGroups(java.util.List organizations)
           
static java.util.List getUserGroupsGroups(java.util.List userGroups)
           
static boolean hasUserGroup(long userId, long groupId)
           
static java.util.List search(long companyId, java.lang.String name, java.lang.String description, java.lang.String[] params, int begin, 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)
           
static void unsetRoleGroups(long roleId, long[] groupIds)
           
static Group updateGroup(long groupId, java.lang.String typeSettings)
           
static Group updateGroup(long groupId, java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String friendlyURL, boolean active)
           
 
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,
                             java.lang.String 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,
                             java.lang.String 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 getOrganizationsGroups(java.util.List organizations)
                                             throws com.liferay.portal.PortalException,
                                                    com.liferay.portal.SystemException,
                                                    java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getUserGroupsGroups

public static java.util.List getUserGroupsGroups(java.util.List userGroups)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException,
                                                 java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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 search(long companyId,
                                    java.lang.String name,
                                    java.lang.String description,
                                    java.lang.String[] params,
                                    int begin,
                                    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

updateGroup

public static Group updateGroup(long groupId,
                                java.lang.String name,
                                java.lang.String description,
                                java.lang.String 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