public class UserRoleDAO
extends java.lang.Object
Constructor and Description |
---|
UserRoleDAO() |
Modifier and Type | Method and Description |
---|---|
static void |
delete(UserRole r)
deletes a user role
|
static java.util.Set<java.lang.String> |
getRoles(java.lang.String email)
retrieves the list of roles for a given email.
|
static java.util.List<UserRole> |
getUserRolesByEmail(java.lang.String email)
retrieves the list of
UserRole -objects by its email. |
static void |
insert(UserRole r)
persists a user role
|
public static java.util.List<UserRole> getUserRolesByEmail(java.lang.String email)
UserRole
-objects by its email.email
- the emailpublic static java.util.Set<java.lang.String> getRoles(java.lang.String email)
email
- the emailpublic static void insert(UserRole r)
r
- the rolepublic static void delete(UserRole r)
r
- the role