WebServiceProviderEditViewBean.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2009 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: WebServiceProviderEditViewBean.java,v 1.10 2009/12/19 00:06:54 asyhuang Exp $
*
*/
/**
* Customized view bean for WSP.
*/
public class WebServiceProviderEditViewBean
extends WebServiceEditViewBean {
// table
private static final String CHILD_NAME_TOKEN_CONV_TYPE =
"tokenconversiontype";
private static final String CHILD_NAME_SAML_ATTR_MAPPING =
"SAMLAttributeMapping";
static final String DEFAULT_DISPLAY_URL =
"webServiceProviderUI");
private CCActionTableModel tblUserCredential;
static {
"sunIdentityServerDeviceStatus");
"isRequestHeaderEncrypt");
}
/**
* Creates an instance of this view bean.
*/
public WebServiceProviderEditViewBean() {
super(PAGE_NAME, DEFAULT_DISPLAY_URL, false,
}
protected void registerChildren() {
super.registerChildren();
}
} else {
}
return view;
}
throws AMConsoleException {
if (authChains == null) {
authChains = "";
}
if (tokenConversionType == null) {
tokenConversionType = "";
}
}
}
}
}
private OptionList getAuthChainOptionList()
throws AMConsoleException {
}
}
return optList;
}
private OptionList getTokenConversionTypeOptionList()
throws AMConsoleException {
return createOptionList(config);
}
}
}
}
}
if (inheriting) {
}
boolean firstEntry = true;
int counter = 0;
counter++
) {
if (firstEntry) {
firstEntry = false;
} else {
}
if (!inheriting) {
} else {
}
// mask password
}
} else {
}
}
/**
* Removed the anchor tag if user credential is to be inherit from group.
*
* @param event Child Content Display Event.
* @return the manipulated HTML.
*/
return content;
} else {
}
}
throws AMConsoleException {
}
if ((tokenConversionType != null) &&
) {
}
try {
boolean first = true;
if (!first) {
} else {
first = false;
}
}
}
} catch (ModelControlException ex) {
}
}
}
private void createTableModel() {
"web.services.profile.username-token-tbl-add-btn");
"web.services.profile.username-token-tbl-remove-btn");
"web.services.profile.username-token-tbl-col-name");
"web.services.profile.username-token-tbl-password-name");
}
/**
* Forwards request to add user credential view bean.
*
* @param event Request Invocation Event.
*/
throws ModelControlException
{
try {
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
}
}
public void handleBtnExportPolicyRequest(RequestInvocationEvent event) throws ModelControlException {
AgentExportPolicyViewBean vb =(AgentExportPolicyViewBean)getViewBean(AgentExportPolicyViewBean.class);
getViewBean(AgentExportPolicyViewBean.class);
}
/**
* Handles edit user token credential request.
*
* @param event Request Invocation Event.
* @throws ModelControlException if table model cannot be restored.
*/
throws ModelControlException
{
token);
}
/**
* Deletes user token credential.
*
* @param event Request Invocation Event.
* @throws ModelControlException if table model cannot be restored.
*/
throws ModelControlException
{
submitCycle = true;
}
try {
"message.profile.modified");
} catch (AMConsoleException e) {
e.getMessage());
}
forwardTo();
}
protected Map getAttrToChildNamesMapping() {
return attrToChildNames;
}
disableButton(TBL_BUTTON_ADD, true);
disableButton(TBL_BUTTON_DELETE, true);
}
return xml;
}
public String endPropertyAttributesDisplay(
) {
"<div id=\"samlconf\" style=\"display:none\">" +
return html;
}
}