EditAuthTypeViewBean.java revision 44533057912ac5c4bca52935b8fbc8e6d59d0671
/**
* 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: EditAuthTypeViewBean.java,v 1.2 2008/06/25 05:42:45 qcheng Exp $
*
*/
/*
* Portions Copyright 2014-2015 ForgeRock AS.
* Portions Copyrighted 2015 Nomura Research Institute, Ltd.
*/
public class EditAuthTypeViewBean extends AMServiceProfileViewBeanBase {
/**
* Creates a authentication module edit view bean.
*/
public EditAuthTypeViewBean() {
/*
* The name of the service will return null if the entry no
* longer exists. This can happen if someone is viewing the
* properties of a service, and another person deletes the
* entry. Any request on that page will result in an error
* without a valid service name. To avoid the error we set the
* service name to the default core authentication service.
*/
"The auth instance could not be found. The instance name" +
" has been reset to " + name);
}
}
}
try {
} catch (SSOException e) {
} catch (SMSException e) {
} catch (InstantiationException e) {
} catch (IllegalAccessException e) {
}
forwardTo();
}
/**
* This will populate the property sheet with attribute values for display. If this is called after
* a dynamic request the values that was present on the UI (which might not have been persisted) will be used.
* @param event The display event.
* @throws ModelControlException
*/
super.beginDisplay(event);
// If this is not a dynamic request the UI is set with persisted values
if (!dynamicRequest) {
}
}
}
}
throws NavigationException {
super.forwardTo(reqContext);
}
protected String getBackButtonLabel() {
return getBackButtonLabel("config.auth.label");
}
/**
* Handles save request.
*
* @param event Request invocation event.
*/
throws ModelControlException
{
/*
* The service name will be null if the entry was deleted by
* another user while the properties were being viewed.
*/
} else {
try {
"message.information", "message.updated");
} catch (AMConsoleException e) {
e.getMessage());
}
}
forwardTo();
}
}
/**
* Handles reset request.
*
* @param event Request invocation event.
*/
throws ModelControlException
{
/*
* The service name will be null if the entry was deleted by
* another user while the properties were being viewed.
*/
} else {
super.handleButton2Request(event);
}
}
/**
* Handles back request.
*
* @param event Request invocation event
*/
}
backTrail();
getViewBean(AuthPropertiesViewBean.class);
}
}
protected String getBreadCrumbDisplayName() {
}
protected boolean startPageTrail() {
return false;
}
{
}
return values;
}
/*
* Returns the real service name for a given authentication type
*/
AuthPropertiesModel m = getAuthModel();
return m.getServiceName(type);
}
private AuthPropertiesModel getAuthModel() {
authModel = new AuthPropertiesModelImpl(
}
return authModel;
}
protected AMModel getModelInternal() {
try {
return new AuthProfileModelImpl(
} catch (AMConsoleException e) {
e.getMessage());
}
return null;
}
}