PWResetUserValidationViewBean.java revision ebe2bbed96ad174bcd6fc7a1136fade167573ddb
/**
* 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: PWResetUserValidationViewBean.java,v 1.4 2010/01/28 08:17:10 bina Exp $
*
* Portions Copyrighted 2011-2014 ForgeRock AS
*/
/**
* <code>PWResetUserValidationViewBean</code> validates user's identity for
* the password reset service.
*/
public class PWResetUserValidationViewBean extends PWResetViewBeanBase {
/**
* Name of title peer component
*/
/**
* Name of user validation peer component
*/
/**
* Name of component for user validation
*/
/**
* Name of OK button peer component
*/
/**
* Page Name
*/
/**
* Name of user attribute
*/
/**
* Name of org attribute
*/
/**
* Name of realm attribute
*/
/**
* Default display URL
*/
public static final String DEFAULT_DISPLAY_URL =
/**
* Constructs a user validation view bean
*/
public PWResetUserValidationViewBean() {
super(PAGE_NAME);
}
/**
* Registers child components/views
*/
protected void registerChildren() {
super.registerChildren();
}
/**
* Creates child component
*
* @param name of child component
* @return child component
*/
} 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);
if (model.isValidRealm()) {
}
}
}
/**
* Forwards to current view bean after validating organization
*
* @param context request context
*/
if (debug.messageEnabled()) {
}
/*
* Set the flag to indicate that user enter the orgname in
* the url.
*/
model.setRealmFlag(true);
}
} else {
}
}
/**
* Handles form submission request
*
* @param event request invocation event
*/
if (userAttrValue != null) {
}
model.setRealmFlag(true);
}
forwardTo();
} else {
{
} else {
forwardTo();
}
}
}
/**
* Forwards to <code>PWResetQuestionViewBean</code>
*
* @param orgDN organization DN
* @param value user attribute value
* @param orgDNFlag true if organization came from URL, false otherwise
*/
private void forwardToPWResetQuestionVB(
) {
getViewBean(PWResetQuestionViewBean.class);
}
}
/**
* Gets model for this view bean
*
* @return model for this view bean
*/
protected PWResetModel getModel() {
model = new PWResetUserValidationModelImpl();
}
return model;
}
/**
* Begins password reset user validation content
*
* @param event child display event
* @return true if password reset user validation content is to
* displayed, false otherwise
*/
}
}