use of org.apache.wicket.RestartResponseException in project midpoint by Evolveum.
the class PageAuthenticationBase method initResetCredentialsConfiguration.
private void initResetCredentialsConfiguration() {
// TODO: cleanup, the same as in the PageRegistrationBase
SecurityPolicyType securityPolicy = resolveSecurityPolicy();
this.resetPasswordPolicy = new ResetPolicyDto();
try {
this.resetPasswordPolicy.initResetPolicyDto(securityPolicy);
} catch (SchemaException e) {
LOGGER.error("Failed to initialize self registration configuration.", e);
getSession().error(createStringResource("PageSelfRegistration.selfRegistration.configuration.init.failed").getString());
throw new RestartResponseException(PageLogin.class);
}
}
use of org.apache.wicket.RestartResponseException in project midpoint by Evolveum.
the class PageAuthenticationBase method initPostAuthenticationConfiguration.
private void initPostAuthenticationConfiguration() {
SecurityPolicyType securityPolicy = resolveSecurityPolicy();
this.postAuthenticationDto = new SelfRegistrationDto();
try {
this.postAuthenticationDto.initPostAuthenticationDto(securityPolicy);
} catch (SchemaException e) {
LOGGER.error("Failed to initialize self registration configuration.", e);
getSession().error(createStringResource("PageSelfRegistration.selfRegistration.configuration.init.failed").getString());
throw new RestartResponseException(PageLogin.class);
}
}
use of org.apache.wicket.RestartResponseException in project midpoint by Evolveum.
the class PageAuthenticationBase method resolveSecurityPolicy.
private SecurityPolicyType resolveSecurityPolicy() {
SecurityPolicyType securityPolicy = resolveSecurityPolicy(null);
if (securityPolicy == null) {
LOGGER.error("No security policy defined.");
getSession().error(createStringResource("PageSelfRegistration.securityPolicy.notFound").getString());
throw new RestartResponseException(PageLogin.class);
}
return securityPolicy;
}
use of org.apache.wicket.RestartResponseException in project midpoint by Evolveum.
the class PageRegistrationBase method resolveSecurityPolicy.
private SecurityPolicyType resolveSecurityPolicy() {
SecurityPolicyType securityPolicy = resolveSecurityPolicy(null);
if (securityPolicy == null) {
LOGGER.error("No security policy defined.");
getSession().error(createStringResource("PageSelfRegistration.securityPolicy.notFound").getString());
throw new RestartResponseException(PageLogin.class);
}
return securityPolicy;
}
use of org.apache.wicket.RestartResponseException in project midpoint by Evolveum.
the class PageRegistrationBase method initSelfRegistrationConfiguration.
private void initSelfRegistrationConfiguration() {
SecurityPolicyType securityPolicy = resolveSecurityPolicy();
this.selfRegistrationDto = new SelfRegistrationDto();
try {
this.selfRegistrationDto.initSelfRegistrationDto(securityPolicy);
} catch (SchemaException e) {
LOGGER.error("Failed to initialize self registration configuration.", e);
getSession().error(createStringResource("PageSelfRegistration.selfRegistration.configuration.init.failed").getString());
throw new RestartResponseException(PageLogin.class);
}
}
Aggregations