1 package net.ramapuram.thomas.dao;
2
3 import net.ramapuram.thomas.model.Role;
4
5 /**
6 * Role Data Access Object (DAO) interface.
7 *
8 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
9 */
10 public interface RoleDao extends GenericDao<Role, Long> {
11 /**
12 * Gets role information based on rolename
13 * @param rolename the rolename
14 * @return populated role object
15 */
16 Role getRoleByName(String rolename);
17
18 /**
19 * Removes a role from the database by name
20 * @param rolename the role's rolename
21 */
22 void removeRole(String rolename);
23 }