use of org.xdi.model.SimpleCustomProperty in project oxTrust by GluuFederation.
the class ExternalScimService method executeScimCreateGroupMethod.
public boolean executeScimCreateGroupMethod(GluuGroup group, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'SCIM Create Group' method");
ScimType externalType = (ScimType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
boolean result = externalType.createGroup(group, configurationAttributes);
log.debug("executeScimCreateGroupMethod 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 executeExternalUpdateUserMethod.
public boolean executeExternalUpdateUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, boolean persisted) {
try {
log.debug("Executing python 'updateUser' method");
UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalType.updateUser(user, persisted, 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 executeExternalAddUserMethod.
public boolean executeExternalAddUserMethod(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.addUser(user, persisted, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
use of org.xdi.model.SimpleCustomProperty in project oxTrust by GluuFederation.
the class ExternalUserRegistrationService method executeExternalPostRegistrationMethod.
public boolean executeExternalPostRegistrationMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, Map<String, String[]> requestParameters) {
try {
log.debug("Executing python 'postRegistration' method");
UserRegistrationType externalType = (UserRegistrationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalType.postRegistration(user, requestParameters, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
use of org.xdi.model.SimpleCustomProperty in project oxTrust by GluuFederation.
the class ExternalUserRegistrationService method executeExternalConfirmRegistrationMethod.
public boolean executeExternalConfirmRegistrationMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, Map<String, String[]> requestParameters) {
try {
log.debug("Executing python 'confirmRegistration' method");
UserRegistrationType externalType = (UserRegistrationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalType.confirmRegistration(user, requestParameters, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
Aggregations