SCSAML2SOAPBindingViewBean.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: SCSAML2SOAPBindingViewBean.java,v 1.4 2008/06/25 05:49:44 qcheng Exp $
*
*/
public class SCSAML2SOAPBindingViewBean
extends AMServiceProfileViewBeanBase {
public static final String DEFAULT_DISPLAY_URL =
private static final String TBL_REQUEST_HANDLER_LIST_COL_KEY =
"tblRequestHandlerListColKey";
private static final String TBL_REQUEST_HANDLER_LIST_COL_CLASS =
"tblRequestHandlerListColClass";
private static final String TBL_REQUEST_HANDLER_LIST_COL_ACTION =
"tblRequestHandlerListColAction";
private static final String TBL_REQUEST_HANDLER_LIST_DATA_KEY =
"tblRequestHandlerListDataKey";
private static final String TBL_REQUEST_HANDLER_LIST_DATA_CLASS =
"tblRequestHandlerListDataClass";
private static final String TBL_REQUEST_HANDLER_LIST_HREF_EDIT_ACTION =
"tblRequestHandlerListHrefEditAction";
private static final String TBL_REQUEST_HANDLER_LIST_LABEL_EDIT_ACTION =
"tblRequestHandlerListLabelEditAction";
private static final String TBL_REQUEST_HANDLER_LIST_HREF_DUP_ACTION =
"tblRequestHandlerListHrefDupAction";
private static final String TBL_REQUEST_HANDLER_LIST_LABEL_DUP_ACTION =
"tblRequestHandlerListLabelDupAction";
private static final String TBL_REQUEST_HANDLER_LIST_ADD_BTN =
"tblRequestHandlerListButtonAdd";
private static final String TBL_REQUEST_HANDLER_LIST_DELETE_BTN =
"tblRequestHandlerListButtonDelete";
private boolean tablePopulated = false;
/**
* Creates a personal profile service profile view bean.
*/
public SCSAML2SOAPBindingViewBean() {
super("SCSAML2SOAPBinding", DEFAULT_DISPLAY_URL,
"sunfmSAML2SOAPBindingService");
}
if (!tablePopulated) {
}
return super.createChild(name);
}
protected void createPropertyModel() {
super.createPropertyModel();
}
protected void createPageTitleModel() {
}
private void createRequestHandlerListTableModel() {
"soapBinding.service.table.requestHandlerList.key");
"soapBinding.service.table.requestHandlerList.class");
"soapBinding.service.table.requestHandlerList.action");
"soapBinding.service.table.requestHandlerList.add.button");
"soapBinding.service.table.requestHandlerList.delete.button");
}
protected AMModel getModelInternal() {
try {
return new SCSAML2SOAPBindingModelImpl(
} catch (AMConsoleException e) {
e.getMessage());
}
return null;
}
private void prePopulateTable() {
if (attributeValues != null) {
}
}
if (attributeValues != null) {
handlers = new OrderedSet();
}
} else {
}
}
}
throws ModelControlException
{
super.beginDisplay(event);
if (!tablePopulated) {
if (!isSubmitCycle()) {
));
}
}
}
if (!isInlineAlertMessageSet()) {
"message.profile.modified");
}
}
}
tablePopulated = true;
boolean firstEntry = true;
int counter = 0;
new SAML2SOAPBindingRequestHandler(c);
if (!firstEntry) {
} else {
firstEntry = false;
}
"soapBinding.service.table.requestHandlerList.action.edit.label"
);
"soapBinding.service.table.requestHandlerList.action.dup.label"
);
}
counter++;
}
}
handlers);
} else {
}
return true;
}
protected void onBeforeResetProfile() {
tablePopulated = false;
}
/**
* 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);
}
/**
* Handles reset request.
*
* @param event Request invocation event
*/
throws ModelControlException , AMConsoleException
{
backTrail();
try {
} catch (ClassNotFoundException e) {
"SCSAML2SOAPBindingViewBean.handleButton3Request:", e);
}
}
/**
* Handles remove request handlers request.
*
* @param event Request Invocation Event.
*/
public void handleTblRequestHandlerListButtonDeleteRequest(
) throws ModelControlException {
setSubmitCycle(true);
"message.profile.modified");
}
forwardTo();
}
/**
* Handles add request handler request.
*
* @param event Request Invocation Event.
*/
public void handleTblRequestHandlerListButtonAddRequest(
) throws ModelControlException {
try {
} catch (AMConsoleException e) {
e.getMessage());
}
}
/**
* Handles edit request handler request.
*
* @param event Request Invocation Event.
*/
public void handleTblRequestHandlerListHrefEditActionRequest(
) throws ModelControlException {
try {
} catch (AMConsoleException e) {
e.getMessage());
}
}
/**
* Handles duplicate request handler request.
*
* @param event Request Invocation Event.
*/
public void handleTblRequestHandlerListHrefDupActionRequest(
) throws ModelControlException {
try {
} catch (AMConsoleException e) {
e.getMessage());
}
}
protected String getBreadCrumbDisplayName() {
return "breadcrumbs.webservices.soapbinding";
}
}