com.liferay.portal.service.impl
Class UserGroupServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.impl.PrincipalBean
      extended bycom.liferay.portal.service.impl.UserGroupServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.UserGroupService

public class UserGroupServiceImpl
extends PrincipalBean
implements com.liferay.portal.service.UserGroupService

View Source

Author:
Charles May

Field Summary
 
Fields inherited from class com.liferay.portal.service.impl.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
UserGroupServiceImpl()
           
 
Method Summary
 void addGroupUserGroups(long groupId, long[] userGroupIds)
           
 com.liferay.portal.model.UserGroup addUserGroup(java.lang.String name, java.lang.String description)
           
 void deleteUserGroup(long userGroupId)
           
 com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
           
 com.liferay.portal.model.UserGroup getUserGroup(java.lang.String name)
           
 java.util.List getUserUserGroups(long userId)
           
 void unsetGroupUserGroups(long groupId, long[] userGroupIds)
           
 com.liferay.portal.model.UserGroup updateUserGroup(long userGroupId, java.lang.String name, java.lang.String description)
           
 
Methods inherited from class com.liferay.portal.service.impl.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserGroupServiceImpl

public UserGroupServiceImpl()
Method Detail

addGroupUserGroups

public void addGroupUserGroups(long groupId,
                               long[] userGroupIds)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Specified by:
addGroupUserGroups in interface com.liferay.portal.service.UserGroupService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addUserGroup

public com.liferay.portal.model.UserGroup addUserGroup(java.lang.String name,
                                                       java.lang.String description)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Specified by:
addUserGroup in interface com.liferay.portal.service.UserGroupService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteUserGroup

public void deleteUserGroup(long userGroupId)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Specified by:
deleteUserGroup in interface com.liferay.portal.service.UserGroupService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroup

public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Specified by:
getUserGroup in interface com.liferay.portal.service.UserGroupService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroup

public com.liferay.portal.model.UserGroup getUserGroup(java.lang.String name)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Specified by:
getUserGroup in interface com.liferay.portal.service.UserGroupService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserUserGroups

public java.util.List getUserUserGroups(long userId)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Specified by:
getUserUserGroups in interface com.liferay.portal.service.UserGroupService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsetGroupUserGroups

public void unsetGroupUserGroups(long groupId,
                                 long[] userGroupIds)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Specified by:
unsetGroupUserGroups in interface com.liferay.portal.service.UserGroupService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateUserGroup

public com.liferay.portal.model.UserGroup updateUserGroup(long userGroupId,
                                                          java.lang.String name,
                                                          java.lang.String description)
                                                   throws com.liferay.portal.PortalException,
                                                          com.liferay.portal.SystemException
Specified by:
updateUserGroup in interface com.liferay.portal.service.UserGroupService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException