Search in sources :

Example 1 with ProtocolMapperTypeRepresentation

use of org.keycloak.representations.idm.ProtocolMapperTypeRepresentation in project keycloak by keycloak.

the class ServerInfoAdminResource method toProtocolMapperTypeRepresentation.

private List<ProtocolMapperTypeRepresentation> toProtocolMapperTypeRepresentation(ProtocolMapper mapper) {
    ProtocolMapperTypeRepresentation rep = new ProtocolMapperTypeRepresentation();
    rep.setId(mapper.getId());
    rep.setName(mapper.getDisplayType());
    rep.setHelpText(mapper.getHelpText());
    rep.setCategory(mapper.getDisplayCategory());
    rep.setPriority(mapper.getPriority());
    List<ProviderConfigProperty> configProperties = mapper.getConfigProperties();
    rep.setProperties(ModelToRepresentation.toRepresentation(configProperties));
    return Arrays.asList(rep);
}
Also used : ProtocolMapperTypeRepresentation(org.keycloak.representations.idm.ProtocolMapperTypeRepresentation) ProviderConfigProperty(org.keycloak.provider.ProviderConfigProperty)

Aggregations

ProviderConfigProperty (org.keycloak.provider.ProviderConfigProperty)1 ProtocolMapperTypeRepresentation (org.keycloak.representations.idm.ProtocolMapperTypeRepresentation)1