Class UserRoleDaoService
- java.lang.Object
-
- org.pentaho.platform.web.http.api.resources.services.UserRoleDaoService
-
public class UserRoleDaoService extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserRoleDaoService.ValidationFailedException
-
Field Summary
Fields Modifier and Type Field Description static String
PUC_USER_PASSWORD_LENGTH
static String
PUC_USER_PASSWORD_REQUIRE_SPECIAL_CHARACTER
-
Constructor Summary
Constructors Constructor Description UserRoleDaoService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assignRolesToUser(String userName, String roleNames)
void
changeUserPassword(String userName, String newPass, String oldPass)
void
createRole(String roleName)
void
createUser(User user)
void
deleteRoles(String roleNames)
void
deleteUsers(String userNames)
SystemRolesMap
getRoleBindingStruct(String locale)
UserListWrapper
getRoleMembers(String roleName)
RoleListWrapper
getRoles()
RoleListWrapper
getRolesForUser(String user)
UserListWrapper
getUsers()
void
removeRolesFromUser(String userName, String roleNames)
void
setLogicalRoles(LogicalRoleAssignments roleAssignments)
protected void
setSystemConfig(org.pentaho.platform.api.engine.ISystemConfig systemConfig)
void
updatePassword(User user)
void
updatePassword(User user, String administratorPassword)
-
-
-
Field Detail
-
PUC_USER_PASSWORD_LENGTH
public static final String PUC_USER_PASSWORD_LENGTH
- See Also:
- Constant Field Values
-
PUC_USER_PASSWORD_REQUIRE_SPECIAL_CHARACTER
public static final String PUC_USER_PASSWORD_REQUIRE_SPECIAL_CHARACTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUsers
public UserListWrapper getUsers() throws Exception
- Throws:
Exception
-
getRolesForUser
public RoleListWrapper getRolesForUser(String user) throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
- Throws:
org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
-
assignRolesToUser
public void assignRolesToUser(String userName, String roleNames) throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException, org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException, SecurityException
- Throws:
org.pentaho.platform.api.engine.security.userroledao.NotFoundException
org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
SecurityException
-
removeRolesFromUser
public void removeRolesFromUser(String userName, String roleNames) throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException, org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException, SecurityException
- Throws:
org.pentaho.platform.api.engine.security.userroledao.NotFoundException
org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
SecurityException
-
getRoles
public RoleListWrapper getRoles() throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
- Throws:
org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
-
getRoleMembers
public UserListWrapper getRoleMembers(String roleName) throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException, SecurityException
- Throws:
org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
SecurityException
-
changeUserPassword
public void changeUserPassword(String userName, String newPass, String oldPass) throws Exception
- Throws:
Exception
-
deleteUsers
public void deleteUsers(String userNames) throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException, org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException, SecurityException
- Throws:
org.pentaho.platform.api.engine.security.userroledao.NotFoundException
org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
SecurityException
-
deleteRoles
public void deleteRoles(String roleNames) throws SecurityException, org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
- Throws:
SecurityException
org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
-
getRoleBindingStruct
public SystemRolesMap getRoleBindingStruct(String locale) throws SecurityException
- Throws:
SecurityException
-
setLogicalRoles
public void setLogicalRoles(LogicalRoleAssignments roleAssignments) throws SecurityException
- Throws:
SecurityException
-
updatePassword
public void updatePassword(User user, String administratorPassword) throws UserRoleDaoService.ValidationFailedException
-
updatePassword
public void updatePassword(User user) throws UserRoleDaoService.ValidationFailedException
-
setSystemConfig
protected void setSystemConfig(org.pentaho.platform.api.engine.ISystemConfig systemConfig)
-
-