com.liferay.portal.service
Interface UserGroupLocalService


public interface UserGroupLocalService

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.UserGroupLocalServiceImpl. 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:
UserGroupServiceFactory, UserGroupServiceUtil

Method Summary
 void addGroupUserGroups(long groupId, long[] userGroupIds)
           
 UserGroup addUserGroup(long userId, long companyId, java.lang.String name, java.lang.String description)
           
 UserGroup addUserGroup(UserGroup model)
           
 void clearUserUserGroups(long userId)
           
 void deleteUserGroup(long userGroupId)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 UserGroup getUserGroup(long userGroupId)
           
 UserGroup getUserGroup(long companyId, java.lang.String name)
           
 java.util.List getUserGroups(long companyId)
           
 java.util.List getUserUserGroups(long userId)
           
 boolean hasGroupUserGroup(long groupId, long userGroupId)
           
 java.util.List search(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap params, int begin, int end)
           
 int searchCount(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap params)
           
 void unsetGroupUserGroups(long groupId, long[] userGroupIds)
           
 UserGroup updateUserGroup(long companyId, long userGroupId, java.lang.String name, java.lang.String description)
           
 UserGroup updateUserGroup(UserGroup model)
           
 

Method Detail

addUserGroup

public UserGroup addUserGroup(UserGroup model)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

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

dynamicQuery

public 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

updateUserGroup

public UserGroup updateUserGroup(UserGroup model)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addGroupUserGroups

public void addGroupUserGroups(long groupId,
                               long[] userGroupIds)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addUserGroup

public UserGroup addUserGroup(long userId,
                              long companyId,
                              java.lang.String name,
                              java.lang.String description)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

clearUserUserGroups

public void clearUserUserGroups(long userId)
                         throws com.liferay.portal.SystemException,
                                com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteUserGroup

public void deleteUserGroup(long userGroupId)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUserGroup

public UserGroup getUserGroup(long userGroupId)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUserGroup

public UserGroup getUserGroup(long companyId,
                              java.lang.String name)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUserGroups

public java.util.List getUserGroups(long companyId)
                             throws com.liferay.portal.SystemException,
                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUserUserGroups

public java.util.List getUserUserGroups(long userId)
                                 throws com.liferay.portal.SystemException,
                                        com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

hasGroupUserGroup

public boolean hasGroupUserGroup(long groupId,
                                 long userGroupId)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

search

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

unsetGroupUserGroups

public void unsetGroupUserGroups(long groupId,
                                 long[] userGroupIds)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

updateUserGroup

public UserGroup updateUserGroup(long companyId,
                                 long userGroupId,
                                 java.lang.String name,
                                 java.lang.String description)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException