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 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.

Author:
Brian Wing Shun Chan
See Also:
GroupLocalService
Generated:

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, ServiceContext serviceContext)
           
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, ServiceContext serviceContext)
           
static void addRoleGroups(long roleId, long[] groupIds)
           
static void addUserGroups(long userId, long[] groupIds)
           
static void checkCompanyGroup(long companyId)
           
static void checkSystemGroups(long companyId)
           
static Group createGroup(long groupId)
           
static void deleteGroup(Group group)
           
static void deleteGroup(long groupId)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static long dynamicQueryCount(DynamicQuery dynamicQuery)
           
static Group getCompanyGroup(long companyId)
           
static java.util.List<Group> getCompanyGroups(long companyId, int start, int end)
           
static int getCompanyGroupsCount(long companyId)
           
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> getGroups(int start, int end)
           
static java.util.List<Group> getGroups(long[] groupIds)
           
static int getGroupsCount()
           
static Group getLayoutGroup(long companyId, long plid)
           
static Group getLayoutPrototypeGroup(long companyId, long layoutPrototypeId)
           
static Group getLayoutSetPrototypeGroup(long companyId, long layoutSetPrototypeId)
           
static java.util.List<Group> getNoLayoutsGroups(java.lang.String className, boolean privateLayout, int start, int end)
           
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> getOrganizationsRelatedGroups(java.util.List<Organization> organizations)
           
static java.util.List<Group> getRoleGroups(long roleId)
           
static GroupLocalService getService()
           
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> getUserGroups(long userId, boolean inherit)
           
static java.util.List<Group> getUserGroups(long userId, boolean inherit, int start, int end)
           
static java.util.List<Group> getUserGroups(long userId, int start, int end)
           
static java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)
           
static java.util.List<Group> getUserGroupsRelatedGroups(java.util.List<UserGroup> userGroups)
           
static java.util.List<Group> getUserOrganizationsGroups(long userId, int start, int end)
           
static boolean hasRoleGroup(long roleId, long groupId)
           
static boolean hasStagingGroup(long liveGroupId)
           
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 start, 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 start, int end, 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)
           
 void setService(GroupLocalService service)
           
static void unsetRoleGroups(long roleId, long[] groupIds)
           
static void unsetUserGroups(long userId, long[] groupIds)
           
static void updateAsset(long userId, Group group, long[] assetCategoryIds, java.lang.String[] assetTagNames)
           
static Group updateFriendlyURL(long groupId, java.lang.String friendlyURL)
           
static Group updateGroup(Group group)
           
static Group updateGroup(Group group, boolean merge)
           
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, ServiceContext serviceContext)
           
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 SystemException
Throws:
SystemException

createGroup

public static Group createGroup(long groupId)

deleteGroup

public static void deleteGroup(long groupId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deleteGroup

public static void deleteGroup(Group group)
                        throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                                   throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                                          int start,
                                          int end)
                                   throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Throws:
SystemException

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Throws:
SystemException

getGroup

