Search in sources :

Example 1 with InboundSCIMProvisioningConfiguration

use of org.wso2.carbon.identity.api.server.application.management.v1.InboundSCIMProvisioningConfiguration 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);
        }
    }
}
Also used : InboundProvisioningConfig(org.wso2.carbon.identity.application.common.model.InboundProvisioningConfig) InboundSCIMProvisioningConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.InboundSCIMProvisioningConfiguration) IdentityProvider(org.wso2.carbon.identity.application.common.model.IdentityProvider) OutboundProvisioningConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.OutboundProvisioningConfiguration) OutboundProvisioningConfig(org.wso2.carbon.identity.application.common.model.OutboundProvisioningConfig)

Aggregations

InboundSCIMProvisioningConfiguration (org.wso2.carbon.identity.api.server.application.management.v1.InboundSCIMProvisioningConfiguration)1 OutboundProvisioningConfiguration (org.wso2.carbon.identity.api.server.application.management.v1.OutboundProvisioningConfiguration)1 IdentityProvider (org.wso2.carbon.identity.application.common.model.IdentityProvider)1 InboundProvisioningConfig (org.wso2.carbon.identity.application.common.model.InboundProvisioningConfig)1 OutboundProvisioningConfig (org.wso2.carbon.identity.application.common.model.OutboundProvisioningConfig)1