Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / fusion / scripts / controllers / adminController.js
1 /*-
2  * ================================================================================
3  * eCOMP Portal SDK
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ================================================================================
19  */
20 app.config(function($routeProvider) {
21         $routeProvider
22         
23         
24         .when('/role_function_list', {
25                 templateUrl: 'app/fusion/scripts/view-models/profile-page/role_function_list.html',
26                 controller: 'roleFunctionListController'
27         })
28         
29         .when('/admin_menu_edit', {
30                 templateUrl: 'app/fusion/scripts/view-models/profile-page/admin_menu_edit.html',
31                 controller: 'AdminMenuEditController'
32         })
33         .when('/role/:roleId', {
34                 templateUrl: 'app/fusion/scripts/view-models/profile-page/role.html',
35                 controller: 'roleController'
36         })
37         .when('/jcs_admin', {
38                 templateUrl: 'app/fusion/scripts/view-models/profile-page/jcs_admin.html',
39                 controller: 'cacheAdminController'
40         })
41         .when('/broadcast_list', {
42                 templateUrl: 'app/fusion/scripts/view-models/profile-page/broadcast_list.html',
43                 controller: 'broadcastListController'
44         })
45         .when('/broadcast/:messageLocationId/:messageLocation/:messageId', {
46                 templateUrl: 'app/fusion/scripts/view-models/profile-page/broadcast.html',
47                 controller: 'broadcastController'
48         })
49         .when('/broadcast/:messageLocationId/:messageLocation', {
50                 templateUrl: 'app/fusion/scripts/view-models/profile-page/broadcast.html',
51                 controller: 'broadcastController'
52         })
53         .when('/collaborate_list', {
54                 templateUrl: 'app/fusion/scripts/view-models/profile-page/collaborate_list.html',
55                 controller: 'collaborateListController'
56         })
57         .when('/usage_list', {
58                 templateUrl: 'app/fusion/scripts/view-models/profile-page/usage_list.html',
59                 controller: 'usageListController'
60         })
61         .otherwise({
62                 templateUrl: 'app/fusion/scripts/view-models/profile-page/role_list.html',
63                 controller : "roleListController"
64         });
65 });