com.liferay.portal.service
Class GroupLocalServiceUtil

java.lang.Object
  extended by com.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 group)
           
static Group addGroup(long userId, java.lang.String className, long classPK, long liveGroupId, java.lang.String name, java.lang.String description, int 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, int 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(Group group)
           
static void deleteGroup(long groupId)
           
static java.util.List<Group> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List<Group> 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 java.util.List<Group> getNullFriendlyURLGroups()
           
static Group getOrganizationGroup(long companyId, long organizationId)
           
static java.util.List<Group> getOrganizationsGroups(java.util.List<Organization> organizations)
           
static java.util.List<Group> 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<Group> getUserGroups(long userId)
           
static java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)
           
static boolean hasRoleGroup(long roleId, long groupId)
           
static boolean hasUserGroup(long userId, long groupId)
           
static java.util.List<Group> search(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int begin, int end)
           
static java.util.List<Group> search(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int searchCount(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
static void setRoleGroups(long roleId, long[] groupIds)
           
static void unsetRoleGroups(long roleId, long[] groupIds)
           
static void unsetUserGroups(long userId, long[] groupIds)
           
static Group updateFriendlyURL(long groupId, java.lang.String friendlyURL)
           
static Group updateGroup(Group group)
           
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

GroupLocalServiceUtil

public GroupLocalServiceUtil()
Method Detail

addGroup

public static Group addGroup(Group group)
                      throws com.liferay.portal.SystemException
Throws:
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

deleteGroup

public static void deleteGroup(Group group)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

dynamicQuery

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

dynamicQuery

public static java.util.List<Group> 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 group)
                         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,
                             int 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,
                             int 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

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

getNullFriendlyURLGroups

public static java.util.List<Group> getNullFriendlyURLGroups()
                                                      throws com.liferay.portal.SystemException
Throws:
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<Group> getOrganizationsGroups(java.util.List<Organization> 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<Group> 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

getUserGroups

public static java.util.List<Group> getUserGroups(long userId)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroupsGroups

public static java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> 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<Group> search(long companyId,
                                           java.lang.String name,
                                           java.lang.String description,
                                           java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static java.util.List<Group> search(long companyId,
                                           java.lang.String name,
                                           java.lang.String description,
                                           java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                           int begin,
                                           int end,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    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<java.lang.String,java.lang.Object> 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

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

updateFriendlyURL

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

updateWorkflow

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