Package org.gcube.service.idm.controller
Class KCClientsController
- java.lang.Object
-
- org.gcube.service.idm.controller.KCClientsController
-
public class KCClientsController extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKCClientsController.REPR
-
Constructor Summary
Constructors Constructor Description KCClientsController()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Object>formatList(List<org.keycloak.representations.idm.ClientRepresentation> clients, KCClientsController.REPR format)static ObjectformatRepr(org.keycloak.representations.idm.ClientRepresentation client, KCClientsController.REPR format)static List<org.keycloak.representations.idm.UserRepresentation>getContextUsersByRole(String clientId, String role_name, Integer firstResult, Integer maxResults)static List<org.keycloak.representations.idm.UserRepresentation>getContextUsersByRoleCurrent(String role_name)static List<org.keycloak.representations.idm.UserRepresentation>getContextUsersByRoleCurrent(String role_name, Integer firstResult, Integer maxResults)static List<org.keycloak.representations.idm.UserRepresentation>getMemberGroupUsers(String clientId, Integer firstResult, Integer maxResults)returns the list of users of the client users list is a subset of members list, it's obtained from the group named as the contextstatic List<org.keycloak.representations.idm.UserRepresentation>getMemberGroupUsersCurrent()returns the list of users of the client users list is a subset of members list, it's obtained from the group named as the contextstatic org.keycloak.representations.idm.RoleRepresentationgetRoleByName(String clientId, String name)static org.keycloak.representations.idm.RoleRepresentationgetRoleByNameCurrent(String name)static List<org.keycloak.representations.idm.RoleRepresentation>getRolesCurrent()
-
-
-
Method Detail
-
formatRepr
public static Object formatRepr(org.keycloak.representations.idm.ClientRepresentation client, KCClientsController.REPR format)
-
formatList
public static List<Object> formatList(List<org.keycloak.representations.idm.ClientRepresentation> clients, KCClientsController.REPR format)
-
getRolesCurrent
public static List<org.keycloak.representations.idm.RoleRepresentation> getRolesCurrent()
-
getRoleByNameCurrent
public static org.keycloak.representations.idm.RoleRepresentation getRoleByNameCurrent(String name)
-
getRoleByName
public static org.keycloak.representations.idm.RoleRepresentation getRoleByName(String clientId, String name)
-
getContextUsersByRoleCurrent
public static List<org.keycloak.representations.idm.UserRepresentation> getContextUsersByRoleCurrent(String role_name)
-
getContextUsersByRoleCurrent
public static List<org.keycloak.representations.idm.UserRepresentation> getContextUsersByRoleCurrent(String role_name, Integer firstResult, Integer maxResults)
-
getContextUsersByRole
public static List<org.keycloak.representations.idm.UserRepresentation> getContextUsersByRole(String clientId, String role_name, Integer firstResult, Integer maxResults)
-
getMemberGroupUsersCurrent
public static List<org.keycloak.representations.idm.UserRepresentation> getMemberGroupUsersCurrent()
returns the list of users of the client users list is a subset of members list, it's obtained from the group named as the context- Parameters:
clientId- null for current context- Throws:
ServerExceptionjakarta.ws.rs.NotFoundException
-
getMemberGroupUsers
public static List<org.keycloak.representations.idm.UserRepresentation> getMemberGroupUsers(String clientId, Integer firstResult, Integer maxResults)
returns the list of users of the client users list is a subset of members list, it's obtained from the group named as the context- Parameters:
clientId- null for current contextfirstResult-maxResults-- Throws:
ServerExceptionjakarta.ws.rs.NotFoundException
-
-