{
    "type": "Ext.app.Controller",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "designer|userClassName": "Content"
    },
    "designerId": "8ebb506c-c684-4bb0-a044-11dfef78333d",
    "cn": [
        {
            "type": "fixedfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "application"
                ],
                "fn": "init",
                "implHandler": [
                    "this.control({\r",
                    "\t'#global': {\r",
                    "\t\tchange: this.updateData\r",
                    "\t},\r",
                    "\t'#local': {\r",
                    "\t\tchange: this.updateData\r",
                    "\t},\r",
                    "\t'#project': {\r",
                    "\t\tchange: this.updateData\r",
                    "\t},\r",
                    "\t'#active': {\r",
                    "\t\tchange: this.updateData\r",
                    "\t}\r",
                    "\r",
                    "\r",
                    "});"
                ]
            },
            "designerId": "37c30651-56f5-4b0a-8b24-e2ea70fc9822"
        },
        {
            "type": "fixedfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "fn": "onLaunch",
                "implHandler": [
                    "this.getMyPanel().doLayout();\r",
                    "\r",
                    "this.params = Ext.Object.fromQueryString(document.location.search);\r",
                    "this.params.active = true; //always start with only active restrictions\r",
                    "\r",
                    "if(Ext.isEmpty(this.params.projectName)) {\r",
                    "\tthis.getSwitchProject().hide();\r",
                    "\tvar store = Ext.StoreManager.lookup('Scopes');\r",
                    "\tstore.remove(store.getById(3));\r",
                    "}\r",
                    "\r",
                    "this.getSwitchGlobal().setValue(this.params.global);\r",
                    "this.getSwitchLocal().setValue(this.params.local);\r",
                    "this.getSwitchProject().setValue(this.params.project);\r",
                    "\r",
                    ""
                ]
            },
            "designerId": "c14397ca-ef9b-4f9b-aa2d-eb16a41094c4"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "switchGlobal",
                "selector": "#global"
            },
            "designerId": "1c96ab67-f967-4d37-a8ad-7d26b32cf8d3"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "switchLocal",
                "selector": "#local"
            },
            "designerId": "b130bee2-a924-42e1-bac4-eb8ed21d4501"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "switchProject",
                "selector": "#project"
            },
            "designerId": "5df3c59a-0e97-4996-9710-bdd802506507"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "switchActive",
                "selector": "#active"
            },
            "designerId": "7d514135-fd4b-4757-8ce6-14418dbc9d27"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "myPanel",
                "selector": "#myPanel"
            },
            "designerId": "6e106aa2-9ad6-47c1-ba35-494185d7ea5f"
        },
        {
            "type": "basicfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "component",
                    "newValue",
                    "oldValue"
                ],
                "fn": "updateData",
                "implHandler": [
                    "this.params[component.itemId] = newValue;\r",
                    "\r",
                    "MyApp.app.getStore('restrictions').load();\r",
                    ""
                ]
            },
            "designerId": "db1c8122-d2ce-4096-b279-8158cda7e96b"
        }
    ]
}