use of com.sun.identity.password.ui.model.PWResetSuccessModel in project OpenAM by OpenRock.
the class PWResetSuccessViewBean method beginDisplay.
/**
* Set the required information to display the page.
*
* @param event display event.
* @throws ModelControlException if problem access value of component.
*/
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
PWResetSuccessModel model = (PWResetSuccessModel) getModel();
setDisplayFieldValue(CC_TITLE, model.getTitleString());
setDisplayFieldValue(RESET_MESSAGE, resetMsg);
}
use of com.sun.identity.password.ui.model.PWResetSuccessModel in project OpenAM by OpenRock.
the class PWResetSuccessViewBean method forwardTo.
/**
* Forwards to current view bean after after verifying
* that reset reset message exists. It will forward to
* <code>PWResetUserValidationViewBean</code> if the user DN
* or organization DN does not exists.
*
* @param context request context
*/
public void forwardTo(RequestContext context) {
PWResetSuccessModel model = (PWResetSuccessModel) getModel();
ISLocaleContext localeContext = new ISLocaleContext();
localeContext.setLocale(context.getRequest());
java.util.Locale locale = localeContext.getLocale();
model.setUserLocale(locale.toString());
if (resetMsg == null || resetMsg.length() == 0) {
PWResetUserValidationViewBean vb = (PWResetUserValidationViewBean) getViewBean(PWResetUserValidationViewBean.class);
vb.forwardTo(context);
} else {
super.forwardTo(context);
}
}
Aggregations