Commit Graph

818 Commits

Author SHA1 Message Date
luca.frosini ffd20403da Fixed test 2023-11-16 12:12:04 +01:00
luca.frosini 2dba63771b Renamed .query files in .oquery (o stand for OrientDB) 2023-11-16 12:11:03 +01:00
luca.frosini e0bfef4c49 Changing the generated query to support projection 2023-11-16 12:02:17 +01:00
luca.frosini 2d863b99fc Fixed ServerContextCache issue 2023-11-10 15:44:43 +01:00
luca.frosini 084e223669 Trying to fix Server Context Cache 2023-11-10 14:37:43 +01:00
luca.frosini e8a98dd54a Fixing REST API 2023-11-10 13:50:33 +01:00
luca.frosini dd7ad6840e Added pagination support 2023-11-09 17:38:51 +01:00
luca.frosini ca51189cab Cleaning commented code 2023-11-09 17:33:02 +01:00
luca.frosini dfccd87a62 Fixed queries and test 2023-11-09 17:21:21 +01:00
luca.frosini 00e0fc2a55 Improving queries 2023-11-09 12:53:35 +01:00
luca.frosini 7ce298be17 Full refactor of JsonQuery management 2023-11-08 17:16:18 +01:00
luca.frosini b978185cd5 Added skip limit 2023-11-07 18:01:38 +01:00
luca.frosini 68c742eb09 Removed postfilter because polymorphism support has been added in query 2023-11-06 17:45:00 +01:00
luca.frosini 7409a8d278 Improving Json Queries 2023-11-03 17:56:55 +01:00
luca.frosini c611a839eb Improving offset limit management to properly support paginated result 2023-10-31 15:24:29 +01:00
luca.frosini 1eb1cf6773 Fixing whitespaces 2023-10-31 14:40:23 +01:00
luca.frosini d786ffff98 Fixing context pagination 2023-10-31 14:39:39 +01:00
luca.frosini 08fca98875 Changed the way to paginate results due to missing skip in TRAVERSE
command
2023-09-27 16:23:35 +02:00
luca.frosini e5106cd6c0 Fixed test to be able to be executed on OS different from linux 2023-09-27 16:16:23 +02:00
luca.frosini 849cc923f3 Added pagination support for QueryTemplates 2023-09-27 15:18:28 +02:00
luca.frosini 9851f83ecd Fixed log 2023-09-27 15:18:03 +02:00
luca.frosini 9b3ffcf5b4 Improved Query Readability 2023-09-27 15:17:54 +02:00
luca.frosini c34c5f9a59 Added pagination in JSONQuery 2023-09-27 15:16:58 +02:00
luca.frosini 22bedb9a75 Added complete test for ERElement pagination 2023-09-27 15:13:02 +02:00
luca.frosini 3f1a4f5795 Added pagination to prepared query 2023-09-27 15:12:36 +02:00
luca.frosini 5741f52072 fixed test 2023-09-27 15:11:41 +02:00
luca.frosini 290cb44221 Improved JUnit test to properly verify context pagination 2023-09-27 12:23:11 +02:00
luca.frosini 90e1ca1a28 Added pagination to context listing 2023-09-27 12:22:11 +02:00
luca.frosini af48246afa Added limit offset request check in query and listing methods 2023-09-25 18:01:47 +02:00
luca.frosini ee8bdefa8b Added pagination to contexts 2023-09-22 19:06:05 +02:00
luca.frosini 8c5dcd0341 improved test 2023-09-22 18:49:49 +02:00
luca.frosini 9d9ec44b90 Added the possibility to get unbounded instances using -1 2023-09-22 18:10:20 +02:00
luca.frosini 38668d8a21 Added pagination for instances listing 2023-09-22 16:58:23 +02:00
luca.frosini 31f0120c50 Added check of limit/offset query parameter 2023-09-21 22:13:41 +02:00
luca.frosini d650c16e29 Renamed functions to improve code 2023-09-21 10:27:28 +02:00
luca.frosini d2ca74cc72 Implementing limit offset 2023-09-18 18:09:00 +02:00
luca.frosini 95b86d8a40 Merged changes made to solve bug #25650 2023-09-18 16:30:43 +02:00
luca.frosini 71b780eb2a Extended BaseRequestInfo 2023-09-14 15:10:11 +02:00
luca.frosini 1332261fc4 Cleaning RequestInfo refs #25211 2023-08-28 13:41:57 +02:00
Luca Frosini e3b6c8add5 Added shadow context class to allow to implements #19428 2023-05-19 16:05:28 +02:00
Luca Frosini dab30f5670 Fixing code 2023-05-17 14:03:59 +02:00
Luca Frosini 76438c6a90 Fixed path 2023-05-16 16:00:45 +02:00
Luca Frosini 46f0bea227 Fixed paths and called methods 2023-05-16 15:12:26 +02:00
Luca Frosini c7b9d21bba Rationalised accounting methods 2023-05-16 14:59:21 +02:00
Luca Frosini c79b579925 fixing query templates details 2023-05-16 14:07:12 +02:00
Luca Frosini f9e474d4cd Fixed code 2023-05-16 11:47:31 +02:00
Luca Frosini 804e2b2343 Fixing server context cache 2023-05-15 17:41:34 +02:00
Luca Frosini 20914f3f06 Fixed cache 2023-05-15 17:33:26 +02:00
Luca Frosini b32f282044 Fixed checked query parameters 2023-05-15 16:47:30 +02:00
Luca Frosini fe6e990605 Fixing get parameters 2023-05-15 16:33:47 +02:00
Luca Frosini 738b693697 Fixing bug 2023-05-15 13:00:59 +02:00
Luca Frosini 01a8480180 Applied changes made in IS Model 2023-05-12 17:55:53 +02:00
Luca Frosini a8fb9de301 Fixing cache 2023-05-10 17:57:10 +02:00
Luca Frosini a21b1d9173 Improving ServerContextCache 2023-05-10 17:43:36 +02:00
Luca Frosini a424844dce Improved Metadata management 2023-05-10 17:25:54 +02:00
Luca Frosini f4600172e2 Managing Context Cache 2023-05-10 17:21:00 +02:00
Luca Frosini 024af70188 Fixed code to properly set UriInfo 2023-05-05 15:48:59 +02:00
Luca Frosini 992b9d23cc Added BaseRest as superclass 2023-05-05 15:34:58 +02:00
Luca Frosini 69bac7493d Added missing query parameter analisys 2023-05-05 11:11:39 +02:00
Luca Frosini 074935d3d2 Add id as first member in serialization 2023-05-04 18:08:59 +02:00
Luca Frosini a3c0f725c6 Extracted RequestInfo interface and renamed class to ServerRequestInfo 2023-05-02 17:24:42 +02:00
Luca Frosini 119ae14dfa Metadata are included only if requested by the client 2023-05-02 14:48:38 +02:00
Luca Frosini 3fbdc1d734 Managing expectedtype property 2023-04-28 17:17:14 +02:00
Luca Frosini 3776bdae50 Reorganizing property order 2023-04-28 14:52:46 +02:00
Luca Frosini 7d7b9478bb Fixed code to comply with uuid property rename to id 2023-04-28 11:43:48 +02:00
Luca Frosini 5638c99feb Ordering Json Properties 2023-04-27 16:30:41 +02:00
Luca Frosini 999603e41a Added log for testing purposes 2023-04-27 12:21:14 +02:00
Luca Frosini 93e3768a64 Providing an order to properties of JSON to improve human readability 2023-04-27 12:20:57 +02:00
Luca Frosini 7b582be333 Refactored due to is-model constant name change 2023-04-27 11:15:01 +02:00
Luca Frosini 0724020bd2 Refactored to use getTypename() function of Element 2023-04-27 11:00:47 +02:00
Luca Frosini 8a23d5898b Refactored due to is-model constant name change 2023-04-27 10:42:07 +02:00
Luca Frosini ff68eb6f28 Changed '@class' to 'type' 2023-04-26 21:44:03 +02:00
Luca Frosini 39556110c2 Switched to use utility 2023-04-21 17:04:14 +02:00
Luca Frosini b1153f7283 Migrated code to use utility 2023-04-21 16:41:35 +02:00
Luca Frosini 40b21420a8 Reorganized utilities and their usage 2023-04-21 15:56:52 +02:00
Luca Frosini 8f67beb172 Fixed getTypeName 2023-04-21 14:30:07 +02:00
Luca Frosini a2b7311ba0 Commented distruptive test 2023-04-21 13:54:26 +02:00
Luca Frosini 6df9da4567 Fixed queries 2023-04-21 11:58:33 +02:00
Luca Frosini f61f240576 Fixing JSON query 2023-04-20 18:46:39 +02:00
Luca Frosini 09eb625a14 Redesigning E/R instance definition 2023-04-20 16:59:19 +02:00
Luca Frosini e2bd5c85d8 Redesigning E/R instance definition 2023-04-20 13:46:46 +02:00
Luca Frosini 967e9c6ec6 Redesigning E/R instance definition 2023-04-20 12:37:48 +02:00
Luca Frosini 237d637809 Redesigning E/R instance definition 2023-04-20 12:09:07 +02:00
Luca Frosini 88fe4e3ff3 Redesigning E/R instance definition 2023-04-20 11:11:52 +02:00
Luca Frosini 5893cfd61a Redesigning E/R instance definition 2023-04-20 08:27:17 +02:00
Luca Frosini 999bbb1ab1 Redesigning E/R instance definition 2023-04-19 16:49:06 +02:00
Luca Frosini 55e6951557 Porting code to redesigned E/R format 2023-04-19 13:14:11 +02:00
Luca Frosini 5c3735d669 Porting code to redesigned E/R format 2023-04-19 11:36:49 +02:00
Luca Frosini 79c0c9a0ab Redesigning E/R instance definition 2023-04-18 17:52:07 +02:00
Luca Frosini c5d37cb1ae adding superclasses in header properties 2023-03-01 15:45:12 +01:00
Luca Frosini a539b20174 Improved patch 2023-03-01 15:22:28 +01:00
Luca Frosini 509d4d6d21 Fixed types cache for property 2023-03-01 15:18:51 +01:00
Luca Frosini 2dfd6db506 Attributes of a type extending Property now include superclasses 2023-02-28 15:14:33 +01:00
Luca Frosini a896d1fdc0 Removed Encrypted Property Type and added Vault instead 2023-02-27 15:30:11 +01:00
Luca Frosini ddf162460a Fixed delete propagation constraint set 2023-02-24 11:55:52 +01:00
Luca Frosini d25a01973b Removed commented code 2023-02-16 15:29:36 +01:00
Luca Frosini 3c692f7edd Restored test 2023-02-10 18:34:06 +01:00
Luca Frosini 403222835e Fixed header update 2023-02-10 18:26:19 +01:00
Luca Frosini ea77168e2a Fixed test to properly support delete PropagationConstraint 2023-02-07 16:58:13 +01:00
Luca Frosini 6784426862 Moving to new is model 2023-02-07 16:27:10 +01:00
Luca Frosini 768dc47183 Added management of delete propagation constraint 2023-02-02 21:18:28 +01:00
Luca Frosini 89f2dd84cb Fixed RequestFilter 2023-02-02 19:20:24 +01:00
Luca Frosini 699b7a8d0d Ported test to use new authz 2022-12-15 17:33:20 +01:00
Luca Frosini 849fcd2622 Commented before and after test which is dangerous 2022-12-15 17:33:03 +01:00
Luca Frosini 7630ecbd84 Improved test 2022-12-08 14:27:11 +01:00
Luca Frosini a134a93f02 Fixed IsRelatedTo Query management 2022-12-07 22:58:13 +01:00
Luca Frosini fd1d9673b3 Fixed JSONquery for IsRelatedTo indicating both source and target
resources #24264
2022-12-07 12:19:19 +01:00
Luca Frosini 1235341295 Added comment 2022-12-05 16:24:38 +01:00
Luca Frosini 88333c893c Fixing #24225 2022-12-05 16:19:38 +01:00
Luca Frosini 0edf127a53 Fixing #24225 2022-12-05 16:10:25 +01:00
Luca Frosini 9cd326be98 Fixing #24225 2022-12-05 16:07:31 +01:00
Luca Frosini 9c0d0eeae2 Fixing #24225 2022-12-05 15:59:22 +01:00
Luca Frosini 13c25410fa Fixing bug 24240 2022-12-05 15:10:20 +01:00
Luca Frosini f808577fd6 Added logging of the query 2022-12-02 15:44:52 +01:00
Luca Frosini 5fb9ff33ef Fixed log and log level 2022-12-02 15:35:58 +01:00
Luca Frosini 4df4132af3 Fixed log 2022-12-02 15:33:14 +01:00
Luca Frosini 4afeed1692 Fixed bug #24237 2022-12-02 15:29:39 +01:00
Luca Frosini 04c61dc72c Ignored test file 2022-07-21 15:53:13 +02:00
Luca Frosini b1876862e8 Fixed javadoc 2022-07-20 15:08:03 +02:00
Luca Frosini a881688667 Reorganized query and path parameters constants 2022-07-20 12:10:03 +02:00
Luca Frosini 8e83ce6d98 Removed uneeded parameters 2022-07-18 16:35:44 +02:00
Luca Frosini b8d8585eab DB connection is created at startup 2022-07-18 15:48:14 +02:00
Luca Frosini fa503eb828 Fixing raw query 2022-07-18 14:19:05 +02:00
Luca Frosini 0ffca0008e Fixed comments with examples 2022-07-14 15:48:36 +02:00
Luca Frosini 4ece437d1b Fixing code 2022-06-09 11:22:30 +02:00
Luca Frosini 4b8966d907 Added a way to force add to context 2022-06-08 16:06:56 +02:00
Luca Frosini f79e5ab3ff Fixed Test 2022-06-07 17:46:24 +02:00
Luca Frosini a026f9ecda Fixed ContextCache management 2022-06-07 17:15:50 +02:00
Luca Frosini 723bb8dff2 Fixed test 2022-05-30 16:42:39 +02:00
Luca Frosini 0052e2a292 Added request filter to properly use authorization-utils 2022-05-25 17:04:28 +02:00
Luca Frosini 10985f00f8 Downgrading OrientDB to 3.0.42 2022-05-23 17:16:00 +02:00
Luca Frosini d7af96d8a7 Improving code 2022-05-18 18:00:36 +02:00
Luca Frosini b8e2d1e093 Fixed test entry 2022-03-18 11:19:38 +01:00
Luca Frosini a5ce8330d6 Migrating to new SecretManagerProvider 2022-03-07 14:16:51 +01:00
Luca Frosini 3359295adf Migrating tests to new SecretManagerProvider 2022-03-07 14:14:42 +01:00
Luca Frosini a5eda58293 Fixed javadoc 2022-03-07 11:29:03 +01:00
Luca Frosini 41f41d8179 Upgrade to OrientDB 3.2.5 (from 3.0.38) 2022-02-23 17:03:30 +01:00
Luca Frosini 52d2df21fd Removed unused import 2022-02-08 15:38:17 +01:00
Luca Frosini a6153e8f1a Fixed test 2022-02-08 13:36:22 +01:00
Luca Frosini 34fe3af013 Added possibility to run QueryTemplate with defaults(no provided params) 2022-02-08 12:49:25 +01:00
Luca Frosini c6305c9570 Fixed issue on template property of QueryTemplate serialization 2022-02-07 22:20:56 +01:00
Luca Frosini 6bd1cc11d0 Refactoring due to package renaming in resource-registry-api 2022-02-01 16:49:12 +01:00
Luca Frosini fe1dafd250 Changed the code which uses the contexts included in header or
explicitly requested for an instance
2021-10-28 10:50:46 +02:00
Luca Frosini 8a66cb622a Corrected a typo in a comment 2021-10-27 22:55:35 +02:00
Luca Frosini 7dff6271f5 Fixed test 2021-10-26 21:44:19 +02:00
Luca Frosini b025d08099 Changed the management of instance property to properly support Map,
List and Set
2021-10-26 20:49:58 +02:00
Luca Frosini 2578a7cecb Implementing QueryTemplate manager 2021-10-25 18:12:24 +02:00
Luca Frosini 7aff57a3d1 Moved back the query operators here 2021-10-25 12:13:18 +02:00
Luca Frosini 5abb21f5c2 Moved query operators (logical and condtional) to is-model 2021-10-25 11:41:29 +02:00
Luca Frosini 7fd579a80e Fixed import due to packages renaming 2021-10-25 11:40:47 +02:00