public static Group getGroup(long groupId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getGroups

public static java.util.List<Group> getGroups(int start,
                                              int end)
                                       throws SystemException
Throws:
SystemException

getGroupsCount

public static int getGroupsCount()
                          throws SystemException
Throws:
SystemException

updateGroup

public static Group updateGroup(Group group)
                         throws SystemException
Throws:
SystemException

updateGroup

public static Group updateGroup(Group group,
                                boolean merge)
                         throws SystemException
Throws:
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,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
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,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addRoleGroups

public static void addRoleGroups(long roleId,
                                 long[] groupIds)
                          throws SystemException
Throws:
SystemException

addUserGroups

public static void addUserGroups(long userId,
                                 long[] groupIds)
                          throws SystemException
Throws:
SystemException

checkCompanyGroup

public static void checkCompanyGroup(long companyId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

checkSystemGroups

public static void checkSystemGroups(long companyId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getCompanyGroup

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

getCompanyGroups

public static java.util.List<Group> getCompanyGroups(long companyId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException

getCompanyGroupsCount

public static int getCompanyGroupsCount(long companyId)
                                 throws SystemException
Throws:
SystemException

getFriendlyURLGroup

public static Group getFriendlyURLGroup(long companyId,
                                        java.lang.String friendlyURL)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getGroup

public static Group getGroup(long companyId,
                             java.lang.String name)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getGroups

public static java.util.List<Group> getGroups(long[] groupIds)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getLayoutGroup

public static Group getLayoutGroup(long companyId,
                                   long plid)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getLayoutPrototypeGroup

public static Group getLayoutPrototypeGroup(long companyId,
                                            long layoutPrototypeId)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getLayoutSetPrototypeGroup

public static Group getLayoutSetPrototypeGroup(long companyId,
                                               long layoutSetPrototypeId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getNoLayoutsGroups

public static java.util.List<Group> getNoLayoutsGroups(java.lang.String className,
                                                       boolean privateLayout,
                                                       int start,
                                                       int end)
                                                throws SystemException
Throws:
SystemException

getNullFriendlyURLGroups

public static java.util.List<Group> getNullFriendlyURLGroups()
                                                      throws SystemException
Throws:
SystemException

getOrganizationGroup

public static Group getOrganizationGroup(long companyId,
                                         long organizationId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getOrganizationsGroups

public static java.util.List<Group> getOrganizationsGroups(java.util.List<Organization> organizations)

getOrganizationsRelatedGroups

public static java.util.List<Group> getOrganizationsRelatedGroups(java.util.List<Organization> organizations)
                                                           throws SystemException
Throws:
SystemException

getRoleGroups

public static java.util.List<Group> getRoleGroups(long roleId)
                                           throws SystemException
Throws:
SystemException

getStagingGroup

public static Group getStagingGroup(long liveGroupId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getUserGroup

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

getUserGroupGroup

public static Group getUserGroupGroup(long companyId,
                                      long userGroupId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getUserGroups

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

getUserGroups

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

getUserGroups

public static java.util.List<Group> getUserGroups(long userId,
                                                  int start,
                                                  int end)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getUserGroups

public static java.util.List<Group> getUserGroups(long userId,
                                                  boolean inherit,
                                                  int start,
                                                  int end)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getUserGroupsGroups

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

getUserGroupsRelatedGroups

public static java.util.List<Group> getUserGroupsRelatedGroups(java.util.List<UserGroup> userGroups)
                                                        throws SystemException
Throws:
SystemException

getUserOrganizationsGroups

public static java.util.List<Group> getUserOrganizationsGroups(long userId,
                                                               int start,
                                                               int end)
                                                        throws PortalException,
                                                               SystemException
Throws:
PortalException
SystemException

hasRoleGroup

public static boolean hasRoleGroup(long roleId,
                                   long groupId)
                            throws SystemException
Throws:
SystemException

hasStagingGroup

public static boolean hasStagingGroup(long liveGroupId)
                               throws SystemException
Throws:
SystemException

hasUserGroup

public static boolean hasUserGroup(long userId,
                                   long groupId)
                            throws SystemException
Throws:
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 start,
                                           int end)
                                    throws SystemException
Throws:
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 start,
                                           int end,
                                           OrderByComparator obc)
                                    throws SystemException
Throws:
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 SystemException
Throws:
SystemException

setRoleGroups

public static void setRoleGroups(long roleId,
                                 long[] groupIds)
                          throws SystemException
Throws:
SystemException

unsetRoleGroups

public static void unsetRoleGroups(long roleId,
                                   long[] groupIds)
                            throws SystemException
Throws:
SystemException

unsetUserGroups

public static void unsetUserGroups(long userId,
                                   long[] groupIds)
                            throws SystemException
Throws:
SystemException

updateAsset

public static void updateAsset(long userId,
                               Group group,
                               long[] assetCategoryIds,
                               java.lang.String[] assetTagNames)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateFriendlyURL

public static Group updateFriendlyURL(long groupId,
                                      java.lang.String friendlyURL)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

updateGroup

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

updateGroup

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

updateWorkflow

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

getService

public static GroupLocalService getService()

setService

public void setService(GroupLocalService service)