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;
}
Aggregations