AMPropertySheetModel.java revision cfdfc919000c56a355f581e05d9ca7ff44200208
/**
* 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: AMPropertySheetModel.java,v 1.12 2009/10/19 18:17:37 asyhuang Exp $
*
*/
/*
* Portions Copyrighted 2011-2014 ForgeRock AS
*/
/* - NEED NOT LOG - */
public class AMPropertySheetModel
extends CCPropertySheetModel
{
public static final String TBL_SUB_CONFIG_BUTTON_ADD =
"tblSubConfigButtonAdd";
public static final String TBL_SUB_CONFIG_BUTTON_DELETE =
"tblSubConfigButtonDelete";
public static final String TBL_SUB_CONFIG_COL_NAME =
"tblSubConfigColName";
public static final String TBL_SUB_CONFIG_COL_TYPE =
"tblSubConfigColType";
public static final String TBL_SUB_CONFIG_DATA_NAME =
"tblSubConfigDataName";
public static final String TBL_SUB_CONFIG_HREF_NAME =
"tblSubConfigHrefName";
public static final String TBL_SUB_CONFIG_DATA_TYPE =
"tblSubConfigDataType";
private Set passwordComponents;
private Map radioDefaultValue;
private Set dateComponents;
private Map addRemoveOptions;
private boolean hasSubConfigTable;
public static final String ORDERED_LIST =
"com.sun.identity.console.ui.taglib.CCOrderedListTag";
public static final String UNORDERED_LIST =
"com.sun.identity.console.ui.taglib.CCUnOrderedListTag";
"com.sun.identity.console.ui.taglib.CCMapListTag";
public static final String GLOBAL_MAP_LIST =
"com.sun.identity.console.ui.taglib.CCGlobalMapListTag";
public static final String EDITABLE_LIST =
"com.sun.web.ui.taglib.editablelist.CCEditableListTag";
public static final String ADDREMOVE_LIST =
"com.sun.web.ui.taglib.addremove.CCAddRemoveTag";
public static final String passwordRandom =
"KmhUnWR1MYWDYW4xuqdF5nbm+CXIyOVt";
public AMPropertySheetModel() {
super();
}
public Set getChildrenNames() {
return children;
}
}
}
super(is);
}
try {
} catch (IOException e) {
}
super.setDocument(is);
passwordComponents = new HashSet();
dateComponents = new HashSet();
radioDefaultValue = new HashMap();
}
super.registerChildren(view);
}
}
}
if (hasSubConfigTable) {
}
}
private void hackToGetChildViews() {
}
}
for (int i = 0; i < length; i++) {
// Check node for name attribute.
if (node.hasAttributes()) {
} else if (v != null) {
}
}
}
hasSubConfigTable = true;
}
}
}
}
}
}
}
}
}
}
}
return defaultValue;
}
/*
* Need to replace " " with "" because we hack the Service XML
* to have required attribute values as " "
*/
}
}
}
((CCEditableListModel) m).setOptionList(
}
// do not need to mask the password with random string
// if password value is blank
boolean bRandom = false;
}
if (bRandom) {
} else {
values);
}
} else {
}
}
} else {
tmp);
if (dateString != null) {
values[i] = dateString;
} else {
}
}
}
}
}
/**
* Returns the default values of radio buttons. Map of radio button name
* to default value (String).
*
* @return the default values of radio buttons.
*/
public Map getRadioDefaultValues() {
return radioDefaultValue;
}
CCOrderedListModel m = new CCOrderedListModel();
m, name);
"addremove.orderable.list.add.button"));
"addremove.orderable.list.delete.button"));
CCUnOrderedListModel m = new CCUnOrderedListModel();
m, name);
) {
CCMapListModel m = new CCMapListModel();
if (m == null) {
}
}
}
}
}
return view;
}
private CCActionTableModel createSubConfigActionTableModel() {
"subconfig.table.column.name");
"subconfig.table.column.name");
"subconfig.table.column.type");
return tblModel;
}
public void clear() {
super.clear();
m.clear();
m.setAvailableOptionList(new OptionList());
m.setSelectedOptionList(new OptionList());
m.setOptionList(new OptionList());
m.setSelectedOptionList(new OptionList());
m.setOptionList(new OptionList());
m.setOptionList(new OptionList());
} else {
}
}
}
}
throws IOException {
try {
}
} finally {
}
}
return content;
}
addRemoveOptions = new HashMap();
while (idx != -1) {
}
} else {
}
}
return strXML;
}
}
}
/**
* Expose a copy of the attribute value map to View Bean instances.
* @return A copy of the current attribute value map.
*/
public Map getAttributeValueMap() {
return attributeValueMap;
}
}