<?xml version="1.0"?>

<!--
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
-->

<tools>
  <data key="root">/PackageManager</data>
  <data key="feedurl">http://servername/PackageManager/packagelists/</data>
  <data key="repo_types" type="list" value="apt,yum,yum-unsigned"/>
  <data key="computers_editable" value="true"/>
  <data key="config_button" value="false"/>
  <toolbox scope="request">
    <tool key="pager" createSession="true"/>
    <tool key="text" bundles="resources,otherStuff"/>
    <tool key="params" locale="de_DE"/>
    <tool key="linkr" class="org.apache.velocity.tools.generic.LinkTool" XHTML="false"/>

    <tool key="packagelists"  class="de.insignificance.PackageList"/>
    <tool key="repositories"  class="de.insignificance.Repository"/>
    <tool key="profiles"  class="de.insignificance.Profile"/>
    <tool key="packages"  class="de.insignificance.Package"/>
    <tool key="computers"  class="de.insignificance.Computer"/>
    <tool key="properties"  class="de.insignificance.Property"/>
    <tool key="status"  class="de.insignificance.Status" defaultCategory="computer" />
  </toolbox>
    
  <toolbox scope="session" locale="en_US">
    <tool class="org.apache.velocity.tools.view.BrowserTool" languagesFilter="en"/>
  </toolbox>

  <toolbox scope="application">
    <tool key="dbtool" class="de.insignificance.DbTool" jdbcDriver="org.postgresql.Driver"
	jdbcPath="jdbc:postgresql://localhost/packagemanager?user=packagemanager&amp;password=packagemanager"/>

    <tool key="date" format="yyyy-MM-dd" depth="2" skip="month"/>
    <tool key="convert" dateFormat="yyyy-MM-dd"/>
    <tool key="number" format="#0.0"/>
  </toolbox>
</tools>
