use of org.gluu.oxtrust.model.GluuOrganization in project oxTrust by GluuFederation.
the class ApisConfigurationAction method save.
public String save() {
GluuOrganization organization = organizationService.getOrganization();
organization.setLinktrackEnabled(enableLinktrack);
organization.setLinktrackLogin(linktrackLogin);
organization.setLinktrackPassword(linktrackPassword);
organizationService.updateOrganization(organization);
return OxTrustConstants.RESULT_SUCCESS;
}
use of org.gluu.oxtrust.model.GluuOrganization in project oxTrust by GluuFederation.
the class ApisConfigurationAction method init.
public String init() {
GluuOrganization organization = organizationService.getOrganization();
enableLinktrack = organization.getLinktrackEnabled();
linktrackLogin = organization.getLinktrackLogin();
linktrackPassword = organization.getLinktrackPassword();
return OxTrustConstants.RESULT_SUCCESS;
}
use of org.gluu.oxtrust.model.GluuOrganization in project oxTrust by GluuFederation.
the class RegistrationInterceptionService method runInitRegistrationScripts.
public boolean runInitRegistrationScripts(GluuCustomPerson person, Map<String, String[]> requestParameters) {
GluuOrganization org = organizationService.getOrganization();
RegistrationConfiguration config = org.getOxRegistrationConfiguration();
if (config != null && config.isRegistrationInterceptorsConfigured()) {
List<RegistrationInterceptorScript> scripts = config.getRegistrationInterceptorScripts();
List<RegistrationInterceptorScript> sortedEnabledInitRegistrationScripts = sort(getActive(getInitRegistrationScripts(scripts)));
if (sortedEnabledInitRegistrationScripts != null) {
boolean result = true;
for (RegistrationInterceptorScript script : sortedEnabledInitRegistrationScripts) {
RegistrationScript registrationScript = createRegistrationScriptFromStringWithPythonException(script);
result &= registrationScript.execute(script.getCustomAttributes(), person, requestParameters);
}
return result;
} else {
return true;
}
} else {
return true;
}
}
Aggregations