com.liferay.portal.service
Interface UserGroupService

All Known Implementing Classes:
UserGroupServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface UserGroupService

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.UserGroupServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

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

Method Summary
 void addGroupUserGroups(long groupId, long[] userGroupIds)
           
 UserGroup addUserGroup(java.lang.String name, java.lang.String description)
           
 void deleteUserGroup(long userGroupId)
           
 UserGroup getUserGroup(long userGroupId)
           
 UserGroup getUserGroup(java.lang.String name)
           
 java.util.List<UserGroup> getUserUserGroups(long userId)
           
 void unsetGroupUserGroups(long groupId, long[] userGroupIds)
           
 UserGroup updateUserGroup(long userGroupId, java.lang.String name, java.lang.String description)
           
 

Method Detail

addGroupUserGroups

void addGroupUserGroups(long groupId,
                        long[] userGroupIds)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

addUserGroup

UserGroup addUserGroup(java.lang.String name,
                       java.lang.String description)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteUserGroup

void deleteUserGroup(long userGroupId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getUserGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroup getUserGroup(long userGroupId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getUserGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroup getUserGroup(java.lang.String name)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getUserUserGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroup> getUserUserGroups(long userId)
                                            throws SystemException
Throws:
SystemException

unsetGroupUserGroups

void unsetGroupUserGroups(long groupId,
                          long[] userGroupIds)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

updateUserGroup

UserGroup updateUserGroup(long userGroupId,
                          java.lang.String name,
                          java.lang.String description)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException