PWResetQuestionViewBean.java revision 8af80418ba1ec431c8027fa9668e5678658d3611
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: PWResetQuestionViewBean.java,v 1.3 2009/12/18 03:30:13 222713 Exp $
*
*/
/**
* <code>PWResetUserValidationViewBean</code> verifies user's
* answer to the secret question for the password reset service
*/
public class PWResetQuestionViewBean extends PWResetViewBeanBase {
/**
* Name of title peer component
*/
/**
* Name of OK button peer component
*/
/**
* Name of previous button peer component
*/
/**
* Page Name
*/
/**
* Name of tiled view component
*/
/**
* Name of user DN field
*/
/**
* Default display URL
*/
public static final String DEFAULT_DISPLAY_URL =
/**
* Constructs a password reset question view bean
*/
public PWResetQuestionViewBean() {
super(PAGE_NAME);
}
/**
* Registers child components/views
*/
protected void registerChildren() {
super.registerChildren();
}
/**
* Creates child component
*
* @param name of child component
* @return child component
*/
child = new PWResetQuestionTiledView(
this, PASSWORD_RESET_TILEDVIEW);
} else {
}
return child;
}
/**
* Set the required information to display the page.
*
* @param event display event.
* @throws ModelControlException if problem access value of component.
*/
throws ModelControlException {
super.beginDisplay(event);
}
/**
* Forwards to current view bean after populating questions. It
* will forward to <code>PWResetUserValidationViewBean</code> if
* the user DN or organization does not exists.
*
* @param context request context
*/
{
} else {
}
}
/**
* Handles form submission request for next button. It will
* forward to <code>PWResetSuccessViewBean</code> if the answers
* are correct for the questions.
*
* @param event request invocation event
*/
if (tView.isAnswerBlank()) {
forwardTo();
} else {
try {
getViewBean(PWResetSuccessViewBean.class);
} catch (PWResetException pwe) {
}
forwardTo();
}
}
}
/**
* Handles form submission request for previous button. It will
* take the user to <code>PWResetUserValidationViewBean</code>
*
* @param event request invocation event
*/
}
}
/**
* Gets model for this view bean
*
* @return model for this view bean
*/
protected PWResetModel getModel() {
model = new PWResetQuestionModelImpl();
}
return model;
}
}
}
/**
* Begins password secret questions content
*
* @param event child display event
* @return true if password reset secret questions question is to
* displayed, false otherwise
*/
}
}