rsanchez
2017-03-21 a6e1ace2b6bdba8c08a4acfa42433f3ac073b747
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
[ {
   "name" : "Applications",
   "resource" : "application",
   "list_fields" : [ "name", "description", "creationTimestamp" ],
   "fields" : [ {
       "name" : "id",
       "display" : "ID",
       "type" : "number",
       "pk" : true,
       "autogenerate" : true,
       "readOnly" : true
   }, {
       "name" : "code",
       "display" : "Code",
       "type" : "string",
       "maxlength" : 4,
       "mandatory" : true
   }, {
       "name" : "name",
       "display" : "Name",
       "type" : "string",
       "maxlength" : 45,
       "mandatory" : true
   }, {
       "name" : "description",
       "display" : "Description",
       "type" : "string",
       "maxlength" : 500,
       "multiline" : 2
   }, {
       "name" : "license_filename",
       "display" : "License filename",
       "type" : "string",
       "maxlength" : 100,
       "mandatory" : true
   }, {
       "name" : "creation_timestamp",
       "display" : "Creation date",
       "autogenerate" : true,
       "type" : "date",
       "readOnly" : true
   }, {
       "name" : "metadata",
       "display" : "Metadata",
       "type" : "metadata",
       "allow_creation": true
   } ]
}, {
   "name" : "License types",
   "list_fields" : [ "code", "name", "application_name", "creationTimestamp" ],
   "resource" : "licensetype",
   "fields" : [ {
       "name" : "id",
       "display" : "ID",
       "type" : "number",
       "pk" : true,
       "autogenerate" : true,
       "readOnly" : true
   }, {
       "name" : "code",
       "display" : "Code",
       "type" : "string",
       "maxlength" : 10,
       "mandatory" : true
   }, {
       "name" : "name",
       "display" : "Name",
       "type" : "string",
       "maxlength" : 45,
       "mandatory" : true
   }, {
       "name" : "description",
       "display" : "Description",
       "type" : "string",
       "maxlength" : 500,
       "multiline" : 2
   }, {
       "name" : "application_id",
       "display" : "Application",
       "resource" : "application",
       "mandatory" : true,
       "type" : "select",
       "onchange": "updateMetadata"
   }, {
       "name" : "creation_timestamp",
       "display" : "Creation date",
       "autogenerate" : true,
       "type" : "date",
       "readOnly" : true
   }, {
       "name" : "application_name",
       "display" : "Application",
       "listingOnly" : true
   }, {
       "name" : "metadata",
       "display" : "Metadata",
       "type" : "metadata",
       "allow_creation": false
   } ]
}, {
   "name" : "Organizations",
   "list_fields" : [ "code", "name", "org_parent_name", "creationTimestamp" ],
   "resource" : "organization",
   "fields" : [ {
       "name" : "id",
       "display" : "ID",
       "type" : "number",
       "pk" : true,
       "autogenerate" : true,
       "readOnly" : true
   }, {
       "name" : "code",
       "display" : "Code",
       "type" : "string",
       "maxlength" : 10,
       "mandatory" : true
   }, {
       "name" : "name",
       "display" : "Name",
       "type" : "string",
       "maxlength" : 45,
       "mandatory" : true
   }, {
       "name" : "description",
       "display" : "Description",
       "type" : "string",
       "maxlength" : 500,
       "multiline" : 2
   }, {
       "name" : "org_parent_id",
       "display" : "Parent organization",
       "resource" : "organization",
       "type" : "select"
   }, {
       "name" : "users_ids",
       "display" : "Users",
       "resource" : "user",
       "type" : "multiselect"
   }, {
       "name" : "creation_timestamp",
       "display" : "Creation date",
       "autogenerate" : true,
       "type" : "date",
       "readOnly" : true
   }, {
       "name" : "org_parent_name",
       "display" : "Parent org",
       "listingOnly" : true
   } ]
}, {
   "name" : "Users",
   "list_fields" : [ "username", "first_name", "last_name", "lastLogin" ],
   "resource" : "user",
   "fields" : [ {
       "name" : "username",
       "display" : "Username",
       "type" : "string",
       "maxlength" : 45,
       "pk" : true,
       "readOnly" : true,
       "mandatory" : true
   }, {
       "name" : "email",
       "display" : "Email",
       "type" : "email",
       "maxlength" : 150,
       "mandatory" : true
   }, {
       "name" : "first_name",
       "display" : "First name",
       "type" : "string",
       "maxlength" : 100,
       "mandatory" : true
   }, {
       "name" : "password",
       "display" : "Password",
       "type" : "password",
       "maxlength" : 100,
       "mandatory" : false
   }, {
       "name" : "last_name",
       "display" : "Last name",
       "type" : "string",
       "maxlength" : 100
   }, {
       "name" : "organizations_ids",
       "display" : "Organizations",
       "resource" : "organization",
       "type" : "multiselect"
   }, {
       "name" : "roles",
       "display" : "Roles",
       "values" : [{"id":1, "label":"Advance"}, {"id":2, "label":"Admin"}],
       "type" : "multiselect"
   }, {
       "name" : "lastLogin",
       "display" : "Last login",
       "autogenerate" : true,
       "type" : "date",
       "readOnly" : true
   }, {
       "name" : "creation_timestamp",
       "display" : "Creation date",
       "autogenerate" : true,
       "type" : "date",
       "readOnly" : true
   }]
   }
]