Class UserRoleListService
- java.lang.Object
-
- org.pentaho.platform.web.http.api.resources.services.UserRoleListService
-
public class UserRoleListService extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
UserRoleListService.UnauthorizedException
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.platform.api.engine.IUserRoleListService
userRoleListService
-
Constructor Summary
Constructors Constructor Description UserRoleListService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canAdminister()
List<String>
doGetRolesForUser(String user)
List<String>
doGetUsersInRole(String role)
RoleListWrapper
getAllRoles()
ArrayList<String>
getExtraRoles()
RoleListWrapper
getExtraRolesList()
RoleListWrapper
getPermissionRoles(String adminRole)
RoleListWrapper
getRoles()
RoleListWrapper
getRoles(boolean includeExtraRoles)
protected List<String>
getRolesForUser(String user)
RoleListWrapper
getSystemRoles()
org.pentaho.platform.api.engine.IUserRoleListService
getUserRoleListService()
UserListWrapper
getUsers()
protected List<String>
getUsersInRole(String role)
void
setExtraRoles(ArrayList<String> extraRoles)
void
setRoleComparator(Comparator<String> roleComparator)
void
setSystemRoles(ArrayList<String> systemRoles)
void
setUserComparator(Comparator<String> userComparator)
-
-
-
Method Detail
-
doGetRolesForUser
public List<String> doGetRolesForUser(String user) throws UserRoleListService.UnauthorizedException
-
doGetUsersInRole
public List<String> doGetUsersInRole(String role) throws UserRoleListService.UnauthorizedException
-
getUsers
public UserListWrapper getUsers()
-
getRoles
public RoleListWrapper getRoles()
-
getRoles
public RoleListWrapper getRoles(boolean includeExtraRoles)
-
getAllRoles
public RoleListWrapper getAllRoles()
-
getSystemRoles
public RoleListWrapper getSystemRoles()
-
getPermissionRoles
public RoleListWrapper getPermissionRoles(String adminRole)
-
getExtraRolesList
public RoleListWrapper getExtraRolesList()
-
canAdminister
protected boolean canAdminister()
-
getUserRoleListService
public org.pentaho.platform.api.engine.IUserRoleListService getUserRoleListService()
-
setRoleComparator
public void setRoleComparator(Comparator<String> roleComparator)
-
setUserComparator
public void setUserComparator(Comparator<String> userComparator)
-
-