Roberto Sánchez
2014-01-10 3d0c6e4865d4a0ddd764da533a327faf76e0cb32
securis/src/main/resources/static/js/catalogs.json
....@@ -7,6 +7,7 @@
77 "display" : "ID",
88 "type" : "number",
99 "pk" : true,
10
+ "autogenerate" : true,
1011 "readOnly" : true
1112 }, {
1213 "name" : "name",
....@@ -23,6 +24,7 @@
2324 }, {
2425 "name" : "creationTimestamp",
2526 "display" : "Creation date",
27
+ "autogenerate" : true,
2628 "type" : "date",
2729 "readOnly" : true
2830 } ]
....@@ -35,6 +37,7 @@
3537 "display" : "ID",
3638 "type" : "number",
3739 "pk" : true,
40
+ "autogenerate" : true,
3841 "readOnly" : true
3942 }, {
4043 "name" : "code",
....@@ -62,6 +65,7 @@
6265 }, {
6366 "name" : "creationTimestamp",
6467 "display" : "Creation date",
68
+ "autogenerate" : true,
6569 "type" : "date",
6670 "readOnly" : true
6771 }, {
....@@ -71,13 +75,14 @@
7175 } ]
7276 }, {
7377 "name" : "Organizations",
74
- "list_fields" : [ "code", "name", "application_name", "creationTimestamp" ],
78
+ "list_fields" : [ "code", "name", "org_parent_name", "creationTimestamp" ],
7579 "resource" : "organization",
7680 "fields" : [ {
7781 "name" : "id",
7882 "display" : "ID",
7983 "type" : "number",
8084 "pk" : true,
85
+ "autogenerate" : true,
8186 "readOnly" : true
8287 }, {
8388 "name" : "code",
....@@ -98,24 +103,67 @@
98103 "maxlength" : 500,
99104 "multiline" : 2
100105 }, {
101
- "name" : "application_id",
102
- "display" : "Application",
103
- "resource" : "application",
106
+ "name" : "org_parent_id",
107
+ "display" : "Parent organization",
108
+ "resource" : "organization",
104109 "type" : "select"
110
+ }, {
111
+ "name" : "users_ids",
112
+ "display" : "Users",
113
+ "resource" : "user",
114
+ "type" : "multiselect"
105115 }, {
106116 "name" : "creationTimestamp",
107117 "display" : "Creation date",
118
+ "autogenerate" : true,
108119 "type" : "date",
109120 "readOnly" : true
110121 }, {
111
- "name" : "application_name",
112
- "display" : "Application",
122
+ "name" : "org_parent_name",
123
+ "display" : "Parent org",
113124 "listingOnly" : true
114125 } ]
115126 }, {
116127 "name" : "Users",
128
+ "list_fields" : [ "username", "first_name", "last_name", "lastLogin" ],
117129 "resource" : "user",
118
- "fields" : []
130
+ "fields" : [ {
131
+ "name" : "username",
132
+ "display" : "Username",
133
+ "type" : "string",
134
+ "maxlength" : 45,
135
+ "pk" : true,
136
+ "readOnly" : true,
137
+ "mandatory" : true
138
+ }, {
139
+ "name" : "first_name",
140
+ "display" : "First name",
141
+ "type" : "string",
142
+ "maxlength" : 100,
143
+ "mandatory" : true
144
+ }, {
145
+ "name" : "last_name",
146
+ "display" : "Last name",
147
+ "type" : "string",
148
+ "maxlength" : 100
149
+ }, {
150
+ "name" : "organizations_ids",
151
+ "display" : "Organizations",
152
+ "resource" : "organization",
153
+ "type" : "multiselect"
154
+ }, {
155
+ "name" : "lastLogin",
156
+ "display" : "Last login",
157
+ "autogenerate" : true,
158
+ "type" : "date",
159
+ "readOnly" : true
160
+ }, {
161
+ "name" : "creationTimestamp",
162
+ "display" : "Creation date",
163
+ "autogenerate" : true,
164
+ "type" : "date",
165
+ "readOnly" : true
166
+ }]
119167 }, {
120168 "name" : "System params",
121169 "resource" : "systemparams",