Interface RolesResource


public interface RolesResource
Author:
rodrigo.sasaki@icarros.com.br
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(org.keycloak.representations.idm.RoleRepresentation roleRepresentation)
     
    void
    deleteRole(String roleName)
     
    get(String roleName)
     
    List<org.keycloak.representations.idm.RoleRepresentation>
     
    List<org.keycloak.representations.idm.RoleRepresentation>
    list(boolean briefRepresentation)
     
    List<org.keycloak.representations.idm.RoleRepresentation>
    list(Integer firstResult, Integer maxResults)
    Get roles by pagination params.
    List<org.keycloak.representations.idm.RoleRepresentation>
    list(Integer firstResult, Integer maxResults, boolean briefRepresentation)
    Get roles by pagination params.
    List<org.keycloak.representations.idm.RoleRepresentation>
    list(String search, boolean briefRepresentation)
    Get roles by pagination params.
    List<org.keycloak.representations.idm.RoleRepresentation>
    list(String search, Integer firstResult, Integer maxResults)
    Get roles by pagination params.
    List<org.keycloak.representations.idm.RoleRepresentation>
    list(String search, Integer firstResult, Integer maxResults, boolean briefRepresentation)
    Get roles by pagination params.
  • Method Details

    • list

      @GET @Produces("application/json") List<org.keycloak.representations.idm.RoleRepresentation> list()
    • list

      @GET @Produces("application/json") List<org.keycloak.representations.idm.RoleRepresentation> list(@QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation)
      Parameters:
      briefRepresentation - if false, return roles with their attributes
      Returns:
      A list containing all roles.
    • list

      @GET @Produces("application/json") List<org.keycloak.representations.idm.RoleRepresentation> list(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults)
      Get roles by pagination params.
      Parameters:
      search - max number of occurrences
      first - index of the first element
      max - max number of occurrences
      Returns:
      A list containing the slice of all roles.
    • list

      @GET @Produces("application/json") List<org.keycloak.representations.idm.RoleRepresentation> list(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation)
      Get roles by pagination params.
      Parameters:
      first - index of the first element
      max - max number of occurrences
      briefRepresentation - if false, return roles with their attributes
      Returns:
      A list containing the slice of all roles.
    • list

      @GET @Produces("application/json") List<org.keycloak.representations.idm.RoleRepresentation> list(@QueryParam("search") @DefaultValue("") String search, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation)
      Get roles by pagination params.
      Parameters:
      search - max number of occurrences
      briefRepresentation - if false, return roles with their attributes
      Returns:
      A list containing the slice of all roles.
    • list

      @GET @Produces("application/json") List<org.keycloak.representations.idm.RoleRepresentation> list(@QueryParam("search") @DefaultValue("") String search, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults)
      Get roles by pagination params.
      Parameters:
      search - max number of occurrences
      first - index of the first element
      max - max number of occurrences
      Returns:
      A list containing the slice of all roles.
    • list

      @GET @Produces("application/json") List<org.keycloak.representations.idm.RoleRepresentation> list(@QueryParam("search") @DefaultValue("") String search, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation)
      Get roles by pagination params.
      Parameters:
      search - max number of occurrences
      first - index of the first element
      max - max number of occurrences
      briefRepresentation - if false, return roles with their attributes
      Returns:
      A list containing the slice of all roles.
    • create

      @POST @Consumes("application/json") void create(org.keycloak.representations.idm.RoleRepresentation roleRepresentation)
    • get

      @Path("{roleName}") RoleResource get(@PathParam("roleName") String roleName)
    • deleteRole

      @Path("{role-name}") @DELETE void deleteRole(@PathParam("role-name") String roleName)