[POLICY-73] replace openecomp for policy-engine
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / policy-models / Editor / js / providers / config.js
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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  * ============LICENSE_END=========================================================
19  */
20 (function(angular) {
21     'use strict';
22
23     angular.module('abs').provider('policyManagerConfig', function() {
24
25         var values = { 
26             appName: 'Policy Editor',
27             defaultLang: 'en',
28             listUrl: 'fm/listUrl',
29             uploadUrl: 'fm/uploadUrl',
30             renameUrl: 'fm/renameUrl',
31             copyUrl: 'fm/copyUrl',
32             removeUrl: 'fm/removeUrl',
33             editUrl: 'fm/editUrl',
34             getContentUrl: 'fm/getContentUrl',
35             createFolderUrl: 'fm/createFolderUrl',
36             downloadFileUrl: 'fm/downloadFileUrl',
37             compressUrl: 'fm/compressUrl',
38             extractUrl: 'fm/extractUrl',
39             permissionsUrl: 'fm/permissionsUrl',
40             describePolicyUrl : 'fm/describePolicyUrl',
41             viewPolicyUrl : 'fm/viewPolicyUrl',
42             addSubScopeUrl : 'fm/addSubScopeUrl',
43             switchVersionUrl : 'fm/switchVersionUrl',
44             exportUrl : 'fm/exportUrl',
45             searchListUrl : 'fm/searchListUrl',
46
47             sidebar: true,
48             breadcrumb: true,
49             allowedActions: {
50                 upload: true,
51                 rename: true,
52                 copy: true,
53                 edit: true,
54                 describePolicy: true,
55                 createNewPolicy: true,
56                 viewPolicy: true,
57                 download: true,
58                 preview: true,
59                 remove: true,
60                 addSubScope : true,
61                 switchVersion : true,
62                 exportPolicy : true,
63                 removePolicy : true
64             },
65
66             tplPath: 'app/policyApp/policy-models/Editor/templates'
67         };
68
69         return {
70             $get: function() {
71                 return values;
72             },
73             set: function (constants) {
74                 angular.extend(values, constants);
75             }
76         };
77     
78     });
79 })(angular);