AMPropertySheetModel.java revision f56a278c148b90f6c2a675e0c1fa8686ca5abed4
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * The contents of this file are subject to the terms
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * of the Common Development and Distribution License
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * (the License). You may not use this file except in
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * compliance with the License.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * You can obtain a copy of the License at
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * https://opensso.dev.java.net/public/CDDLv1.0.html or
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * See the License for the specific language governing
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * permission and limitations under the License.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * When distributing Covered Code, include this CDDL
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Header Notice in each file and include the License file
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * If applicable, add the following below the CDDL Header,
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * with the fields enclosed by brackets [] replaced by
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * your own identifying information:
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk * "Portions Copyrighted [year] [name of copyright owner]"
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * $Id: AMPropertySheetModel.java,v 1.12 2009/10/19 18:17:37 asyhuang Exp $
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Portions Copyrighted 2011-2014 ForgeRock AS
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.identity.console.property.PropertyTemplate;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.identity.console.ui.model.CCMapListModel;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.identity.console.ui.model.CCOrderedListModel;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.identity.console.ui.model.CCUnOrderedListModel;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.identity.console.ui.view.CCGlobalMapList;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.identity.console.ui.view.CCMapList;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.identity.console.ui.view.CCOrderedList;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.identity.console.ui.view.CCUnOrderedList;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.web.ui.model.CCPropertySheetModel;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.web.ui.view.addremove.CCAddRemove;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport com.sun.web.ui.view.editablelist.CCEditableList;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk/* - NEED NOT LOG - */
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private static String NON_BREAK_SPACE = "\u00A0";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static final String TBL_SUB_CONFIG = "tblSubConfig";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static final String TBL_SUB_CONFIG_BUTTON_ADD =
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "tblSubConfigButtonAdd";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static final String TBL_SUB_CONFIG_BUTTON_DELETE =
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "tblSubConfigButtonDelete";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static final String TBL_SUB_CONFIG_COL_NAME =
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "tblSubConfigColName";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static final String TBL_SUB_CONFIG_COL_TYPE =
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "tblSubConfigColType";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static final String TBL_SUB_CONFIG_DATA_NAME =
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "tblSubConfigDataName";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static final String TBL_SUB_CONFIG_HREF_NAME =
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "tblSubConfigHrefName";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public static final String TBL_SUB_CONFIG_DATA_TYPE =
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "tblSubConfigDataType";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private boolean hasSubConfigTable;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "com.sun.identity.console.ui.taglib.CCOrderedListTag";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "com.sun.identity.console.ui.taglib.CCUnOrderedListTag";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "com.sun.identity.console.ui.taglib.CCMapListTag";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "com.sun.identity.console.ui.taglib.CCGlobalMapListTag";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "com.sun.web.ui.taglib.editablelist.CCEditableListTag";
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk "com.sun.web.ui.taglib.addremove.CCAddRemoveTag";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk "KmhUnWR1MYWDYW4xuqdF5nbm+CXIyOVt";
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk setDocument(new ByteArrayInputStream(name.getBytes(Charset.forName(UTF_8))));
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public AMPropertySheetModel(ServletContext sc, String file) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk is = new ByteArrayInputStream(strXML.getBytes(Charset.forName(UTF_8)));
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk AMModelBase.debug.error("AMPropertySheetModel.setDocument", e);
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public void registerChildren(ContainerViewBase view) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk for (Iterator i = childMap.keySet().iterator(); i.hasNext(); ) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk view.registerChild(name, CCUnOrderedList.class);
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk view.registerChild(name, CCGlobalMapList.class);
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk CCActionTableModel model = createSubConfigActionTableModel();
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private void hackToGetChildViews() {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk document.getElementsByTagName(CCDescriptor.CC_ELEMENT));
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk // Check node for name attribute.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk Node nameNode = nodeAttrs.getNamedItem(NAME_ATTRIBUTE);
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk if ((nameNode != null) && (tagclassNode != null)) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk if (name.startsWith(PropertyTemplate.DATE_MARKER_NAME)){
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk } else if (v != null) {
return defaultValue;
boolean bRandom = false;
if (bRandom) {
values);
tmp);
return radioDefaultValue;
m, name);
m, name);
if (m == null) {
return view;
return tblModel;
public void clear() {
super.clear();
m.clear();
throws IOException {
return content;
return strXML;
return attributeValueMap;