CreateSAML2MetaDataViewBean.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 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: CreateSAML2MetaDataViewBean.java,v 1.6 2008/12/02 22:20:13 asyhuang Exp $
*
*/
public class CreateSAML2MetaDataViewBean
extends AMPrimaryMastHeadViewBean
{
public static final String DEFAULT_DISPLAY_URL =
private CCPageTitleModel ptModel;
private AMPropertySheetModel psModel;
/**
* Creates a authentication domains view bean.
*/
public CreateSAML2MetaDataViewBean() {
super("CreateSAML2MetaData");
}
protected void initialize() {
if (!initialized) {
}
initialized = true;
super.initialize();
}
super.registerChildren();
}
protected void registerChildren() {
super.registerChildren();
psModel.registerChildren(this);
ptModel.registerChildren(this);
}
} else {
}
return view;
}
throws ModelControlException
{
super.beginDisplay(event);
}
private void createPageTitleModel() {
ptModel = new CCPageTitleModel(
} else {
}
}
protected AMModel getModelInternal() {
}
private void createPropertyModel() {
}
} else {
}
psModel = new AMPropertySheetModel(
}
private void populateRealmData() {
try{
}
} catch (AMConsoleException e) {
e.getMessage());
}
}
/**
* Handles save button request.
* save
* @param event Request invocation event
*/
throws ModelControlException
{
try {
"samlv2.create.provider.missing.realm"));
forwardTo();
"samlv2.create.provider.missing.entityId"));
forwardTo();
} else {
} else {
}
backTrail();
FederationViewBean.class);
}
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
}
}
throws AMConsoleException {
boolean hasRole = false;
"tfidentityprovider", realm);
"tfidpscertalias");
"tfidpecertalias");
"tfserviceprovider", realm);
"tfspscertalias");
"tfspecertalias");
"tfattrqueryprovider", realm);
"tfattrqscertalias");
"tfattrqecertalias");
"tfattrauthority", realm);
"tfattrascertalias");
"tfattraecertalias");
"tfauthnauthority", realm);
"tfauthnascertalias");
"tfauthnaecertalias");
"tfxacmlpep", realm);
"tfxacmlpepscertalias");
"tfxacmlpepecertalias");
"tfxacmlpdp", realm);
"tfxacmlpdpscertalias");
"tfxacmlpdpecertalias");
hasRole |= bAffiliation;
"tfaffiscertalias");
"tfaffiecertalias");
"affiOwnerID");
} else if (bAffiliation) {
throw new AMConsoleException(
"samlv2.create.provider.missing.affiliation.owner"));
}
} else if (bAffiliation) {
throw new AMConsoleException(
"samlv2.create.provider.missing.affiliation.members"));
}
hasRole |= bAffiliation;
"tfaffiscertalias");
"tfaffiecertalias");
"affiOwnerID");
} else if (bAffiliation) {
throw new AMConsoleException(
"samlv2.create.provider.missing.affiliation.owner"));
}
} else if (bAffiliation) {
throw new AMConsoleException(
"samlv2.create.provider.missing.affiliation.members"));
}
}
if (!hasRole) {
throw new AMConsoleException(
"samlv2.create.provider.missing.roles"));
}
return map;
}
private boolean addStringToMap(
) {
}
return true;
} else {
return false;
}
}
return true;
} else {
return false;
}
}
/**
* Handles page cancel request.
*
* @param event Request invocation event
*/
getViewBean(FederationViewBean.class);
backTrail();
}
public String endPropertyAttributesDisplay(
) {
"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" title=\"\">\n"+
return html;
}
}