Interface IUserRoleWebService
-
- All Known Implementing Classes:
AuthorizationPolicyBasedUserRoleWebService,UserRoleWebService
public interface IUserRoleWebServiceThis 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancreateRole(ProxyPentahoRole proxyRole)creates a new role.booleancreateUser(ProxyPentahoUser proxyUser)creates a new user.booleandeleteRoles(ProxyPentahoRole[] roles)deletes a set of roles.booleandeleteUsers(ProxyPentahoUser[] users)deletes a set of users.ProxyPentahoRole[]getRoles()returns the list of roles defined in the systemProxyPentahoRole[]getRolesForUser(ProxyPentahoUser proxyUser)returns a set of roles for a userProxyPentahoUsergetUser(String pUserName)returns the user object based on the username.UserRoleSecurityInfogetUserRoleSecurityInfo()This method returns the entire set of users and roles in the systemProxyPentahoUser[]getUsers()returns the list of users.ProxyPentahoUser[]getUsersForRole(ProxyPentahoRole proxyRole)returns the list of users that have a specific role.voidsetRoles(ProxyPentahoUser proxyUser, ProxyPentahoRole[] assignedRoles)sets the roles for a user.voidsetUsers(ProxyPentahoRole proxyRole, ProxyPentahoUser[] assignedUsers)sets the users for a role.voidupdateRole(String roleName, String description, List<String> usernames)Updates a role object with a new description and set of usernames.booleanupdateRoleObject(ProxyPentahoRole proxyPentahoRole)This updates the named role's attributes.booleanupdateUser(ProxyPentahoUser proxyUser)This updates the named user's attributes
-
-
-
Method Detail
-
createRole
boolean createRole(ProxyPentahoRole proxyRole) throws UserRoleException
creates a new role.- Parameters:
proxyRole-- Returns:
- Throws:
UserRoleException
-
createUser
boolean createUser(ProxyPentahoUser proxyUser) throws UserRoleException
creates a new user.- Parameters:
proxyUser-- Returns:
- Throws:
UserRoleException
-
deleteRoles
boolean deleteRoles(ProxyPentahoRole[] roles) throws UserRoleException
deletes a set of roles.- Parameters:
roles-- Returns:
- Throws:
UserRoleException
-
deleteUsers
boolean deleteUsers(ProxyPentahoUser[] users) throws UserRoleException
deletes a set of users.- Parameters:
users-- Returns:
- Throws:
UserRoleException
-
getRoles
ProxyPentahoRole[] getRoles() throws UserRoleException
returns the list of roles defined in the system- Returns:
- Throws:
UserRoleException
-
getRolesForUser
ProxyPentahoRole[] getRolesForUser(ProxyPentahoUser proxyUser) throws UserRoleException
returns a set of roles for a user- Parameters:
proxyUser-- Returns:
- Throws:
UserRoleException
-
getUser
ProxyPentahoUser getUser(String pUserName) throws UserRoleException
returns the user object based on the username.- Parameters:
pUserName-- Returns:
- Throws:
UserRoleException
-
getUserRoleSecurityInfo
UserRoleSecurityInfo getUserRoleSecurityInfo() throws UserRoleException
This method returns the entire set of users and roles in the system- Returns:
- an info object
- Throws:
UserRoleException
-
getUsers
ProxyPentahoUser[] getUsers() throws UserRoleException
returns the list of users.- Returns:
- Throws:
UserRoleException
-
getUsersForRole
ProxyPentahoUser[] getUsersForRole(ProxyPentahoRole proxyRole) throws UserRoleException
returns the list of users that have a specific role.- Parameters:
proxyRole-- Returns:
- Throws:
UserRoleException
-
updateUser
boolean updateUser(ProxyPentahoUser proxyUser) throws UserRoleException
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
boolean updateRoleObject(ProxyPentahoRole proxyPentahoRole) throws UserRoleException
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
-
-