<%@ page language="java"%> <%@ page import="java.util.Set,java.util.Map,java.util.Vector,edu.ucsb.nceas.utilities.*" %> <% /** * '$RCSfile$' * Copyright: 2008 Regents of the University of California and the * National Center for Ecological Analysis and Synthesis * For Details: http://www.nceas.ucsb.edu/ * * '$Author$' * '$Date$' * '$Revision$' * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ %> <% PropertiesMetaData metadata = (PropertiesMetaData)request.getAttribute("metadata"); Vector ldapOrganizations = (Vector)request.getAttribute("orgList"); %> Organization Configuration <%@ include file="./head-section.jsp"%>

Organization Configuration

Enter organization specific properties here.
<%@ include file="./page-message-section.jsp"%>
<% if (metadata != null) { // each group describes a section of properties Map groupMap = metadata.getGroups(); Set groupIdSet = groupMap.keySet(); for (Integer groupId : groupIdSet) { // for this group, display the header (group name) MetaDataGroup metaDataGroup = (MetaDataGroup)groupMap.get(groupId); %>

<%= metaDataGroup.getName() %>

<% if (metaDataGroup.getComment() != null) { %>
<%= metaDataGroup.getComment() %>
<% } %>
<% for (String orgName : ldapOrganizations) { %>
<% // get all the properties in this group Map propertyMap = metadata.getPropertiesInGroup(metaDataGroup.getIndex()); Set orgIndexes = propertyMap.keySet(); for (Integer orgIndex : orgIndexes) { MetaDataProperty orgProperty = propertyMap.get(orgIndex); String orgKeyName = orgProperty.getKey() + "." + orgName; %> <% if (orgProperty.getDescription() != null) { %> <% } } %>
type="password" <% } %> alt="List of administrators for this installation in LDAP DN syntax (colon separated)"/>
<%= orgProperty.getDescription() %>
<% } } } %>