use of org.wso2.carbon.identity.application.common.model.xsd.OutboundProvisioningConfig in project identity-api-server by wso2.
the class UpdateProvisioningConfiguration method apply.
@Override
public void apply(ServiceProvider application, ProvisioningConfiguration provisioningConfigApiModel) {
if (provisioningConfigApiModel != null) {
InboundSCIMProvisioningConfiguration inboundProvisioningModel = provisioningConfigApiModel.getInboundProvisioning();
if (inboundProvisioningModel != null) {
InboundProvisioningConfig inboundProvisioningConfig = getInboundProvisioningConfig(application);
setIfNotNull(inboundProvisioningModel.getProxyMode(), inboundProvisioningConfig::setDumbMode);
setIfNotNull(inboundProvisioningModel.getProvisioningUserstoreDomain(), inboundProvisioningConfig::setProvisioningUserStore);
application.setInboundProvisioningConfig(inboundProvisioningConfig);
}
List<OutboundProvisioningConfiguration> outboundProvisioningIdps = provisioningConfigApiModel.getOutboundProvisioningIdps();
if (outboundProvisioningIdps != null) {
OutboundProvisioningConfig outboundProvisioningConfig = getOutboundProvisionConfig(application);
IdentityProvider[] identityProviders = getProvisioningIdps(outboundProvisioningIdps);
outboundProvisioningConfig.setProvisioningIdentityProviders(identityProviders);
application.setOutboundProvisioningConfig(outboundProvisioningConfig);
}
}
}
Aggregations