<?xml version="1.0" encoding="UTF-8"?>

<!-- GXOS Configuration File version 1.0 -->
<!--
	 Written by Ozgur Balsoy. 
	 (c) 2001 Copyright Florida State University
-->
<Configuration xmlns="http://aspen.csit.fsu.edu/project/gxos/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://aspen.csit.fsu.edu/project/gxos/config
config.xsd" version="1.0">

	<!-- DatabaseManager
		Configuration information for the database manager. 
		All the database implementations need to be registered through here. 
		-->
	<DatabaseManager>

		<Database>

			<!-- URINamespace:
				This is the namespace prefix which is associated with the given database implementation, 
				i.e. gxos as in gxos://database/xmlobject/a/b/c
				-->
			<URINamespace>gxos</URINamespace>
			
			<!-- Main Java class name which implements org.gxos.xml.Database interface.
				-->
			<DBImplementer>org.gxos.ContextManager</DBImplementer>
			<Parameters>
				<!-- Parameters listed here are implementation specific. ContextManager requires these values. -->
				
				<!-- IInitialContextFactory is required for JNDI context management to start with an initial context. 
					This factory class will be used to generate the first context as a GxContext by the factory set below. 
					It corresponds to java.naming.factory.initial. 
					-->
				<Parameter name="java.naming.factory.initial">org.gxos.gndi.context.GxContextFactory</Parameter>
				
				<!-- This is a naming implementation specific URL where the implementation initially starts with. 
					This refers to java.naming.provider.url.
					-->
				<Parameter name="java.naming.provider.url">//</Parameter>
				
				<!-- JNDI provider for GXOS. This is the File System NDI from Sun.
					At the moment, we don't support any other JNDI provider, however, it will be plugable soon.
					-->
				<Parameter name="gxos.subjndi.contextfactory">com.sun.jndi.fscontext.RefFSContextFactory</Parameter>
				
				<!-- *** EDIT THIS PARAMETER ***
					Each JNDI provider requires an initial name or URL. This is for the File System NDI. 
					This URL should be set to the location where GXOS XML objects will reside.
					Examples: file:///home/john/mygxosroot, file://c:/foo/bar
					-->
				<Parameter name="gxos.subjndi.providerurl">file:///gxosroot</Parameter>
				
				<!-- loadall parameter decides if all the GXOS objects will be brought to the memory 
					when the ContextManager  is initialized for the first time.
					-->
				<Parameter name="gxos.contextmanager.loadall">true</Parameter>
				
				<!-- Turns on or off the debug mode. "false" for OFF, and "true" for ON.
					Default value is false.
					-->
				<Parameter name="gxos.development.debug">false</Parameter>
			</Parameters>
		</Database>
		
		<!-- Users of GXOS package can provide their own user information models. 
			However, in such cases, a personal information interface must be impelemented. 
			The class name given as UserImplementer below must implement org.gxos.users.PersonalInfo.
			-->
		<UserInformation>
			<UserImplementer>commgrids.users.CGPersonal</UserImplementer>
		</UserInformation>
	</DatabaseManager>
	
	<!-- All the XML metaobjects which inherit GXOS's TreeObject specification and will be used in the GXOS
		database implementation have to be listed below. These Java classes must be found in CLASSPATH
		as well.
		-->
	<CustomObjects>
		<CustomObject>commgrids.schema.Assignment</CustomObject>
		<CustomObject>commgrids.schema.Course</CustomObject>
		<CustomObject>commgrids.schema.Quiz</CustomObject>
		<CustomObject>commgrids.schema.User</CustomObject>
		<CustomObject>garnet.gateway.schema.Application</CustomObject>
		<CustomObject>garnet.gateway.schema.ApplicationDescription</CustomObject>
	</CustomObjects>
</Configuration>
