Package org.gcube.service.idm.controller
Class KCRolesController
- java.lang.Object
-
- org.gcube.service.idm.controller.KCRolesController
-
public class KCRolesController extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKCRolesController.ROLES_REPR
-
Constructor Summary
Constructors Constructor Description KCRolesController()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Object>formatList(List<org.keycloak.representations.idm.RoleRepresentation> roles, KCRolesController.ROLES_REPR format)static ObjectformatRepr(org.keycloak.representations.idm.RoleRepresentation role, KCRolesController.ROLES_REPR format)static List<Object>getFormattedRoles(KCRolesController.ROLES_REPR format)static org.keycloak.representations.idm.RoleRepresentationgetRoleByNameCurrent(String name)static List<org.keycloak.representations.idm.RoleRepresentation>getRolesForContext()static List<org.keycloak.representations.idm.RoleRepresentation>getRolesForContext(Boolean compact)static List<org.keycloak.representations.idm.UserRepresentation>getUsersByRoleForContext(String role_name)static List<org.keycloak.representations.idm.UserRepresentation>getUsersByRoleForContext(String role_name, Integer firstResult, Integer maxResults)
-
-
-
Method Detail
-
formatRepr
public static Object formatRepr(org.keycloak.representations.idm.RoleRepresentation role, KCRolesController.ROLES_REPR format)
-
formatList
public static List<Object> formatList(List<org.keycloak.representations.idm.RoleRepresentation> roles, KCRolesController.ROLES_REPR format)
-
getFormattedRoles
public static List<Object> getFormattedRoles(KCRolesController.ROLES_REPR format)
-
getRolesForContext
public static List<org.keycloak.representations.idm.RoleRepresentation> getRolesForContext()
-
getRolesForContext
public static List<org.keycloak.representations.idm.RoleRepresentation> getRolesForContext(Boolean compact)
-
getRoleByNameCurrent
public static org.keycloak.representations.idm.RoleRepresentation getRoleByNameCurrent(String name)
-
getUsersByRoleForContext
public static List<org.keycloak.representations.idm.UserRepresentation> getUsersByRoleForContext(String role_name)
-
-