Interface IUserRoleWebService
- All Known Implementing Classes:
AuthorizationPolicyBasedUserRoleWebService
,UserRoleWebService
public interface IUserRoleWebService
This webservice interface may be used in the platform to expose the management of users and roles, it is a
webservices compatible concrete form of IUserRoleDao.
- Author:
- Will Gorman (wgorman@pentaho.com)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
createRole
(ProxyPentahoRole proxyRole) creates a new role.boolean
createUser
(ProxyPentahoUser proxyUser) creates a new user.boolean
deleteRoles
(ProxyPentahoRole[] roles) deletes a set of roles.boolean
deleteUsers
(ProxyPentahoUser[] users) deletes a set of users.getRoles()
returns the list of roles defined in the systemgetRolesForUser
(ProxyPentahoUser proxyUser) returns a set of roles for a userreturns the user object based on the username.This method returns the entire set of users and roles in the systemgetUsers()
returns the list of users.getUsersForRole
(ProxyPentahoRole proxyRole) returns the list of users that have a specific role.void
setRoles
(ProxyPentahoUser proxyUser, ProxyPentahoRole[] assignedRoles) sets the roles for a user.void
setUsers
(ProxyPentahoRole proxyRole, ProxyPentahoUser[] assignedUsers) sets the users for a role.void
updateRole
(String roleName, String description, List<String> usernames) Updates a role object with a new description and set of usernames.boolean
updateRoleObject
(ProxyPentahoRole proxyPentahoRole) This updates the named role's attributes.boolean
updateUser
(ProxyPentahoUser proxyUser) This updates the named user's attributes
-
Method Details
-
createRole
creates a new role.- Parameters:
proxyRole
-- Returns:
- Throws:
UserRoleException
-
createUser
creates a new user.- Parameters:
proxyUser
-- Returns:
- Throws:
UserRoleException
-
deleteRoles
deletes a set of roles.- Parameters:
roles
-- Returns:
- Throws:
UserRoleException
-
deleteUsers
deletes a set of users.- Parameters:
users
-- Returns:
- Throws:
UserRoleException
-
getRoles
returns the list of roles defined in the system- Returns:
- Throws:
UserRoleException
-
getRolesForUser
returns a set of roles for a user- Parameters:
proxyUser
-- Returns:
- Throws:
UserRoleException
-
getUser
returns the user object based on the username.- Parameters:
pUserName
-- Returns:
- Throws:
UserRoleException
-
getUserRoleSecurityInfo
This method returns the entire set of users and roles in the system- Returns:
- an info object
- Throws:
UserRoleException
-
getUsers
returns the list of users.- Returns:
- Throws:
UserRoleException
-
getUsersForRole
returns the list of users that have a specific role.- Parameters:
proxyRole
-- Returns:
- Throws:
UserRoleException
-
updateUser
This updates the named user's attributes- Parameters:
proxyUser
-- Returns:
- Throws:
UserRoleException
-
setRoles
void setRoles(ProxyPentahoUser proxyUser, ProxyPentahoRole[] assignedRoles) throws UserRoleException sets the roles for a user.- Parameters:
proxyUser
-assignedRoles
-- Throws:
UserRoleException
-
setUsers
void setUsers(ProxyPentahoRole proxyRole, ProxyPentahoUser[] assignedUsers) throws UserRoleException sets the users for a role.- Parameters:
proxyRole
-assignedUsers
-- Throws:
UserRoleException
-
updateRoleObject
This updates the named role's attributes. It is named differently than the IUserRoleDao because of issues with webservice method overloading.- Parameters:
proxyPentahoRole
-- Returns:
- Throws:
UserRoleException
-
updateRole
void updateRole(String roleName, String description, List<String> usernames) throws UserRoleException Updates a role object with a new description and set of usernames.- Parameters:
roleName
-description
-usernames
-- Throws:
UserRoleException
-