public class ProtocolMappersResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AdminEventBuilder |
adminEvent |
protected RealmAuth |
auth |
protected ProtocolMapperContainerModel |
client |
protected static org.jboss.logging.Logger |
logger |
protected KeycloakSession |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
| Constructor and Description |
|---|
ProtocolMappersResource(ProtocolMapperContainerModel client,
RealmAuth auth,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
void |
createMapper(List<ProtocolMapperRepresentation> reps)
Create multiple mappers
|
javax.ws.rs.core.Response |
createMapper(ProtocolMapperRepresentation rep)
Create a mapper
|
void |
delete(String id)
Delete the mapper
|
ProtocolMapperRepresentation |
getMapperById(String id)
Get mapper by id
|
List<ProtocolMapperRepresentation> |
getMappers()
Get mappers
|
List<ProtocolMapperRepresentation> |
getMappersPerProtocol(String protocol)
Get mappers by name for a specific protocol
|
void |
update(String id,
ProtocolMapperRepresentation rep)
Update the mapper
|
protected static final org.jboss.logging.Logger logger
protected ProtocolMapperContainerModel client
protected RealmAuth auth
protected AdminEventBuilder adminEvent
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected KeycloakSession session
public ProtocolMappersResource(ProtocolMapperContainerModel client, RealmAuth auth, AdminEventBuilder adminEvent)
public List<ProtocolMapperRepresentation> getMappersPerProtocol(String protocol)
protocol - public javax.ws.rs.core.Response createMapper(ProtocolMapperRepresentation rep)
rep - public void createMapper(List<ProtocolMapperRepresentation> reps)
public List<ProtocolMapperRepresentation> getMappers()
public ProtocolMapperRepresentation getMapperById(String id)
id - Mapper idpublic void update(String id, ProtocolMapperRepresentation rep)
id - Mapper idrep - public void delete(String id)
id - Mapper idCopyright © 2016 JBoss by Red Hat. All rights reserved.