<!--
 ~ 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">

    <ManagementPermissions>
        <ManagementPermission>
            <DisplayName>Carbon Applications</DisplayName>
            <ResourceId>/permission/admin/manage/capps</ResourceId>
        </ManagementPermission>
        <ManagementPermission>
            <DisplayName>list</DisplayName>
            <ResourceId>/permission/admin/manage/capps/list</ResourceId>
        </ManagementPermission>
        <ManagementPermission>
            <DisplayName>add</DisplayName>
            <ResourceId>/permission/admin/manage/capps/add</ResourceId>
        </ManagementPermission>
    </ManagementPermissions>

	<menus>
	    <menu>
            <id>apps_menu</id>
            <i18n-key>carbonapps.applications</i18n-key>
            <i18n-bundle>org.wso2.carbon.application.mgt.ui.i18n.Resources</i18n-bundle>
            <parent-menu>manage_menu</parent-menu>
            <link>#</link>
            <region>region1</region>
            <order>14</order>
            <style-class>manage</style-class>
            <icon>../carbonapps/images/applications.gif</icon>
        </menu>
		<menu>
			<id>apps_list_menu</id>
			<i18n-key>carbonapps.list</i18n-key>
			<i18n-bundle>org.wso2.carbon.application.mgt.ui.i18n.Resources</i18n-bundle>
			<parent-menu>apps_menu</parent-menu>
			<link>../carbonapps/index.jsp</link>
			<region>region1</region>
			<order>5</order>
			<style-class>manage</style-class>
            <icon>../carbonapps/images/list.gif</icon>
            <require-permission>/permission/admin/manage/capps/list</require-permission>
        </menu>
		 <menu>
            <id>apps_add_menu</id>
            <i18n-key>carbonapps.add</i18n-key>
            <i18n-bundle>org.wso2.carbon.application.mgt.ui.i18n.Resources</i18n-bundle>
            <parent-menu>apps_menu</parent-menu>
            <link>../carbonapps/app_upload.jsp</link>
            <region>region1</region>
            <order>10</order>
            <style-class>manage</style-class>
            <icon>../carbonapps/images/add.gif</icon>
            <require-permission>/permission/admin/manage/capps/add</require-permission>
        </menu>
	</menus>

	<FileUploadConfig>
        <Mapping>
            <Actions>
                <Action>carbonapp</Action>
            </Actions>
            <Class>org.wso2.carbon.application.mgt.ui.fileupload.CarbonAppUploadExecutor</Class>
        </Mapping>
    </FileUploadConfig>
</component>

