Search in sources :

Example 1 with DynamicScopeType

use of org.xdi.model.custom.script.type.scope.DynamicScopeType in project oxAuth by GluuFederation.

the class ExternalDynamicScopeService method executeExternalUpdateMethod.

public boolean executeExternalUpdateMethod(CustomScriptConfiguration customScriptConfiguration, DynamicScopeExternalContext dynamicScopeContext) {
    try {
        log.debug("Executing python 'update' method");
        DynamicScopeType dynamicScopeType = (DynamicScopeType) customScriptConfiguration.getExternalType();
        Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
        return dynamicScopeType.update(dynamicScopeContext, configurationAttributes);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
    }
    return false;
}
Also used : DynamicScopeType(org.xdi.model.custom.script.type.scope.DynamicScopeType) SimpleCustomProperty(org.xdi.model.SimpleCustomProperty)

Aggregations

SimpleCustomProperty (org.xdi.model.SimpleCustomProperty)1 DynamicScopeType (org.xdi.model.custom.script.type.scope.DynamicScopeType)1