<?xml version="1.0"?>

<metadataConfig>
	<group>
		<index>1</index>
		<name>Database</name>
		<description>Database Configuration Values.</description>
	</group>
	<group>
		<index>2</index>
		<name>Server Configuration</name>
		<description>Server Configuration Values.</description>
	</group>
	<group>
		<index>3</index>
		<name>Application Configuration</name>
		<description>Application Configuration Values.</description>
	</group>
	<group>
		<index>4</index>
		<name>Data Manager Configuration</name>
		<description>Data Manager Configuration Values.</description>
	</group>
	<group>
		<index>5</index>
		<name>Handler Plugin Configuration</name>
		<description>Register Handler Plugin extensions</description>
	</group>
	
	<!-- hidden section for backup convenience -->	
	<group>
		<index>6</index>
		<name> </name>
		<description> </description>
	</group>

	<config>
		<key>application.default-style</key>
		<label>Default Skin Style</label>
		<group>0</group>
		<index>0</index>
		<fieldType>hidden</fieldType>
		<description>
			Default skin type. Not shown on config page but we want it to backup.
		</description>
		<helpFile>docs/metacat-properties.html#application-default-style</helpFile>
	</config>

	<config>
		<key>database.user</key>
		<label>Database Username</label>
		<group>1</group>
		<index>1</index>
		<description>
			Name of database user to own all tables.
		</description>
		<helpFile>docs/metacat-properties.html#database-user</helpFile>
	</config>

	<config>
		<key>database.password</key>
		<label>Database Password</label>
		<group>1</group>
		<index>2</index>
		<fieldType>password</fieldType>
		<description>Password for database user.</description>
		<helpFile>docs/metacat-properties.html#database-password</helpFile>
	</config>

	<config>
		<key>database.type</key>
		<label>Database Type</label>
		<group>1</group>
		<index>3</index>
		<fieldType>select</fieldType>
		<option>
			<name>PostgreSQL</name>
			<value>postgres</value>
		</option>
		<option>
			<name>Oracle</name>
			<value>oracle</value>
		</option>
		<!-- option>
			<name>SQL Server</name>
			<value>sqlserver</value>
		</option -->
		<description>What kind of database is running.</description>
		<helpFile>docs/metacat-properties.html#database-type</helpFile>
	</config>

	<config>
		<key>database.driver</key>
		<label>Database Driver</label>
		<group>1</group>
		<index>4</index>
		<fieldType>select</fieldType>
		<option>
			<name>org.postgresql.Driver</name>
			<value>org.postgresql.Driver</value>
		</option>
		<option>
			<name>oracle.jdbc.driver.OracleDriver</name>
			<value>oracle.jdbc.driver.OracleDriver</value>
		</option>
		<!-- option>
			<name>com.microsoft.jdbc.sqlserver.SQLServerDriver</name>
			<value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
		</option -->
		<description>
			Which driver is required. This should conform to your
			database type.
		</description>
		<helpFile>docs/metacat-properties.html#database-driver</helpFile>
	</config>

	<config>
		<key>database.adapter</key>
		<label>Database Adapter</label>
		<group>1</group>
		<index>5</index>
		<fieldType>select</fieldType>
		<option>
			<name>edu.ucsb.nceas.dbadapter.PostgresqlAdapter</name>
			<value>edu.ucsb.nceas.dbadapter.PostgresqlAdapter</value>
		</option>
		<option>
			<name>edu.ucsb.nceas.dbadapter.OracleAdapter</name>
			<value>edu.ucsb.nceas.dbadapter.OracleAdapter</value>
		</option>
		<!-- option>
			<name>edu.ucsb.nceas.dbadapter.SqlserverAdapter</name>
			<value>edu.ucsb.nceas.dbadapter.SqlserverAdapter</value>
		</option -->
		<description>
			Which adapter is required. This should conform to your
			database type.
		</description>
		<helpFile>docs/metacat-properties.html#database-adapter</helpFile>
	</config>

	<config>
		<key>database.connectionURI</key>
		<label>JDBC Connection String</label>
		<group>1</group>
		<index>6</index>
		<description>Database connection string.</description>
		<helpFile>docs/metacat-properties.html#database-connectionURI</helpFile>
	</config>

	<config>
		<key>server.name</key>
		<label>Server Name</label>
		<group>2</group>
		<index>1</index>
		<description>
			Name of the server where Metacat will be available.
		</description>
		<helpFile>docs/metacat-properties.html#server-name</helpFile>
	</config>

	<config>
		<key>server.httpPort</key>
		<label>HTTP Port</label>
		<group>2</group>
		<index>2</index>
		<description>
			Non secure port where Metacat will be available.
		</description>
		<helpFile>docs/metacat-properties.html#server-httpPort</helpFile>
	</config>

	<config>
		<key>server.httpSSLPort</key>
		<label>HTTP SSL Port</label>
		<group>2</group>
		<index>3</index>
		<description>
			Secure port where Metacat will be available.
		</description>
		<helpFile>docs/metacat-properties.html#server-httpSSLPort</helpFile>
	</config>
	
	<config>
		<key>application.deployDir</key>
		<label>Deploy Location</label>
		<group>2</group>
		<index>4</index>
		<description>
			The directory where the application is deployed.
		</description>
		<helpFile>docs/metacat-properties.html#application-deployDir</helpFile>
	</config>
	
	<config>
		<key>auth.allowedSubmitters</key>
		<label>Allowed Submitters</label>
		<group>3</group>
		<index>1</index>
		<description>Allowed Submitters</description>
		<helpFile>docs/metacat-properties.html#auth-allowedSubmitters</helpFile>
	</config>

	<config>
		<key>auth.deniedSubmitters</key>
		<label>Denied Submitters</label>
		<group>3</group>
		<index>2</index>
		<description>Denied Submitters</description>
		<helpFile>docs/metacat-properties.html#auth-deniedSubmitters</helpFile>
	</config>

	<config>
		<key>application.context</key>
		<label>Metacat Context</label>
		<group>3</group>
		<index>3</index>
		<description>
			Name of the context under which Metacat will run. This is
			the directory in which the Metacat war file is deployed.
		</description>
		<helpFile>docs/metacat-properties.html#application-context</helpFile>
	</config>

	<config>
		<key>application.knbSiteURL</key>
		<label>KNB Site URL</label>
		<group>3</group>
		<index>4</index>
		<description>
			Location of KNB website. Usually left as
			http://knb.ecoinformatics.org
		</description>
		<helpFile>docs/metacat-properties.html#application-knbSiteURL</helpFile>
	</config>

	<config>
		<key>application.datafilepath</key>
		<label>Data File Path</label>
		<group>3</group>
		<index>5</index>
		<description>
			Where to store data. This should be some location outside
			the knb install direcories.
		</description>
		<helpFile>docs/metacat-properties.html#application-datafilepath</helpFile>
	</config>

	<config>
		<key>application.inlinedatafilepath</key>
		<label>Inline Data File Path</label>
		<group>3</group>
		<index>6</index>
		<description>
			Where to store inline data. This should be some location
			outside the knb install direcories.
		</description>
		<helpFile>docs/metacat-properties.html#application-inlinedatafilepath</helpFile>
	</config>
	
	<config>
		<key>application.documentfilepath</key>
		<label>Document File Path</label>
		<group>3</group>
		<index>7</index>
		<description>
			Where to store metadata documents. This should be some location
			outside the knb install direcories.
		</description>
		<helpFile>docs/metacat-properties.html#application-documentfilepath</helpFile>
	</config>
	
	<config>
		<key>application.tempDir</key>
		<label>Temporary File Path</label>
		<group>3</group>
		<index>8</index>
		<description>
			Where to store temporary documents. This is primarily used by
			the data registry code. &lt;font color="red"&gt; Note: this must be 
			set to a directory that is dedicated solely to temporary data, 
			since the contents may be deleted programatically.&lt;/font&gt;
		</description>
		<helpFile>docs/metacat-properties.html#application-tempDir</helpFile>
	</config>
	
	<config>
		<key>replication.logdir</key>
		<label>Replication Log Directory</label>
		<group>3</group>
		<index>9</index>
		<description>
			The directory where replication log should be located.
		</description>
		<helpFile>docs/metacat-properties.html#replication-logdir</helpFile>
	</config>
	
	<config>
		<key>index.context</key>
		<label>Index Context</label>
		<group>3</group>
		<index>10</index>
		<description>
			The context name for the deployed Metacat index webapp.
		</description>
		<helpFile>docs/metacat-properties.html#index-context</helpFile>
	</config>
	
	<config>
		<key>solr.homeDir</key>
		<label>SOLR Home directory</label>
		<group>3</group>
		<index>11</index>
		<description>
			The directory where replication log should be located.
		</description>
		<helpFile>docs/metacat-properties.html#solr-homeDir</helpFile>
	</config>
	
	<config>
		<key>ui.context</key>
		<label>UI Context</label>
		<group>3</group>
		<index>12</index>
		<description>
			The context name for the deployed Metacat UI webapp.
		</description>
		<helpFile>docs/metacat-properties.html#ui-context</helpFile>
	</config>
	
	<!-- START Data Manager configuration -->
	<config>
		<key>datamanager.server</key>
		<label>Database Server</label>
		<group>4</group>
		<index>1</index>
		<description>
			Host or IP of database server
		</description>
		<helpFile>docs/metacat-properties.html#datamanager-server</helpFile>
	</config>
	
	<config>
		<key>datamanager.database</key>
		<label>Database Name</label>
		<group>4</group>
		<index>2</index>
		<description>
			Name of the data manager database
		</description>
		<helpFile>docs/metacat-properties.html#datamanager-database</helpFile>
	</config>
	
	<config>
		<key>datamanager.user</key>
		<label>Database Username</label>
		<group>4</group>
		<index>3</index>
		<description>
			Name of database user to own all tables.
		</description>
		<helpFile>docs/metacat-properties.html#datamanager-user</helpFile>
	</config>

	<config>
		<key>datamanager.password</key>
		<label>Database Password</label>
		<group>4</group>
		<index>4</index>
		<fieldType>password</fieldType>
		<description>Password for database user.</description>
		<helpFile>docs/metacat-properties.html#datamanager-password</helpFile>
	</config>
	<!-- END Data Manager configuration -->

	<!-- handler plugin -->
	<config>
		<key>plugin.handlers</key>
		<label>Plugin class name[s]</label>
		<group>5</group>
		<index>1</index>
		<description>Comma-separated list of fully-qualified class names that implement MetacatHandlerPlugin interface</description>
		<helpFile>docs/metacat-properties.html#plugin-handlers</helpFile>
	</config>
	
	<!-- DataONE configuration -->
	<config>
		<key>D1Client.CN_URL</key>
		<label>Coordinating Node URL</label>
		<group>6</group>
		<index>1</index>
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
		<key>dataone.nodeName</key>
		<label>Node Name</label>
		<group>6</group>
		<index>2</index>
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
		<key>dataone.nodeDescription</key>
		<label>Node Description</label>
		<group>6</group>
		<index>3</index>
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
		<key>dataone.nodeId</key>
		<label>Node Identifier</label>
		<group>6</group>
		<index>4</index>
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
		<key>dataone.subject</key>
		<label>Node Subject</label>
		<group>6</group>
		<index>5</index>
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
	    <key>dataone.nodeSynchronize</key>
	    <label>Synchronize?</label>
	    <group>6</group>
	    <index>6</index>                
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
	    <key>dataone.nodeReplicate</key>
	    <label>Replicate?</label>
	    <group>6</group>
	    <index>7</index>                
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
	    <key>D1Client.certificate.file</key>
	    <label>Certificate file</label>
	    <group>6</group>
	    <index>8</index>                
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
	    <key>dataone.ore.generated</key>
	    <label>Have the ORE maps been generated?</label>
	    <group>6</group>
	    <index>9</index>                
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
	    <key>dataone.systemmetadata.generated</key>
	    <label>Has System Metadata been generated?</label>
	    <group>6</group>
	    <index>10</index>                
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
	    <key>dataone.mn.services.enabled</key>
	    <label>Have D1 MN services been enabled</label>
	    <group>6</group>
	    <index>11</index>                
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
	    <key>dataone.mn.registration.submitted</key>
	    <label>Has the MN registration been submitted</label>
	    <group>6</group>
	    <index>12</index>                
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
	    <key>D1Client.resourcesDir</key>
	    <label>Configurable DataONE Resources Directory</label>
	    <group>6</group>
	    <index>13</index>                
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	<config>
		<key>dataone.contactSubject</key>
		<label>Contact Subject</label>
		<group>6</group>
		<index>14</index>
		<fieldType>hidden</fieldType>
		<description> </description>
		<helpFile> </helpFile>
	</config>
	
	<!-- EZID and DOI configurations -->
	<config>
        <key>guid.ezid.enabled</key>
        <label>Enable EZID Service</label>
        <group>6</group>
        <index>15</index>
        <fieldType>hidden</fieldType>
        <description> </description>
        <helpFile> </helpFile>
    </config>
    <config>
        <key>guid.ezid.username</key>
        <label>User Name</label>
        <group>6</group>
        <index>16</index>
        <fieldType>hidden</fieldType>
        <description> </description>
        <helpFile> </helpFile>
    </config>
    <config>
        <key>guid.ezid.baseurl</key>
        <label>Service Base URL</label>
        <group>6</group>
        <index>17</index>
        <fieldType>hidden</fieldType>
        <description> </description>
        <helpFile> </helpFile>
    </config>
    <config>
        <key>guid.ezid.doishoulder.1</key>
        <label>DOI Shouder</label>
        <group>6</group>
        <index>18</index>
        <fieldType>hidden</fieldType>
        <description> </description>
        <helpFile> </helpFile>
    </config>
</metadataConfig>