Roberto Sánchez
2014-01-07 8ca30e8cd3524e728fd9d4db05d6fd6fa2bc9d32
securis/src/main/resources/static/js/catalogs.json
....@@ -1,56 +1,70 @@
1
-[
2
- {
3
- "name": "Applications",
4
- "Entity": "Application",
5
- "fields": [
6
- {
7
- "name": "id",
8
- "display": "ID",
9
- "type": "number",
10
- "pk": true,
11
- "readOnly": true
12
- },
13
- {
14
- "name": "name",
15
- "display": "Name",
16
- "type": "string",
17
- "maxlength": 45,
18
- "mandatory": true
19
- },
20
- {
21
- "name": "description",
22
- "display": "Description",
23
- "type": "string",
24
- "maxlength": 500,
25
- "multiline": 2
26
- },
27
- {
28
- "name": "creation_timestamp",
29
- "display": "Creation date",
30
- "type": "date",
31
- "readOnly": true
32
- }
33
- ]
34
- },
35
- {
36
- "name": "License types",
37
- "Entity": "LicenseType",
38
- "fields": []
39
- },
40
- {
41
- "name": "Users",
42
- "Entity": "User",
43
- "fields": []
44
- },
45
- {
46
- "name": "Organizations",
47
- "Entity": "Organization",
48
- "fields": []
49
- },
50
- {
51
- "name": "System params",
52
- "Entity": "SystemParams",
53
- "fields": []
54
- }
55
-
1
+[ {
2
+ "name" : "Applications",
3
+ "resource" : "application",
4
+ "list_fields" : [ "name", "description", "creation_timestamp" ],
5
+ "fields" : [ {
6
+ "name" : "id",
7
+ "display" : "ID",
8
+ "type" : "number",
9
+ "pk" : true,
10
+ "readOnly" : true
11
+ }, {
12
+ "name" : "name",
13
+ "display" : "Name",
14
+ "type" : "string",
15
+ "maxlength" : 45,
16
+ "mandatory" : true
17
+ }, {
18
+ "name" : "description",
19
+ "display" : "Description",
20
+ "type" : "string",
21
+ "maxlength" : 500,
22
+ "multiline" : 2
23
+ }, {
24
+ "name" : "creationTimestamp",
25
+ "display" : "Creation date",
26
+ "type" : "date",
27
+ "readOnly" : true
28
+ } ]
29
+}, {
30
+ "name" : "License types",
31
+ "resource" : "licensetype",
32
+ "fields" : [ {
33
+ "name" : "id",
34
+ "display" : "ID",
35
+ "type" : "number",
36
+ "pk" : true,
37
+ "readOnly" : true
38
+ }, {
39
+ "name" : "name",
40
+ "display" : "Name",
41
+ "type" : "string",
42
+ "maxlength" : 45,
43
+ "mandatory" : true
44
+ }, {
45
+ "name" : "description",
46
+ "display" : "Description",
47
+ "type" : "string",
48
+ "maxlength" : 500,
49
+ "multiline" : 2
50
+ }, {
51
+ "name" : "creationTimestamp",
52
+ "display" : "Creation date",
53
+ "type" : "date",
54
+ "readOnly" : true
55
+ } ]
56
+}, {
57
+ "name" : "Users",
58
+ "resource" : "user",
59
+ "fields" : []
60
+}, {
61
+ "name" : "Organizations",
62
+ "resource" : "organization",
63
+ "fields" : []
64
+}, {
65
+ "name" : "System params",
66
+ "resource" : "systemparams",
67
+ "fields" : []
68
+}
69
+
5670 ]