public class ClientTemplatesResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static ServicesLogger |
logger |
protected RealmModel |
realm |
protected KeycloakSession |
session |
| Constructor and Description |
|---|
ClientTemplatesResource(RealmModel realm,
RealmAuth auth,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createClientTemplate(javax.ws.rs.core.UriInfo uriInfo,
ClientTemplateRepresentation rep)
Create a new client template
Client Template's name must be unique!
|
ClientTemplateResource |
getClient(String id)
Base path for managing a specific client template.
|
List<ClientTemplateRepresentation> |
getClientTemplates()
Get client templates belonging to the realm
Returns a list of client templates belonging to the realm
|
protected static final ServicesLogger logger
protected RealmModel realm
@Context protected KeycloakSession session
public ClientTemplatesResource(RealmModel realm, RealmAuth auth, AdminEventBuilder adminEvent)
@GET @Produces(value="application/json") public List<ClientTemplateRepresentation> getClientTemplates()
@POST
@Consumes(value="application/json")
public javax.ws.rs.core.Response createClientTemplate(@Context
javax.ws.rs.core.UriInfo uriInfo,
ClientTemplateRepresentation rep)
uriInfo - rep - @Path(value="{id}")
public ClientTemplateResource getClient(@PathParam(value="id")
String id)
id - id of client template (not name)Copyright © 2016 JBoss by Red Hat. All rights reserved.