public interface IUserRoleDao
| Modifier and Type | Method and Description | 
|---|---|
IPentahoRole | 
createRole(ITenant tenant,
          String roleName,
          String description,
          String[] memberUserNames)
Create a role under a specified tenant. 
 | 
IPentahoUser | 
createUser(ITenant tenant,
          String username,
          String password,
          String description,
          String[] roles)
Creates user under a specified tenant. 
 | 
void | 
deleteRole(IPentahoRole role)
Delete the role from the repository 
 | 
void | 
deleteUser(IPentahoUser user)
Delete the user from the repository 
 | 
IPentahoRole | 
getRole(ITenant tenant,
       String name)
Retrieves the role with a given name from the specified tenant. 
 | 
List<IPentahoUser> | 
getRoleMembers(ITenant tenant,
              String roleName)
Retrieves the list of users associated to a particular role in a given tenant. 
 | 
List<IPentahoRole> | 
getRoles()
Retrieve all the role from the default tenant 
 | 
List<IPentahoRole> | 
getRoles(ITenant tenant)
Retrieve all the role from the specified tenant. 
 | 
List<IPentahoRole> | 
getRoles(ITenant tenant,
        boolean includeSubtenants)
Retrieve all the roles from the specified tenant. 
 | 
IPentahoUser | 
getUser(ITenant tenant,
       String name)
Retrieve the user from a specified tenant of the repository. 
 | 
List<IPentahoRole> | 
getUserRoles(ITenant tenant,
            String userName)
Retrieves the list of roles associated to a particular user in a given tenant. 
 | 
List<IPentahoUser> | 
getUsers()
Retrieve all the users from the default tenant of a repository. 
 | 
List<IPentahoUser> | 
getUsers(ITenant tenant)
Retrieve all the users from the specified tenant of a repository. 
 | 
List<IPentahoUser> | 
getUsers(ITenant tenant,
        boolean includeSubtenants)
Retrieve all the users from the specified tenant of a repository . 
 | 
void | 
setPassword(ITenant tenant,
           String userName,
           String password)
Update the password of an existing user under a specified tenant. 
 | 
void | 
setRoleDescription(ITenant tenant,
                  String roleName,
                  String description)
Update the role description of a given role under a specific tenant. 
 | 
void | 
setRoleMembers(ITenant tenant,
              String roleName,
              String[] memberUserNames)
Assign list of user names to a particular role in a specified tenant. 
 | 
void | 
setUserDescription(ITenant tenant,
                  String userName,
                  String description)
Update the user description of an existing user under a speficied tenant. 
 | 
void | 
setUserRoles(ITenant tenant,
            String userName,
            String[] roles)
Assign a list of roles to a particular user in a specified tenant. 
 | 
IPentahoUser createUser(ITenant tenant, String username, String password, String description, String[] roles) throws AlreadyExistsException, UncategorizedUserRoleDaoException
tenant - username - password - description - roles - AlreadyExistsExceptionUncategorizedUserRoleDaoExceptionvoid setPassword(ITenant tenant, String userName, String password) throws NotFoundException, UncategorizedUserRoleDaoException
tenant - userName - password - NotFoundExceptionUncategorizedUserRoleDaoExceptionvoid setUserDescription(ITenant tenant, String userName, String description) throws NotFoundException, UncategorizedUserRoleDaoException
tenant - userName - description - NotFoundExceptionUncategorizedUserRoleDaoExceptionvoid deleteUser(IPentahoUser user) throws NotFoundException, UncategorizedUserRoleDaoException
user - NotFoundExceptionUncategorizedUserRoleDaoExceptionIPentahoUser getUser(ITenant tenant, String name) throws UncategorizedUserRoleDaoException
tenant - name - UncategorizedUserRoleDaoExceptionList<IPentahoUser> getUsers() throws UncategorizedUserRoleDaoException
UncategorizedUserRoleDaoExceptionList<IPentahoUser> getUsers(ITenant tenant) throws UncategorizedUserRoleDaoException
tenant - UncategorizedUserRoleDaoExceptionList<IPentahoUser> getUsers(ITenant tenant, boolean includeSubtenants) throws UncategorizedUserRoleDaoException
tenant - includeSubtenants - UncategorizedUserRoleDaoExceptionIPentahoRole createRole(ITenant tenant, String roleName, String description, String[] memberUserNames) throws AlreadyExistsException, UncategorizedUserRoleDaoException
tenant - roleName - description - memberUserNames - AlreadyExistsExceptionUncategorizedUserRoleDaoExceptionvoid setRoleDescription(ITenant tenant, String roleName, String description) throws NotFoundException, UncategorizedUserRoleDaoException
tenant - roleName - description - NotFoundExceptionUncategorizedUserRoleDaoExceptionvoid deleteRole(IPentahoRole role) throws NotFoundException, UncategorizedUserRoleDaoException
role - NotFoundExceptionUncategorizedUserRoleDaoExceptionIPentahoRole getRole(ITenant tenant, String name) throws UncategorizedUserRoleDaoException
tenant - name - UncategorizedUserRoleDaoExceptionList<IPentahoRole> getRoles() throws UncategorizedUserRoleDaoException
UncategorizedUserRoleDaoExceptionList<IPentahoRole> getRoles(ITenant tenant) throws UncategorizedUserRoleDaoException
tenant - UncategorizedUserRoleDaoExceptionList<IPentahoRole> getRoles(ITenant tenant, boolean includeSubtenants) throws UncategorizedUserRoleDaoException
tenant - includeSubtenants - UncategorizedUserRoleDaoExceptionvoid setRoleMembers(ITenant tenant, String roleName, String[] memberUserNames) throws NotFoundException, UncategorizedUserRoleDaoException
tenant - roleName - memberUserNames - NotFoundExceptionUncategorizedUserRoleDaoExceptionvoid setUserRoles(ITenant tenant, String userName, String[] roles) throws NotFoundException, UncategorizedUserRoleDaoException
tenant - userName - roles - NotFoundExceptionUncategorizedUserRoleDaoExceptionList<IPentahoUser> getRoleMembers(ITenant tenant, String roleName) throws UncategorizedUserRoleDaoException
tenant - roleName - UncategorizedUserRoleDaoExceptionList<IPentahoRole> getUserRoles(ITenant tenant, String userName) throws UncategorizedUserRoleDaoException
tenant - userName - UncategorizedUserRoleDaoException