use of org.wildfly.extension.picketlink.federation.service.EntityProviderService in project wildfly by wildfly.
the class HandlerAddHandler method performRuntime.
@Override
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
PathAddress pathAddress = PathAddress.pathAddress(operation.get(ADDRESS));
String providerAlias = pathAddress.subAddress(0, pathAddress.size() - 1).getLastElement().getValue();
EntityProviderService providerService = EntityProviderService.getService(context, providerAlias);
Handler handler = toHandlerConfig(context, model);
providerService.addHandler(handler);
}
use of org.wildfly.extension.picketlink.federation.service.EntityProviderService in project wildfly by wildfly.
the class HandlerParameterAddHandler method performRuntime.
@Override
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
PathAddress pathAddress = PathAddress.pathAddress(operation.get(ADDRESS));
String providerAlias = pathAddress.subAddress(0, pathAddress.size() - 2).getLastElement().getValue();
String handlerType = pathAddress.subAddress(0, pathAddress.size() - 1).getLastElement().getValue();
EntityProviderService providerService = EntityProviderService.getService(context, providerAlias);
String handlerParameterName = pathAddress.getLastElement().getValue();
KeyValueType keyValueType = toHandlerParameterConfig(context, handlerParameterName, model);
providerService.addHandlerParameter(handlerType, keyValueType);
}
use of org.wildfly.extension.picketlink.federation.service.EntityProviderService in project wildfly by wildfly.
the class HandlerRemoveHandler method performRuntime.
@Override
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
PathAddress pathAddress = PathAddress.pathAddress(operation.get(ADDRESS));
String providerAlias = pathAddress.subAddress(0, pathAddress.size() - 1).getLastElement().getValue();
EntityProviderService providerService = EntityProviderService.getService(context, providerAlias);
String handlerType = HandlerResourceDefinition.getHandlerType(context, model);
providerService.removeHandler(handlerType);
}
use of org.wildfly.extension.picketlink.federation.service.EntityProviderService in project wildfly by wildfly.
the class HandlerParameterRemoveHandler method performRuntime.
@Override
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
PathAddress pathAddress = PathAddress.pathAddress(operation.get(ADDRESS));
String providerAlias = pathAddress.subAddress(0, pathAddress.size() - 2).getLastElement().getValue();
String handlerType = pathAddress.subAddress(0, pathAddress.size() - 1).getLastElement().getValue();
EntityProviderService providerService = EntityProviderService.getService(context, providerAlias);
String handlerParameterName = pathAddress.getLastElement().getValue();
providerService.removeHandlerParameter(handlerType, handlerParameterName);
}
Aggregations