com.liferay.portal.service
Interface UserGroupRoleLocalService


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

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.UserGroupRoleLocalServiceImpl. 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:
UserGroupRoleLocalServiceUtil

Method Summary
 UserGroupRole addUserGroupRole(UserGroupRole userGroupRole)
           
 void addUserGroupRoles(long[] userIds, long groupId, long roleId)
           
 void addUserGroupRoles(long userId, long groupId, long[] roleIds)
           
 UserGroupRole createUserGroupRole(UserGroupRolePK userGroupRolePK)
           
 void deleteUserGroupRole(UserGroupRole userGroupRole)
           
 void deleteUserGroupRole(UserGroupRolePK userGroupRolePK)
           
 void deleteUserGroupRoles(long[] userIds, long groupId)
           
 void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
           
 void deleteUserGroupRoles(long userId, long[] groupIds)
           
 void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
           
 void deleteUserGroupRolesByGroupId(long groupId)
           
 void deleteUserGroupRolesByRoleId(long roleId)
           
 void deleteUserGroupRolesByUserId(long userId)
           
 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)
           
 UserGroupRole getUserGroupRole(UserGroupRolePK userGroupRolePK)
           
 java.util.List<UserGroupRole> getUserGroupRoles(int start, int end)
           
 java.util.List<UserGroupRole> getUserGroupRoles(long userId)
           
 java.util.List<UserGroupRole> getUserGroupRoles(long userId, long groupId)
           
 java.util.List<UserGroupRole> getUserGroupRolesByGroupAndRole(long groupId, long roleId)
           
 int getUserGroupRolesCount()
           
 boolean hasUserGroupRole(long userId, long groupId, long roleId)
           
 boolean hasUserGroupRole(long userId, long groupId, java.lang.String roleName)
           
 UserGroupRole updateUserGroupRole(UserGroupRole userGroupRole)
           
 

Method Detail

addUserGroupRole

UserGroupRole addUserGroupRole(UserGroupRole userGroupRole)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createUserGroupRole

UserGroupRole createUserGroupRole(UserGroupRolePK userGroupRolePK)

deleteUserGroupRole

void deleteUserGroupRole(UserGroupRolePK userGroupRolePK)
                         throws com.liferay.portal.SystemException,
                                com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteUserGroupRole

void deleteUserGroupRole(UserGroupRole userGroupRole)
                         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

getUserGroupRole

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole getUserGroupRole(UserGroupRolePK userGroupRolePK)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUserGroupRoles

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

getUserGroupRolesCount

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

updateUserGroupRole

UserGroupRole updateUserGroupRole(UserGroupRole userGroupRole)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addUserGroupRoles

void addUserGroupRoles(long userId,
                       long groupId,
                       long[] roleIds)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addUserGroupRoles

void addUserGroupRoles(long[] userIds,
                       long groupId,
                       long roleId)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteUserGroupRoles

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

deleteUserGroupRoles

void deleteUserGroupRoles(long[] userIds,
                          long groupId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteUserGroupRoles

void deleteUserGroupRoles(long userId,
                          long groupId,
                          long[] roleIds)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteUserGroupRoles

void deleteUserGroupRoles(long[] userIds,
                          long groupId,
                          long roleId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteUserGroupRolesByGroupId

void deleteUserGroupRolesByGroupId(long groupId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteUserGroupRolesByRoleId

void deleteUserGroupRolesByRoleId(long roleId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteUserGroupRolesByUserId

void deleteUserGroupRolesByUserId(long userId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroupRoles

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

getUserGroupRoles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> getUserGroupRoles(long userId,
                                                              long groupId)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroupRolesByGroupAndRole

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

hasUserGroupRole

boolean hasUserGroupRole(long userId,
                         long groupId,
                         long roleId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasUserGroupRole

boolean hasUserGroupRole(long userId,
                         long groupId,
                         java.lang.String roleName)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException