Search in sources :

Example 1 with PWResetSuccessModel

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);
}
Also used : PWResetSuccessModel(com.sun.identity.password.ui.model.PWResetSuccessModel)

Example 2 with PWResetSuccessModel

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);
    }
}
Also used : PWResetSuccessModel(com.sun.identity.password.ui.model.PWResetSuccessModel) ISLocaleContext(com.sun.identity.common.ISLocaleContext)

Aggregations

PWResetSuccessModel (com.sun.identity.password.ui.model.PWResetSuccessModel)2 ISLocaleContext (com.sun.identity.common.ISLocaleContext)1