<?xml version="1.0" encoding="UTF-8"?>
<!--
 !
 ! Copyright 2006 The Apache Software Foundation.
 !
 ! Licensed 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.
 !-->
<serviceGroup>
    <service name="TenantMgtAdminService" scope="transportsession">
        <transports>
            <transport>https</transport>
        </transports>
        <parameter name="ServiceClass" locked="false">
            org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService
        </parameter>
        <operation name="addTenant">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/monitor/tenants</parameter>
        </operation>
        <operation name="checkDomainAvailability">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/monitor/tenants</parameter>
        </operation>
        <operation name="addSkeletonTenant">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/monitor/tenants</parameter>
        </operation>
        <operation name="retrieveTenants">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/monitor/tenants/list</parameter>
        </operation>
        <operation name="retrievePaginatedTenants">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/monitor/tenants</parameter>
        </operation>
         <operation name="retrievePartialSearchTenants">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/monitor/tenants</parameter>
        </operation>
        <operation name="retrievePaginatedPartialSearchTenants">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/monitor/tenants</parameter>
        </operation>
        <operation name="getTenant">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/monitor/tenants</parameter>
        </operation>
        <operation name="updateTenant">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/modify/tenants</parameter>
        </operation>
        <operation name="activateTenant">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/modify/tenants</parameter>
        </operation>
        <operation name="deactivateTenant">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/modify/tenants</parameter>
        </operation>
        <operation name="deleteTenant">
            <parameter name="superTenantService" locked="true">true</parameter>
            <parameter name="AuthorizationAction" locked="true">/permission/protected/manage/modify/tenants</parameter>
        </operation>
        <parameter name="adminService" locked="true">true</parameter>
    </service>

    <parameter name="hiddenService" locked="true">true</parameter>
</serviceGroup>
