use of org.picketlink.config.federation.KeyValueType in project wildfly by wildfly.
the class AbstractEntityProviderAddHandler method configureHandler.
protected static void configureHandler(OperationContext context, ModelNode model, EntityProviderService service) throws OperationFailedException {
if (model.hasDefined(ModelElement.COMMON_HANDLER.getName())) {
for (Property handlerProperty : model.get(ModelElement.COMMON_HANDLER.getName()).asPropertyList()) {
ModelNode handler = handlerProperty.getValue();
Handler newHandler = toHandlerConfig(context, handler);
if (handler.hasDefined(COMMON_HANDLER_PARAMETER.getName())) {
for (Property handlerParameter : handler.get(COMMON_HANDLER_PARAMETER.getName()).asPropertyList()) {
String paramName = handlerParameter.getName();
ModelNode parameterNode = handlerParameter.getValue();
KeyValueType kv = toHandlerParameterConfig(context, paramName, parameterNode);
newHandler.add(kv);
}
}
service.addHandler(newHandler);
}
}
}
Aggregations