|
36 | 36 | import apijson.Log;
|
37 | 37 | import apijson.NotNull;
|
38 | 38 | import apijson.RequestMethod;
|
39 |
| -import apijson.RequestRole; |
40 | 39 | import apijson.StringUtil;
|
41 | 40 | import apijson.orm.AbstractVerifier;
|
42 | 41 | import apijson.orm.JSONRequest;
|
@@ -187,14 +186,14 @@ public static JSONObject initAccess(boolean shutdownWhenServerError, APIJSONCrea
|
187 | 186 | continue;
|
188 | 187 | }
|
189 | 188 |
|
190 |
| - Map<RequestMethod, RequestRole[]> map = new HashMap<>(); |
191 |
| - map.put(RequestMethod.GET, JSON.parseObject(item.getString("get"), RequestRole[].class)); |
192 |
| - map.put(RequestMethod.HEAD, JSON.parseObject(item.getString("head"), RequestRole[].class)); |
193 |
| - map.put(RequestMethod.GETS, JSON.parseObject(item.getString("gets"), RequestRole[].class)); |
194 |
| - map.put(RequestMethod.HEADS, JSON.parseObject(item.getString("heads"), RequestRole[].class)); |
195 |
| - map.put(RequestMethod.POST, JSON.parseObject(item.getString("post"), RequestRole[].class)); |
196 |
| - map.put(RequestMethod.PUT, JSON.parseObject(item.getString("put"), RequestRole[].class)); |
197 |
| - map.put(RequestMethod.DELETE, JSON.parseObject(item.getString("delete"), RequestRole[].class)); |
| 189 | + Map<RequestMethod, String[]> map = new HashMap<>(); |
| 190 | + map.put(RequestMethod.GET, JSON.parseObject(item.getString("get"), String[].class)); |
| 191 | + map.put(RequestMethod.HEAD, JSON.parseObject(item.getString("head"), String[].class)); |
| 192 | + map.put(RequestMethod.GETS, JSON.parseObject(item.getString("gets"), String[].class)); |
| 193 | + map.put(RequestMethod.HEADS, JSON.parseObject(item.getString("heads"), String[].class)); |
| 194 | + map.put(RequestMethod.POST, JSON.parseObject(item.getString("post"), String[].class)); |
| 195 | + map.put(RequestMethod.PUT, JSON.parseObject(item.getString("put"), String[].class)); |
| 196 | + map.put(RequestMethod.DELETE, JSON.parseObject(item.getString("delete"), String[].class)); |
198 | 197 |
|
199 | 198 | String name = item.getString("name");
|
200 | 199 | String alias = item.getString("alias");
|
@@ -521,19 +520,12 @@ public static long value(Long v) {
|
521 | 520 | return v == null ? 0 : v;
|
522 | 521 | }
|
523 | 522 |
|
524 |
| - @Override |
525 |
| - public String getIdKey(String database, String schema, String table) { |
526 |
| - return APIJSONSQLConfig.SIMPLE_CALLBACK.getIdKey(database, schema, table); |
527 |
| - } |
| 523 | + |
528 | 524 | @Override
|
529 | 525 | public String getIdKey(String database, String schema, String datasource, String table) {
|
530 | 526 | return APIJSONSQLConfig.SIMPLE_CALLBACK.getIdKey(database, schema, datasource, table);
|
531 | 527 | }
|
532 | 528 | @Override
|
533 |
| - public String getUserIdKey(String database, String schema, String table) { |
534 |
| - return APIJSONSQLConfig.SIMPLE_CALLBACK.getUserIdKey(database, schema, table); |
535 |
| - } |
536 |
| - @Override |
537 | 529 | public String getUserIdKey(String database, String schema, String datasource, String table) {
|
538 | 530 | return APIJSONSQLConfig.SIMPLE_CALLBACK.getUserIdKey(database, schema, datasource, table);
|
539 | 531 | }
|
|
0 commit comments