use of org.xdi.model.custom.script.type.user.UserRegistrationType 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.custom.script.type.user.UserRegistrationType 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;
}
use of org.xdi.model.custom.script.type.user.UserRegistrationType in project oxTrust by GluuFederation.
the class ExternalUserRegistrationService method executeExternalInitRegistrationMethod.
public boolean executeExternalInitRegistrationMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, Map<String, String[]> requestParameters) {
try {
log.debug("Executing python 'initRegistration' method");
UserRegistrationType externalType = (UserRegistrationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalType.initRegistration(user, requestParameters, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
use of org.xdi.model.custom.script.type.user.UserRegistrationType in project oxTrust by GluuFederation.
the class ExternalUserRegistrationService method executeExternalPreRegistrationMethod.
public boolean executeExternalPreRegistrationMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, Map<String, String[]> requestParameters) {
try {
log.debug("Executing python 'preRegistration' method");
UserRegistrationType externalType = (UserRegistrationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalType.preRegistration(user, requestParameters, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
Aggregations