<!--
 ~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 ~
 ~ WSO2 Inc. 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.
 -->
<component xmlns="http://products.wso2.org/carbon">

  <servlets>
    <!--<servlet>-->
      <!--<servlet-name>ImageServlet</servlet-name>-->
      <!--<url-pattern>/servlets/image</url-pattern>-->
      <!--<servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-class>-->
    <!--</servlet>-->

    <servlet id="BDReportServlet">
      <servlet-name>BDReportServlet</servlet-name>
      <url-pattern>/carbon/dbreport</url-pattern>
      <display-name>BDReportServlet</display-name>
      <servlet-class>org.wso2.carbon.reporting.custom.ui.servlet.BDReportServlet
      </servlet-class>
    </servlet>

  </servlets>
  <menus>
    <menu>
      <id>reporting_menu</id>
      <i18n-bundle>org.wso2.carbon.reporting.custom.ui.i18n.Resources</i18n-bundle>
      <i18n-key>reporting.create.report.menu.text</i18n-key>
      <parent-menu>tools_menu</parent-menu>
      <link>#</link>
      <region>region5</region>
      <order>5</order>
      <icon>../reporting_custom/images/reports.png</icon>
      <style-class>tools</style-class>
      <require-permission>/permission/admin</require-permission>
    </menu>
    <menu>
      <id>reporting_list</id>
      <i18n-key>reporting.list</i18n-key>
      <i18n-bundle>org.wso2.carbon.reporting.custom.ui.i18n.Resources</i18n-bundle>
      <parent-menu>reporting_menu</parent-menu>
      <link>../reporting_custom/list-reports.jsp</link>
      <region>region5</region>
      <order>30</order>
      <style-class>tools</style-class>
      <icon>../reporting_custom/images/list.gif</icon>
      <require-permission>/permission/admin</require-permission>
    </menu>
    <menu>
      <id>reporting_add_main</id>
      <i18n-key>reporting.add</i18n-key>
      <i18n-bundle>org.wso2.carbon.reporting.custom.ui.i18n.Resources</i18n-bundle>
      <parent-menu>reporting_menu</parent-menu>
      <link>../reporting_custom/select-report.jsp</link>
      <region>region5</region>
      <order>40</order>
      <style-class>tools</style-class>
      <icon>../reporting_custom/images/add.gif</icon>
      <require-permission>/permission/admin</require-permission>
    </menu>

  </menus>
  <FileUploadConfig>
    <Mapping>
      <Actions>
        <Action>jrxmlUpload</Action>
      </Actions>
      <Class>org.wso2.carbon.reporting.custom.ui.upload.JrxmlFileUploadExecutor</Class>
    </Mapping>
  </FileUploadConfig>

</component>