public interface UserRoleService extends org.nrg.framework.orm.hibernate.BaseHibernateService<UserRole>
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 matching user roles
|
List<UserRole> |
findUsersForRole(String role)
Finds all users for the specified role.
|
List<UserRole> findRolesForUser(String username)
username
- The username from the XdatUser table.user roles
issued to the indicated user.List<UserRole> findUsersForRole(String role)
role
- The role to match.user roles
issued to the indicated role.void delete(String username, String role)
username
- The username to match.role
- The role to match.UserRole addRoleToUser(String username, String role)
username
- The username.role
- The role.Copyright © 2015 Neuroinformatics Research Group. All rights reserved.