ImportEntityViewBean.java revision 7f1d9bc8017e04edf35e3b01b9387f3bc58aff00
/**
* 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: ImportEntityViewBean.java,v 1.7 2009/08/21 20:09:23 veiming Exp $
*
*/
public class ImportEntityViewBean
extends AMPrimaryMastHeadViewBean
{
public static final String DEFAULT_DISPLAY_URL =
private AMPropertySheetModel psModel;
private CCPageTitleModel ptModel;
/**
* Creates a authentication domains view bean.
*/
public ImportEntityViewBean() {
super("ImportEntity");
}
protected void registerChildren() {
ptModel.registerChildren(this);
psModel.registerChildren(this);
super.registerChildren();
}
} else {
}
return view;
}
throws ModelControlException
{
super.beginDisplay(event);
}
}
}
private void populateRealmData() {
try{
for (int i = 0; i < size; i++) {
}
} catch (AMConsoleException e) {
e);
"import.entity.populaterealmdata.error");
}
}
private void createPropertyModel() {
psModel = new AMPropertySheetModel(
}
private void createPageTitleModel() {
ptModel = new CCPageTitleModel(
}
protected AMModel getModelInternal() {
}
public String endPropertyAttributesDisplay(
) {
"<span id=\"metadatafilename\"></span>" +
"<span id=\"extendeddatafilename\"></span>" +
return html;
}
/**
* Handles upload entity button request. There are two fields on this page:
* one for standard metadata and the other for extended. The standard is
* required.
*
* @param event Request invocation event
* @throws ModelControlException
*/
throws ModelControlException
{
"import.entity.missing.metadata");
forwardTo();
} else {
}
try {
// build the success message.
// don't need the realm name in the message so remove it first.
}
} else {
if (idx != -1) {
if (idx1 != -1) {
}
}
}
}
}
}
"import.entity.metadata.success"), params);
}
// set the message in the main view
} catch (AMConsoleException ame) {
forwardTo();
}
}
}
/**
* Handles cancel request.
*
* @param event Request invocation event
*/
backTrail();
}
}