public class UserRoleWebService extends Object implements IUserRoleWebService
Constructor and Description |
---|
UserRoleWebService() |
Modifier and Type | Method and Description |
---|---|
boolean |
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.
|
protected org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao |
getDao() |
ProxyPentahoRole[] |
getRoles()
returns the list of roles defined in the system
|
ProxyPentahoRole[] |
getRolesForUser(ProxyPentahoUser proxyUser)
returns a set of roles for a user
|
ProxyPentahoUser |
getUser(String pUserName)
returns the user object based on the username.
|
UserRoleSecurityInfo |
getUserRoleSecurityInfo()
This method returns the entire set of users and roles in the system
|
ProxyPentahoUser[] |
getUsers()
returns the list of users.
|
ProxyPentahoUser[] |
getUsersForRole(ProxyPentahoRole proxyRole)
returns the list of users that have a specific role.
|
protected boolean |
isAdmin() |
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
|
protected boolean isAdmin()
protected org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao getDao() throws UserRoleException
UserRoleException
public UserRoleSecurityInfo getUserRoleSecurityInfo() throws UserRoleException
IUserRoleWebService
getUserRoleSecurityInfo
in interface IUserRoleWebService
UserRoleException
public boolean createUser(ProxyPentahoUser proxyUser) throws UserRoleException
IUserRoleWebService
createUser
in interface IUserRoleWebService
UserRoleException
public boolean deleteUsers(ProxyPentahoUser[] users) throws UserRoleException
IUserRoleWebService
deleteUsers
in interface IUserRoleWebService
UserRoleException
public ProxyPentahoUser getUser(String pUserName) throws UserRoleException
IUserRoleWebService
getUser
in interface IUserRoleWebService
UserRoleException
public ProxyPentahoUser[] getUsers() throws UserRoleException
IUserRoleWebService
getUsers
in interface IUserRoleWebService
UserRoleException
public ProxyPentahoUser[] getUsersForRole(ProxyPentahoRole proxyRole) throws UserRoleException
IUserRoleWebService
getUsersForRole
in interface IUserRoleWebService
UserRoleException
public boolean updateUser(ProxyPentahoUser proxyUser) throws UserRoleException
IUserRoleWebService
updateUser
in interface IUserRoleWebService
UserRoleException
public void setRoles(ProxyPentahoUser proxyUser, ProxyPentahoRole[] assignedRoles) throws UserRoleException
IUserRoleWebService
setRoles
in interface IUserRoleWebService
UserRoleException
public void setUsers(ProxyPentahoRole proxyRole, ProxyPentahoUser[] assignedUsers) throws UserRoleException
IUserRoleWebService
setUsers
in interface IUserRoleWebService
UserRoleException
public void updateRole(String roleName, String description, List<String> usernames) throws UserRoleException
IUserRoleWebService
updateRole
in interface IUserRoleWebService
UserRoleException
public boolean createRole(ProxyPentahoRole proxyRole) throws UserRoleException
IUserRoleWebService
createRole
in interface IUserRoleWebService
UserRoleException
public boolean deleteRoles(ProxyPentahoRole[] roles) throws UserRoleException
IUserRoleWebService
deleteRoles
in interface IUserRoleWebService
UserRoleException
public ProxyPentahoRole[] getRolesForUser(ProxyPentahoUser proxyUser) throws UserRoleException
IUserRoleWebService
getRolesForUser
in interface IUserRoleWebService
UserRoleException
public ProxyPentahoRole[] getRoles() throws UserRoleException
IUserRoleWebService
getRoles
in interface IUserRoleWebService
UserRoleException
public boolean updateRoleObject(ProxyPentahoRole proxyPentahoRole) throws UserRoleException
IUserRoleWebService
updateRoleObject
in interface IUserRoleWebService
UserRoleException
Copyright © 2019 Hitachi Vantara. All rights reserved.