com.liferay.portal.service
Interface UserGroupLocalService
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
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:
UserGroupLocalServiceUtil
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 userGroup)
|
void |
clearUserUserGroups(long userId)
|
UserGroup |
createUserGroup(long userGroupId)
|
void |
deleteUserGroup(long userGroupId)
|
void |
deleteUserGroup(UserGroup userGroup)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
UserGroup |
getUserGroup(long userGroupId)
|
UserGroup |
getUserGroup(long companyId,
java.lang.String name)
|
java.util.List<UserGroup> |
getUserGroups(int start,
int end)
|
java.util.List<UserGroup> |
getUserGroups(long companyId)
|
java.util.List<UserGroup> |
getUserGroups(long[] userGroupIds)
|
int |
getUserGroupsCount()
|
java.util.List<UserGroup> |
getUserUserGroups(long userId)
|
boolean |
hasGroupUserGroup(long groupId,
long userGroupId)
|
java.util.List<UserGroup> |
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 |
unsetGroupUserGroups(long groupId,
long[] userGroupIds)
|
UserGroup |
updateUserGroup(long companyId,
long userGroupId,
java.lang.String name,
java.lang.String description)
|
UserGroup |
updateUserGroup(UserGroup userGroup)
|
addUserGroup
UserGroup addUserGroup(UserGroup userGroup)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createUserGroup
UserGroup createUserGroup(long userGroupId)
deleteUserGroup
void deleteUserGroup(long userGroupId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteUserGroup
void deleteUserGroup(UserGroup userGroup)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroup
@Transactional(propagation=SUPPORTS,
readOnly=true)
UserGroup getUserGroup(long userGroupId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getUserGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<UserGroup> getUserGroups(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroupsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getUserGroupsCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateUserGroup
UserGroup updateUserGroup(UserGroup userGroup)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroupUserGroups
void addGroupUserGroups(long groupId,
long[] userGroupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUserGroup
UserGroup addUserGroup(long userId,
long companyId,
java.lang.String name,
java.lang.String description)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
clearUserUserGroups
void clearUserUserGroups(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroup
@Transactional(propagation=SUPPORTS,
readOnly=true)
UserGroup getUserGroup(long companyId,
java.lang.String name)
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<UserGroup> getUserGroups(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<UserGroup> getUserGroups(long[] userGroupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserUserGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<UserGroup> getUserUserGroups(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasGroupUserGroup
boolean hasGroupUserGroup(long groupId,
long userGroupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<UserGroup> 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
unsetGroupUserGroups
void unsetGroupUserGroups(long groupId,
long[] userGroupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateUserGroup
UserGroup updateUserGroup(long companyId,
long userGroupId,
java.lang.String name,
java.lang.String description)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException