2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
24 angular.module('abs').provider('fileManagerConfig', function() {
27 appName: 'Policy Editor',
29 listUrl: 'fm/listUrl',
30 uploadUrl: 'fm/uploadUrl',
31 renameUrl: 'fm/renameUrl',
32 copyUrl: 'fm/copyUrl',
33 removeUrl: 'fm/removeUrl',
34 editUrl: 'fm/editUrl',
35 getContentUrl: 'fm/getContentUrl',
36 createFolderUrl: 'fm/createFolderUrl',
37 downloadFileUrl: 'fm/downloadFileUrl',
38 compressUrl: 'fm/compressUrl',
39 extractUrl: 'fm/extractUrl',
40 permissionsUrl: 'fm/permissionsUrl',
41 describePolicyUrl : 'fm/describePolicyUrl',
42 viewPolicyUrl : 'fm/viewPolicyUrl',
43 addSubScopeUrl : 'fm/addSubScopeUrl',
44 switchVersionUrl : 'fm/switchVersionUrl',
45 exportUrl : 'fm/exportUrl',
55 createNewPolicy: true,
57 changePermissions: true,
59 compressChooseName: true,
70 enablePermissionsRecursive: true,
74 isEditableFilePattern: /\.(txt|html?|aspx?|ini|pl|py|md|css|js|log|htaccess|htpasswd|json|sql|xml|xslt?|sh|rb|as|bat|cmd|coffee|php[3-6]?|java|c|cbl|go|h|scala|vb)$/i,
75 isImageFilePattern: /\.(jpe?g|gif|bmp|png|svg|tiff?)$/i,
76 isExtractableFilePattern: /\.(gz|tar|rar|g?zip)$/i,
77 tplPath: 'app/policyApp/policy-models/Editor/src/templates'
84 set: function (constants) {
85 angular.extend(values, constants);