use of org.xdi.model.SimpleCustomProperty 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;
}
use of org.xdi.model.SimpleCustomProperty in project oxTrust by GluuFederation.
the class ExternalScimService method executeScimUpdateGroupMethod.
public boolean executeScimUpdateGroupMethod(GluuGroup group, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'SCIM Update Group' method");
ScimType externalType = (ScimType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
boolean result = externalType.updateGroup(group, configurationAttributes);
log.debug("executeScimUpdateGroupMethod result = " + result);
return result;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}
use of org.xdi.model.SimpleCustomProperty in project oxTrust by GluuFederation.
the class ExternalScimService method executeScimUpdateUserMethod.
public boolean executeScimUpdateUserMethod(GluuCustomPerson user, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'SCIM Update User' method");
ScimType externalType = (ScimType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
boolean result = externalType.updateUser(user, configurationAttributes);
log.debug("executeScimUpdateUserMethod result = " + result);
return result;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}
use of org.xdi.model.SimpleCustomProperty in project oxTrust by GluuFederation.
the class ExternalUpdateUserService method executeExternalNewUserMethod.
public boolean executeExternalNewUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user) {
try {
log.debug("Executing python 'newUser' method");
UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalType.newUser(user, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
use of org.xdi.model.SimpleCustomProperty in project oxTrust by GluuFederation.
the class ExternalUpdateUserService method executeExternalDeleteUserMethod.
public boolean executeExternalDeleteUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, boolean persisted) {
try {
log.debug("Executing python 'addUser' method");
UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalType.deleteUser(user, persisted, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
Aggregations