Search in sources :

Example 1 with CacheRefreshType

use of org.xdi.model.custom.script.type.user.CacheRefreshType in project oxTrust by GluuFederation.

the class ExternalCacheRefreshService method executeExternalUpdateUserMethod.

public boolean executeExternalUpdateUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user) {
    try {
        log.debug("Executing python 'updateUser' method");
        CacheRefreshType externalType = (CacheRefreshType) customScriptConfiguration.getExternalType();
        Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
        return externalType.updateUser(user, configurationAttributes);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
    }
    return false;
}
Also used : SimpleCustomProperty(org.xdi.model.SimpleCustomProperty) CacheRefreshType(org.xdi.model.custom.script.type.user.CacheRefreshType)

Aggregations

SimpleCustomProperty (org.xdi.model.SimpleCustomProperty)1 CacheRefreshType (org.xdi.model.custom.script.type.user.CacheRefreshType)1