com.liferay.portal.service
Interface GroupLocalService

All Known Implementing Classes:
GroupLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface GroupLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.GroupLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

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

Method Summary
 Group addGroup(Group group)
           
 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)
           
 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)
           
 void addRoleGroups(long roleId, long[] groupIds)
           
 void addUserGroups(long userId, long[] groupIds)
           
 void checkSystemGroups(long companyId)
           
 Group createGroup(long groupId)
           
 void deleteGroup(Group group)
           
 void deleteGroup(long groupId)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<Group> getCompanyGroups(long companyId, int start, int end)
           
 int getCompanyGroupsCount(long companyId)
           
 Group getFriendlyURLGroup(long companyId, java.lang.String friendlyURL)
           
 Group getGroup(long groupId)
           
 Group getGroup(long companyId, java.lang.String name)
           
 java.util.List<Group> getGroups(int start, int end)
           
 java.util.List<Group> getGroups(long[] groupIds)
           
 int getGroupsCount()
           
 Group getLayoutGroup(long companyId, long plid)
           
 java.util.List<Group> getNoLayoutsGroups(java.lang.String className, boolean privateLayout, int start, int end)
           
 java.util.List<Group> getNullFriendlyURLGroups()
           
 Group getOrganizationGroup(long companyId, long organizationId)
           
 java.util.List<Group> getOrganizationsGroups(java.util.List<Organization> organizations)
           
 java.util.List<Group> getOrganizationsRelatedGroups(java.util.List<Organization> organizations)
           
 java.util.List<Group> getRoleGroups(long roleId)
           
 Group getStagingGroup(long liveGroupId)
           
 Group getUserGroup(long companyId, long userId)
           
 Group getUserGroupGroup(long companyId, long userGroupId)
           
 java.util.List<Group> getUserGroups(long userId)
           
 java.util.List<Group> getUserGroups(long userId, boolean inherit)
           
 java.util.List<Group> getUserGroups(long userId, boolean inherit, int start, int end)
           
 java.util.List<Group> getUserGroups(long userId, int start, int end)
           
 java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)
           
 java.util.List<Group> getUserGroupsRelatedGroups(java.util.List<UserGroup> userGroups)
           
 java.util.List<Group> getUserOrganizationsGroups(long userId, int start, int end)
           
 boolean hasRoleGroup(long roleId, long groupId)
           
 boolean hasStagingGroup(long liveGroupId)
           
 boolean hasUserGroup(long userId, long groupId)
           
 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)
           
 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, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int searchCount(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
 void setRoleGroups(long roleId, long[] groupIds)
           
 void unsetRoleGroups(long roleId, long[] groupIds)
           
 void unsetUserGroups(long userId, long[] groupIds)
           
 Group updateFriendlyURL(long groupId, java.lang.String friendlyURL)
           
 Group updateGroup(Group group)
           
 Group updateGroup(Group group, boolean merge)
           
 Group updateGroup(long groupId, java.lang.String typeSettings)
           
 Group updateGroup(long groupId, java.lang.String name, java.lang.String description, int type, java.lang.String friendlyURL, boolean active, ServiceContext serviceContext)
           
 void updateTagsAsset(long userId, Group group, java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
           
 Group updateWorkflow(long groupId, boolean workflowEnabled, int workflowStages, java.lang.String workflowRoleNames)
           
 

Method Detail

addGroup

Group addGroup(Group group)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createGroup

Group createGroup(long groupId)

deleteGroup

void deleteGroup(long groupId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteGroup

void deleteGroup(Group group)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQueryCount

int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Group getGroup(long groupId)
               throws com.liferay.portal.PortalException,
                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getGroups(int start,
                                              int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupsCount()
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateGroup

Group updateGroup(Group group)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateGroup

Group updateGroup(Group group,
                  boolean merge)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addGroup

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

addGroup

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

addRoleGroups

void addRoleGroups(long roleId,
                   long[] groupIds)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addUserGroups

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

checkSystemGroups

void checkSystemGroups(long companyId)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getCompanyGroups(long companyId,
                                                     int start,
                                                     int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyGroupsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyGroupsCount(long companyId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFriendlyURLGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

getGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getGroups(long[] groupIds)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getLayoutGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Group getLayoutGroup(long companyId,
                                   long plid)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNoLayoutsGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getNoLayoutsGroups(java.lang.String className,
                                                       boolean privateLayout,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNullFriendlyURLGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getNullFriendlyURLGroups()
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getOrganizationsGroups(java.util.List<Organization> organizations)

getOrganizationsRelatedGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getOrganizationsRelatedGroups(java.util.List<Organization> organizations)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoleGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getRoleGroups(long roleId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getStagingGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Group getStagingGroup(long liveGroupId)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

getUserGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getUserGroups(long userId,
                                                  boolean inherit)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getUserGroups(long userId,
                                                  int start,
                                                  int end)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getUserGroups(long userId,
                                                  boolean inherit,
                                                  int start,
                                                  int end)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroupsGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)

getUserGroupsRelatedGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getUserGroupsRelatedGroups(java.util.List<UserGroup> userGroups)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserOrganizationsGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getUserOrganizationsGroups(long userId,
                                                               int start,
                                                               int end)
                                                 throws com.liferay.portal.PortalException,
                                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

hasRoleGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasRoleGroup(long roleId,
                                   long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasStagingGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasStagingGroup(long liveGroupId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasUserGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasUserGroup(long userId,
                                   long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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 com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

void setRoleGroups(long roleId,
                   long[] groupIds)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

unsetRoleGroups

void unsetRoleGroups(long roleId,
                     long[] groupIds)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

unsetUserGroups

void unsetUserGroups(long userId,
                     long[] groupIds)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateFriendlyURL

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

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

updateGroup

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

updateTagsAsset

void updateTagsAsset(long userId,
                     Group group,
                     java.lang.String[] tagsCategories,
                     java.lang.String[] tagsEntries)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateWorkflow

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