Search in sources :

Example 1 with UserRegistrationType

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;
}
Also used : UserRegistrationType(org.xdi.model.custom.script.type.user.UserRegistrationType) SimpleCustomProperty(org.xdi.model.SimpleCustomProperty)

Example 2 with UserRegistrationType

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;
}
Also used : UserRegistrationType(org.xdi.model.custom.script.type.user.UserRegistrationType) SimpleCustomProperty(org.xdi.model.SimpleCustomProperty)

Example 3 with UserRegistrationType

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;
}
Also used : UserRegistrationType(org.xdi.model.custom.script.type.user.UserRegistrationType) SimpleCustomProperty(org.xdi.model.SimpleCustomProperty)

Example 4 with UserRegistrationType

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;
}
Also used : UserRegistrationType(org.xdi.model.custom.script.type.user.UserRegistrationType) SimpleCustomProperty(org.xdi.model.SimpleCustomProperty)

Aggregations

SimpleCustomProperty (org.xdi.model.SimpleCustomProperty)4 UserRegistrationType (org.xdi.model.custom.script.type.user.UserRegistrationType)4