com.liferay.portal.service
Class GroupLocalServiceUtil

java.lang.Object
  extended bycom.liferay.portal.service.GroupLocalServiceUtil

public class GroupLocalServiceUtil
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.GroupLocalService 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.GroupLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
GroupLocalService, GroupLocalServiceFactory

Constructor Summary
GroupLocalServiceUtil()
           
 
Method Summary
static Group addGroup(Group model)
           
static Group addGroup(long userId, java.lang.String className, long classPK, long liveGroupId, java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String friendlyURL, boolean active)
           
static Group addGroup(long userId, java.lang.String className, long classPK, 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 addUserGroups(long userId, long[] groupIds)
           
static void checkSystemGroups(long companyId)
           
static void deleteGroup(long groupId)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static Group getFriendlyURLGroup(long companyId, java.lang.String friendlyURL)
           
static Group getGroup(long groupId)
           
static Group getGroup(long companyId, java.lang.String name)
           
static Group getOrganizationGroup(long companyId, long organizationId)
           
static java.util.List getOrganizationsGroups(java.util.List organizations)
           
static java.util.List getRoleGroups(long roleId)
           
static Group getStagingGroup(long liveGroupId)
           
static Group getUserGroup(long companyId, long userId)
           
static Group getUserGroupGroup(long companyId, long userGroupId)
           
static java.util.List getUserGroupsGroups(java.util.List userGroups)
           
static boolean hasRoleGroup(long roleId, long groupId)
           
static boolean hasUserGroup(long userId, long groupId)
           
static java.util.List search(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap params, int begin, int end)
           
static int searchCount(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap params)
           
static void setRoleGroups(long roleId, long[] groupIds)
           
static void setUserGroups(long userId, long[] groupIds)
           
static void unsetRoleGroups(long roleId, long[] groupIds)
           
static void unsetUserGroups(long userId, long[] groupIds)
           
static Group updateGroup(Group model)
           
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

GroupLocalServiceUtil

public GroupLocalServiceUtil()
Method Detail

addGroup

public static Group addGroup(Group model)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateGroup

public static Group updateGroup(Group model)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addGroup

public static Group addGroup(long userId,
                             java.lang.String className,
                             long classPK,
                             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
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addGroup

public static Group addGroup(long userId,
                             java.lang.String className,
                             long classPK,
                             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
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

addUserGroups

public static void addUserGroups(long userId,
                                 long[] groupIds)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkSystemGroups

public static void checkSystemGroups(long companyId)
                              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

getFriendlyURLGroup

public static Group getFriendlyURLGroup(long companyId,
                                        java.lang.String friendlyURL)
                                 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

getOrganizationGroup

public static Group getOrganizationGroup(long companyId,
                                         long organizationId)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getOrganizationsGroups

public static java.util.List getOrganizationsGroups(java.util.List organizations)
                                             throws com.liferay.portal.PortalException,
                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getRoleGroups

public static java.util.List getRoleGroups(long roleId)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getStagingGroup

public static Group getStagingGroup(long liveGroupId)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

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

getUserGroupGroup

public static Group getUserGroupGroup(long companyId,
                                      long userGroupId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroupsGroups

public static java.util.List getUserGroupsGroups(java.util.List userGroups)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

hasRoleGroup

public static boolean hasRoleGroup(long roleId,
                                   long groupId)
                            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 search(long companyId,
                                    java.lang.String name,
                                    java.lang.String description,
                                    java.util.LinkedHashMap params,
                                    int begin,
                                    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.util.LinkedHashMap 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

setUserGroups

public static void setUserGroups(long userId,
                                 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

unsetUserGroups

public static void unsetUserGroups(long userId,
                                   long[] groupIds)
                            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,
                                java.lang.String 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