org.pentaho.platform.engine.security.userroledao
Interface IUserRoleDao

All Known Implementing Classes:
HibernateUserRoleDao, UserRoleDaoTransactionDecorator

public interface IUserRoleDao

Contract for data access objects that read and write users and roles.

Author:
mlowery

Method Summary
 void createRole(IPentahoRole newRole)
           
 void createUser(IPentahoUser newUser)
           
 void deleteRole(IPentahoRole role)
           
 void deleteUser(IPentahoUser user)
           
 IPentahoRole getRole(String name)
           
 List<IPentahoRole> getRoles()
           
 IPentahoUser getUser(String name)
           
 List<IPentahoUser> getUsers()
           
 void updateRole(IPentahoRole role)
           
 void updateUser(IPentahoUser user)
           
 

Method Detail

createUser

void createUser(IPentahoUser newUser)
                throws AlreadyExistsException,
                       UncategorizedUserRoleDaoException
Throws:
AlreadyExistsException
UncategorizedUserRoleDaoException

deleteUser

void deleteUser(IPentahoUser user)
                throws NotFoundException,
                       UncategorizedUserRoleDaoException
Throws:
NotFoundException
UncategorizedUserRoleDaoException

getUser

IPentahoUser getUser(String name)
                     throws UncategorizedUserRoleDaoException
Throws:
UncategorizedUserRoleDaoException

getUsers

List<IPentahoUser> getUsers()
                            throws UncategorizedUserRoleDaoException
Throws:
UncategorizedUserRoleDaoException

updateUser

void updateUser(IPentahoUser user)
                throws NotFoundException,
                       UncategorizedUserRoleDaoException
Throws:
NotFoundException
UncategorizedUserRoleDaoException

createRole

void createRole(IPentahoRole newRole)
                throws AlreadyExistsException,
                       UncategorizedUserRoleDaoException
Throws:
AlreadyExistsException
UncategorizedUserRoleDaoException

deleteRole

void deleteRole(IPentahoRole role)
                throws NotFoundException,
                       UncategorizedUserRoleDaoException
Throws:
NotFoundException
UncategorizedUserRoleDaoException

getRole

IPentahoRole getRole(String name)
                     throws UncategorizedUserRoleDaoException
Throws:
UncategorizedUserRoleDaoException

getRoles

List<IPentahoRole> getRoles()
                            throws UncategorizedUserRoleDaoException
Throws:
UncategorizedUserRoleDaoException

updateRole

void updateRole(IPentahoRole role)
                throws NotFoundException,
                       UncategorizedUserRoleDaoException
Throws:
NotFoundException
UncategorizedUserRoleDaoException