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 SummaryAll 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- 
createRoleboolean createRole(ProxyPentahoRole proxyRole) throws UserRoleException creates a new role.- Parameters:
- proxyRole-
- Returns:
- Throws:
- UserRoleException
 
 - 
createUserboolean createUser(ProxyPentahoUser proxyUser) throws UserRoleException creates a new user.- Parameters:
- proxyUser-
- Returns:
- Throws:
- UserRoleException
 
 - 
deleteRolesboolean deleteRoles(ProxyPentahoRole[] roles) throws UserRoleException deletes a set of roles.- Parameters:
- roles-
- Returns:
- Throws:
- UserRoleException
 
 - 
deleteUsersboolean deleteUsers(ProxyPentahoUser[] users) throws UserRoleException deletes a set of users.- Parameters:
- users-
- Returns:
- Throws:
- UserRoleException
 
 - 
getRolesProxyPentahoRole[] getRoles() throws UserRoleException returns the list of roles defined in the system- Returns:
- Throws:
- UserRoleException
 
 - 
getRolesForUserProxyPentahoRole[] getRolesForUser(ProxyPentahoUser proxyUser) throws UserRoleException returns a set of roles for a user- Parameters:
- proxyUser-
- Returns:
- Throws:
- UserRoleException
 
 - 
getUserProxyPentahoUser getUser(String pUserName) throws UserRoleException returns the user object based on the username.- Parameters:
- pUserName-
- Returns:
- Throws:
- UserRoleException
 
 - 
getUserRoleSecurityInfoUserRoleSecurityInfo getUserRoleSecurityInfo() throws UserRoleException This method returns the entire set of users and roles in the system- Returns:
- an info object
- Throws:
- UserRoleException
 
 - 
getUsersProxyPentahoUser[] getUsers() throws UserRoleException returns the list of users.- Returns:
- Throws:
- UserRoleException
 
 - 
getUsersForRoleProxyPentahoUser[] getUsersForRole(ProxyPentahoRole proxyRole) throws UserRoleException returns the list of users that have a specific role.- Parameters:
- proxyRole-
- Returns:
- Throws:
- UserRoleException
 
 - 
updateUserboolean updateUser(ProxyPentahoUser proxyUser) throws UserRoleException This updates the named user's attributes- Parameters:
- proxyUser-
- Returns:
- Throws:
- UserRoleException
 
 - 
setRolesvoid setRoles(ProxyPentahoUser proxyUser, ProxyPentahoRole[] assignedRoles) throws UserRoleException sets the roles for a user.- Parameters:
- proxyUser-
- assignedRoles-
- Throws:
- UserRoleException
 
 - 
setUsersvoid setUsers(ProxyPentahoRole proxyRole, ProxyPentahoUser[] assignedUsers) throws UserRoleException sets the users for a role.- Parameters:
- proxyRole-
- assignedUsers-
- Throws:
- UserRoleException
 
 - 
updateRoleObjectboolean 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
 
 - 
updateRolevoid 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
 
 
- 
 
-