WSAuthNServicesViewBean.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
/**
* 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: WSAuthNServicesViewBean.java,v 1.2 2008/06/25 05:49:50 qcheng Exp $
*
*/
public class WSAuthNServicesViewBean
extends AMServiceProfileViewBeanBase
{
public static final String DEFAULT_DISPLAY_URL =
private static final String TBL_HANDLERS_DATA_CLASS =
"tblHandlersDataClass";
private static final String TBL_HANDLERS_HREF_ACTION =
"tblHandlersHrefAction";
private static final String TBL_HANDLERS_ADD_BTN =
"tblHandlersButtonAdd";
private static final String TBL_HANDLERS_DELETE_BTN =
"tblHandlersButtonDelete";
private boolean tablePopulated = false;
/**
* Creates a personal profile service profile view bean.
*/
public WSAuthNServicesViewBean() {
super("WSAuthNServices", DEFAULT_DISPLAY_URL,
"sunIdentityServerAuthnService");
}
if (!tablePopulated) {
}
return super.createChild(name);
}
protected void createPropertyModel() {
super.createPropertyModel();
}
protected void createPageTitleModel() {
}
private void createHandlersTableModel() {
"webservices.authentication.service.table.handlers.key");
"webservices.authentication.service.table.handlers.class");
"webservices.authentication.service.table.handlers.add.button");
"webservices.authentication.service.table.handlers.delete.button");
}
protected AMModel getModelInternal() {
try {
return new WSAuthNServicesModelImpl(
} catch (AMConsoleException e) {
e.getMessage());
}
return null;
}
private void prePopulateTable() {
if (attributeValues != null) {
}
}
if (attributeValues != null) {
}
} else {
}
}
}
throws ModelControlException {
super.beginDisplay(event);
if (!tablePopulated) {
if (!isSubmitCycle()) {
}
}
}
if (!isInlineAlertMessageSet()) {
"message.profile.modified");
}
}
}
tablePopulated = true;
boolean firstEntry = true;
int counter = 0;
if (!firstEntry) {
} else {
firstEntry = false;
}
}
counter++;
}
}
handlers);
}
return true;
}
protected void onBeforeResetProfile() {
tablePopulated = false;
}
/**
* Handles remove handler request.
*
* @param event Request Invocation Event.
*/
public void handleTblHandlersButtonDeleteRequest(
) throws ModelControlException {
setSubmitCycle(true);
}
forwardTo();
}
/**
* Handles add handler request.
*
* @param event Request Invocation Event.
*/
public void handleTblHandlersButtonAddRequest(
) throws ModelControlException {
try {
} catch (AMConsoleException e) {
e.getMessage());
}
}
/**
* Handles edit handler request.
*
* @param event Request Invocation Event.
*/
public void handleTblHandlersHrefActionRequest(
) throws ModelControlException {
try {
"tblHandlersHrefAction"));
} catch (AMConsoleException e) {
e.getMessage());
}
}
/**
* Handles save request.
*
* @param event Request invocation event
*/
throws ModelControlException
{
super.handleButton1Request(event);
}
/**
* Handles reset request.
*
* @param event Request invocation event
*/
throws ModelControlException
{
super.handleButton2Request(event);
}
protected String getBreadCrumbDisplayName() {
return "breadcrumbs.webservices.authentication";
}
}