edu.internet2.middleware.grouper.internal.dao
Interface RoleDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3RoleDAO

public interface RoleDAO
extends GrouperDAO

role data access methods


Method Summary
 Role findById(String id, boolean exceptionIfNotFound)
           
 Role findByName(String name, boolean exceptionIfNotFound)
          find an attribute def name by name
 void saveOrUpdate(Role role)
          insert or update a role object
 

Method Detail

saveOrUpdate

void saveOrUpdate(Role role)
insert or update a role object

Parameters:
role -

findById

Role findById(String id,
              boolean exceptionIfNotFound)
Parameters:
id -
exceptionIfNotFound -
Returns:
the role or null if not there

findByName

Role findByName(String name,
                boolean exceptionIfNotFound)
                throws GrouperDAOException,
                       RoleNotFoundException
find an attribute def name by name

Parameters:
name -
exceptionIfNotFound -
Returns:
name
Throws:
GrouperDAOException
RoleNotFoundException