@Service public class HibernateUserRoleService extends org.nrg.framework.orm.hibernate.AbstractHibernateEntityService<UserRole,UserRoleDAO> implements UserRoleService
Constructor and Description |
---|
HibernateUserRoleService() |
Modifier and Type | Method and Description |
---|---|
UserRole |
addRoleToUser(String username,
String role)
Creates the specified user role combo.
|
void |
delete(String username,
String role)
Deletes the specified user role combo.
|
List<UserRole> |
findRolesForUser(String username)
Finds all roles for the specified user
|
UserRole |
findUserRole(String username,
String role)
Finds all users for the specified role.
|
List<UserRole> |
findUsersForRole(String role)
Finds all users for the specified role.
|
afterPropertiesSet, create, create, delete, delete, getAll, getAllWithDisabled, getContext, getCount, getCountWithDisabled, getDao, getInitialize, newEntity, refresh, refresh, refresh, refresh, refresh, refresh, retrieve, setApplicationContext, setInitialize, update, validate
getCacheRegion, getParameterizedType, isMatchingType
@Transactional public List<UserRole> findRolesForUser(String username)
findRolesForUser
in interface UserRoleService
username
- The username from the XdatUser table.user roles
issued to the indicated user.@Transactional public List<UserRole> findUsersForRole(String role)
findUsersForRole
in interface UserRoleService
role
- The role to match.user roles
issued to the indicated role.@Transactional public UserRole findUserRole(String username, String role)
findUserRole
in interface UserRoleService
role
- The role to match.username
- The username.user roles
issued to the indicated role.@Transactional public UserRole addRoleToUser(String username, String role)
UserRoleService
addRoleToUser
in interface UserRoleService
username
- The username.role
- The role.@Transactional public void delete(String username, String role)
UserRoleService
delete
in interface UserRoleService
username
- The username to match.role
- The role to match.Copyright © 2015 Neuroinformatics Research Group. All rights reserved.