<!--
  ~ Copyright (c) 2015, 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 id="SaveSparkScriptProcessor">
            <servlet-name>SaveSparkScriptProcessor</servlet-name>
            <url-pattern>/carbon/spark-management/SaveSparkScriptProcessor</url-pattern>
            <display-name>SaveSparkScriptProcessor</display-name>
            <servlet-class>org.wso2.carbon.analytics.spark.ui.servlet.SaveSparkScriptProcessor
            </servlet-class>
        </servlet>
    </servlets>
    <menus>
        <menu>
            <id>spark_console_parent</id>
            <i18n-key>spark.console.menu.parent</i18n-key>
            <i18n-bundle>org.wso2.carbon.analytics.spark.ui.i18n.Resources</i18n-bundle>
            <parent-menu>manage_menu</parent-menu>
            <link>#</link>
            <region>region1</region>
            <order>5</order>
            <style-class>tools</style-class>
            <icon>../spark-management/images/batchAnalytics.png</icon>
             <require-permission>/permission/admin/manage/analytics/execution</require-permission>
        </menu>
        <menu>
            <id>spark_console</id>
            <i18n-key>spark.console.menu</i18n-key>
            <i18n-bundle>org.wso2.carbon.analytics.spark.ui.i18n.Resources</i18n-bundle>
            <parent-menu>spark_console_parent</parent-menu>
            <link>../spark-management/sparkConsole.jsp</link>
            <region>region1</region>
            <order>20</order>
            <style-class>tools</style-class>
            <icon>../spark-management/images/terminal.png</icon>
             <require-permission>/permission/admin/manage/analytics/execution</require-permission>
        </menu>

        <menu>
            <id>spark_script</id>
            <i18n-key>spark.script.menu</i18n-key>
            <i18n-bundle>org.wso2.carbon.analytics.spark.ui.i18n.Resources</i18n-bundle>
            <parent-menu>spark_console_parent</parent-menu>
            <link>../spark-management/listScripts.jsp</link>
            <region>region1</region>
            <order>20</order>
            <style-class>tools</style-class>
            <icon>../spark-management/images/script.png</icon>
            <require-permission>/permission/admin/manage/analytics/execution</require-permission>
        </menu>
    </menus>
</component>
