org.pentaho.platform.engine.security.userroledao.ws
Class UserRoleWebService

java.lang.Object
  extended by org.pentaho.platform.engine.security.userroledao.ws.UserRoleWebService
All Implemented Interfaces:
IUserRoleWebService
Direct Known Subclasses:
AuthorizationPolicyBasedUserRoleWebService

public class UserRoleWebService
extends Object
implements IUserRoleWebService

This class implements a concrete form of IUserRoleDao, wrapping the underlying IUserRoleDao implementation.

Author:
Will Gorman (wgorman@pentaho.com)

Constructor Summary
UserRoleWebService()
           
 
Method Summary
 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.
 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.
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRoleWebService

public UserRoleWebService()
Method Detail

getUserRoleSecurityInfo

public UserRoleSecurityInfo getUserRoleSecurityInfo()
                                             throws UserRoleException
Description copied from interface: IUserRoleWebService
This method returns the entire set of users and roles in the system

Specified by:
getUserRoleSecurityInfo in interface IUserRoleWebService
Returns:
an info object
Throws:
UserRoleException

createUser

public boolean createUser(ProxyPentahoUser proxyUser)
                   throws UserRoleException
Description copied from interface: IUserRoleWebService
creates a new user.

Specified by:
createUser in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

deleteUsers

public boolean deleteUsers(ProxyPentahoUser[] users)
                    throws UserRoleException
Description copied from interface: IUserRoleWebService
deletes a set of users.

Specified by:
deleteUsers in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

getUser

public ProxyPentahoUser getUser(String pUserName)
                         throws UserRoleException
Description copied from interface: IUserRoleWebService
returns the user object based on the username.

Specified by:
getUser in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

getUsers

public ProxyPentahoUser[] getUsers()
                            throws UserRoleException
Description copied from interface: IUserRoleWebService
returns the list of users.

Specified by:
getUsers in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

getUsersForRole

public ProxyPentahoUser[] getUsersForRole(ProxyPentahoRole proxyRole)
                                   throws UserRoleException
Description copied from interface: IUserRoleWebService
returns the list of users that have a specific role.

Specified by:
getUsersForRole in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

updateUser

public boolean updateUser(ProxyPentahoUser proxyUser)
                   throws UserRoleException
Description copied from interface: IUserRoleWebService
This updates the named user's attributes

Specified by:
updateUser in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

setRoles

public void setRoles(ProxyPentahoUser proxyUser,
                     ProxyPentahoRole[] assignedRoles)
              throws UserRoleException
Description copied from interface: IUserRoleWebService
sets the roles for a user.

Specified by:
setRoles in interface IUserRoleWebService
Throws:
UserRoleException

setUsers

public void setUsers(ProxyPentahoRole proxyRole,
                     ProxyPentahoUser[] assignedUsers)
              throws UserRoleException
Description copied from interface: IUserRoleWebService
sets the users for a role.

Specified by:
setUsers in interface IUserRoleWebService
Throws:
UserRoleException

updateRole

public void updateRole(String roleName,
                       String description,
                       List<String> usernames)
                throws UserRoleException
Description copied from interface: IUserRoleWebService
Updates a role object with a new description and set of usernames.

Specified by:
updateRole in interface IUserRoleWebService
Throws:
UserRoleException

createRole

public boolean createRole(ProxyPentahoRole proxyRole)
                   throws UserRoleException
Description copied from interface: IUserRoleWebService
creates a new role.

Specified by:
createRole in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

deleteRoles

public boolean deleteRoles(ProxyPentahoRole[] roles)
                    throws UserRoleException
Description copied from interface: IUserRoleWebService
deletes a set of roles.

Specified by:
deleteRoles in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

getRolesForUser

public ProxyPentahoRole[] getRolesForUser(ProxyPentahoUser proxyUser)
                                   throws UserRoleException
Description copied from interface: IUserRoleWebService
returns a set of roles for a user

Specified by:
getRolesForUser in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

getRoles

public ProxyPentahoRole[] getRoles()
                            throws UserRoleException
Description copied from interface: IUserRoleWebService
returns the list of roles defined in the system

Specified by:
getRoles in interface IUserRoleWebService
Returns:
Throws:
UserRoleException

updateRoleObject

public boolean updateRoleObject(ProxyPentahoRole proxyPentahoRole)
                         throws UserRoleException
Description copied from interface: IUserRoleWebService
This updates the named role's attributes. It is named differently than the IUserRoleDao because of issues with webservice method overloading.

Specified by:
updateRoleObject in interface IUserRoleWebService
Returns:
Throws:
UserRoleException