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
- AlreadyExistsException
UncategorizedUserRoleDaoException
void setPassword(ITenant tenant, String userName, String password) throws NotFoundException, UncategorizedUserRoleDaoException
tenant
- userName
- password
- NotFoundException
UncategorizedUserRoleDaoException
void setUserDescription(ITenant tenant, String userName, String description) throws NotFoundException, UncategorizedUserRoleDaoException
tenant
- userName
- description
- NotFoundException
UncategorizedUserRoleDaoException
void deleteUser(IPentahoUser user) throws NotFoundException, UncategorizedUserRoleDaoException
user
- NotFoundException
UncategorizedUserRoleDaoException
IPentahoUser getUser(ITenant tenant, String name) throws UncategorizedUserRoleDaoException
tenant
- name
- UncategorizedUserRoleDaoException
List<IPentahoUser> getUsers() throws UncategorizedUserRoleDaoException
UncategorizedUserRoleDaoException
List<IPentahoUser> getUsers(ITenant tenant) throws UncategorizedUserRoleDaoException
tenant
- UncategorizedUserRoleDaoException
List<IPentahoUser> getUsers(ITenant tenant, boolean includeSubtenants) throws UncategorizedUserRoleDaoException
tenant
- includeSubtenants
- UncategorizedUserRoleDaoException
IPentahoRole createRole(ITenant tenant, String roleName, String description, String[] memberUserNames) throws AlreadyExistsException, UncategorizedUserRoleDaoException
tenant
- roleName
- description
- memberUserNames
- AlreadyExistsException
UncategorizedUserRoleDaoException
void setRoleDescription(ITenant tenant, String roleName, String description) throws NotFoundException, UncategorizedUserRoleDaoException
tenant
- roleName
- description
- NotFoundException
UncategorizedUserRoleDaoException
void deleteRole(IPentahoRole role) throws NotFoundException, UncategorizedUserRoleDaoException
role
- NotFoundException
UncategorizedUserRoleDaoException
IPentahoRole getRole(ITenant tenant, String name) throws UncategorizedUserRoleDaoException
tenant
- name
- UncategorizedUserRoleDaoException
List<IPentahoRole> getRoles() throws UncategorizedUserRoleDaoException
UncategorizedUserRoleDaoException
List<IPentahoRole> getRoles(ITenant tenant) throws UncategorizedUserRoleDaoException
tenant
- UncategorizedUserRoleDaoException
List<IPentahoRole> getRoles(ITenant tenant, boolean includeSubtenants) throws UncategorizedUserRoleDaoException
tenant
- includeSubtenants
- UncategorizedUserRoleDaoException
void setRoleMembers(ITenant tenant, String roleName, String[] memberUserNames) throws NotFoundException, UncategorizedUserRoleDaoException
tenant
- roleName
- memberUserNames
- NotFoundException
UncategorizedUserRoleDaoException
void setUserRoles(ITenant tenant, String userName, String[] roles) throws NotFoundException, UncategorizedUserRoleDaoException
tenant
- userName
- roles
- NotFoundException
UncategorizedUserRoleDaoException
List<IPentahoUser> getRoleMembers(ITenant tenant, String roleName) throws UncategorizedUserRoleDaoException
tenant
- roleName
- UncategorizedUserRoleDaoException
List<IPentahoRole> getUserRoles(ITenant tenant, String userName) throws UncategorizedUserRoleDaoException
tenant
- userName
- UncategorizedUserRoleDaoException
Copyright © 2020 Hitachi Vantara. All rights reserved.