public interface RolesResource
Modifier and Type | Method and Description |
---|---|
void |
create(RoleRepresentation roleRepresentation) |
void |
deleteRole(String roleName) |
RoleResource |
get(String roleName) |
List<RoleRepresentation> |
list() |
List<RoleRepresentation> |
list(boolean briefRepresentation) |
List<RoleRepresentation> |
list(Integer firstResult,
Integer maxResults)
Get roles by pagination params.
|
List<RoleRepresentation> |
list(Integer firstResult,
Integer maxResults,
boolean briefRepresentation)
Get roles by pagination params.
|
List<RoleRepresentation> |
list(String search,
boolean briefRepresentation)
Get roles by pagination params.
|
List<RoleRepresentation> |
list(String search,
Integer firstResult,
Integer maxResults)
Get roles by pagination params.
|
List<RoleRepresentation> |
list(String search,
Integer firstResult,
Integer maxResults,
boolean briefRepresentation)
Get roles by pagination params.
|
@GET @Produces(value="application/json") List<RoleRepresentation> list()
@GET @Produces(value="application/json") List<RoleRepresentation> list(@QueryParam(value="briefRepresentation") @DefaultValue(value="true") boolean briefRepresentation)
briefRepresentation
- if false, return roles with their attributes@GET @Produces(value="application/json") List<RoleRepresentation> list(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
search
- max number of occurrencesfirst
- index of the first elementmax
- max number of occurrences@GET @Produces(value="application/json") List<RoleRepresentation> list(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults, @QueryParam(value="briefRepresentation") @DefaultValue(value="true") boolean briefRepresentation)
first
- index of the first elementmax
- max number of occurrencesbriefRepresentation
- if false, return roles with their attributes@GET @Produces(value="application/json") List<RoleRepresentation> list(@QueryParam(value="search") @DefaultValue(value="") String search, @QueryParam(value="briefRepresentation") @DefaultValue(value="true") boolean briefRepresentation)
search
- max number of occurrencesbriefRepresentation
- if false, return roles with their attributes@GET @Produces(value="application/json") List<RoleRepresentation> list(@QueryParam(value="search") @DefaultValue(value="") String search, @QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
search
- max number of occurrencesfirst
- index of the first elementmax
- max number of occurrences@GET @Produces(value="application/json") List<RoleRepresentation> list(@QueryParam(value="search") @DefaultValue(value="") String search, @QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults, @QueryParam(value="briefRepresentation") @DefaultValue(value="true") boolean briefRepresentation)
search
- max number of occurrencesfirst
- index of the first elementmax
- max number of occurrencesbriefRepresentation
- if false, return roles with their attributes@POST @Consumes(value="application/json") void create(RoleRepresentation roleRepresentation)
@Path(value="{roleName}") RoleResource get(@PathParam(value="roleName") String roleName)
@Path(value="{role-name}") @DELETE void deleteRole(@PathParam(value="role-name") String roleName)
Copyright © 2021 JBoss by Red Hat. All rights reserved.