Commit Graph

617 Commits

Author SHA1 Message Date
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 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 403222835e Fixed header update 2023-02-10 18:26:19 +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 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 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 a026f9ecda Fixed ContextCache management 2022-06-07 17:15:50 +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 a5ce8330d6 Migrating to new SecretManagerProvider 2022-03-07 14:16:51 +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 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 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
Luca Frosini 414e3f5672 Aligned package names 2021-10-25 11:00:54 +02:00
Luca Frosini eb240c751a Cleaned code 2021-10-22 20:07:50 +02:00
Luca Frosini 5676d17c58 Aligned name 2021-10-22 20:05:55 +02:00
Luca Frosini 90a25ee7e7 All the refactored code has been tested with existing JUnit tests 2021-10-22 19:26:36 +02:00
Luca Frosini 6e985eec65 Moved Query Conditional and Logical operators in a dedicated package 2021-10-22 11:11:01 +02:00
Luca Frosini d2324da565 Renamed Class 2021-10-22 10:24:16 +02:00
Luca Frosini b9d1a43520 Adding support for query templates 2021-10-21 19:14:45 +02:00
Luca Frosini fc4ed61344 Added support to manage reserved UUID 2021-10-21 16:32:05 +02:00
Luca Frosini ef1f3bb427 minor changes 2021-10-21 12:48:43 +02:00
Luca Frosini e64e3b9dc4 Added logical and conditional operators 2021-10-20 12:05:34 +02:00
Luca Frosini 0d5e55472c REfactoring code to support logical and consitional operator 2021-10-19 22:50:45 +02:00
Luca Frosini 5b3db43248 Improving code 2021-10-19 22:18:41 +02:00
Luca Frosini b339c9d49a Reorganizing code to easily support conditional and logical operators 2021-10-19 16:46:00 +02:00
Luca Frosini e810a6c06d Added the possibility of getting a facet as result 2021-10-19 12:56:45 +02:00
Luca Frosini c8d9007121 Starting supporting facet as result 2021-10-18 16:23:41 +02:00
Luca Frosini 5486954750 Results are now post filtered to allow polymorphism 2021-10-18 15:18:17 +02:00
Luca Frosini 485b20ac05 Starting to support results different from Resources 2021-10-18 12:24:57 +02:00
Luca Frosini a51405c843 Added more possibilities 2021-10-15 17:27:45 +02:00
Luca Frosini 62db808543 Fixed Query 2021-10-15 15:43:56 +02:00
Luca Frosini b62f51e53c enhancing query capabilities 2021-10-15 11:33:07 +02:00
Luca Frosini 4d62dc6a6a Reorganized code to better manage JsonQuery 2021-10-14 18:03:55 +02:00
Luca Frosini 5a2035d21f Refactoring JsonQuery 2021-10-14 15:01:22 +02:00
Luca Frosini 4592036a7c Fixed REST API 2021-09-27 18:29:23 +02:00
Luca Frosini 2b71d1db12 Json Query has been implemented 2021-09-27 18:00:18 +02:00
Luca Frosini 4e43217b63 Improved code 2021-09-17 10:35:57 +02:00
Luca Frosini dd88daecab Fixed AddToContext 2021-09-16 17:23:13 +02:00
Luca Frosini f17106e42e Add to context add only the ERElement in the source context #12218 2021-09-16 15:23:04 +02:00
Luca Frosini 78d1f71aa6 Add To Context adds only the ERElement in the source context #12218 2021-09-15 16:22:48 +02:00
Luca Frosini 85c773fb1b Relation instances request returns relations and not Resources 2021-09-14 15:58:00 +02:00
Luca Frosini 113c3ceb9e Not including source in consistsOf when serialising Resource #22001 2021-09-13 16:48:29 +02:00
Luca Frosini 93855856b7 Header contains context property only when requested 2021-09-02 15:06:40 +02:00
Luca Frosini fa47217afd improved bug fix 2021-08-05 19:44:11 +02:00
Luca Frosini 0760bd29d6 Fixed null pointer exception 2021-08-05 16:41:29 +02:00
Luca Frosini 5b97c45a4c Fixed error message on exception 2021-07-07 19:15:13 +02:00
Luca Frosini 4ec7d40f7b Fixed prepared query 2021-07-07 17:36:10 +02:00
Luca Frosini 6770823e29 Removed OLD query parameter in prepared query API 2021-07-07 12:01:47 +02:00
Luca Frosini 67eb336c96 Added a _ prefix for query parameters to avoid constraint clashes 2021-07-07 11:24:47 +02:00
Luca Frosini 257072898a Fixed sharing REST path 2021-07-01 12:13:23 +02:00
Luca Frosini 1924cef56d Fixed inclusion of contexts in instaces 2021-07-01 12:13:11 +02:00
Luca Frosini d5189d4397 Renamed class 2021-06-25 12:25:06 +02:00
Luca Frosini acf64b8acc Fixed javadoc 2021-06-24 12:27:41 +02:00
Luca Frosini abd1584901 Fixed RemoveFromContext operation and forced ConsistsOf RemoveConstraint 2021-03-09 12:46:56 +01:00
Luca Frosini d68c3ba564 Fixing remove from context 2021-03-09 12:26:49 +01:00
Luca Frosini f760231d6b Aligned Header properties 2021-03-08 11:18:53 +01:00
Luca Frosini 23d0486f64 Fixing tests 2021-03-08 09:35:58 +01:00
Luca Frosini 3a6f3cc59b Using the proper exception 2021-03-08 09:08:25 +01:00
Luca Frosini 5db160a2dc IMproved affected instances management 2021-03-06 10:53:45 +01:00
Luca Frosini d7ed728c81 Fixing corner case 2021-03-05 18:14:07 +01:00
Luca Frosini 6afde17b0f Fixing corner cases 2021-03-05 17:22:01 +01:00
Luca Frosini ada9439ab9 DryRun has been implemented as transaction rollback 2021-03-05 16:19:55 +01:00
Luca Frosini e5eedc0108 Fixing code 2021-03-05 16:00:59 +01:00
Luca Frosini 5d2532dfac Fixed bug 2021-03-05 15:44:04 +01:00
Luca Frosini 00a3efb1f6 Fixed bug 2021-03-05 15:26:19 +01:00
Luca Frosini e148a0b253 Harmonizing APIs 2021-03-05 15:14:51 +01:00
Luca Frosini 6b999a54ef Solved rawtypes and Removed some @SuppressWarnings("rawtypes") 2021-03-05 15:04:27 +01:00
Luca Frosini 05a8825635 Reorganizing code 2021-03-05 14:41:02 +01:00
Luca Frosini 93f5999553 Added affected instances variable to ElementManagement 2021-03-05 11:59:24 +01:00
Luca Frosini 9770531b33 Reorganizing code 2021-03-05 10:46:59 +01:00
Luca Frosini 5a94aadce5 Implemented strategy to properly check resource sanity in case a delete
has been requested for a ConsistsOf or a Facet.
2021-03-04 21:57:01 +01:00
Luca Frosini 42bb1a217a improving code 2021-03-04 17:08:54 +01:00
Luca Frosini dc481fbba6 Reorganizing code 2021-03-04 11:45:27 +01:00
Luca Frosini 35be405f8e Set uuid on Management instance to avoid null in logs during tests 2021-03-04 10:39:18 +01:00
Luca Frosini 005d9a2427 Changed sanityCheck strategy 2021-03-04 10:24:21 +01:00
Luca Frosini 88baf3cb90 Fixing bug and added tests 2021-03-03 17:18:36 +01:00
Luca Frosini 25f2850114 Fixed bug 2021-03-02 16:39:30 +01:00
Luca Frosini 951aa750e1 Improved error message 2021-03-02 16:19:29 +01:00
Luca Frosini eb0a6f213d Removed old commented method 2021-03-02 11:55:16 +01:00
Luca Frosini df5e44e520 Denying the possibility to create a stand alone Facet 2021-03-02 11:54:59 +01:00
Luca Frosini 647e772827 Removed old commented code of sanityCheck 2021-03-02 10:59:44 +01:00
Luca Frosini 94388d9a36 SanityCheck on Resource for non safe operation made on Facet/IsRealtedTo 2021-03-02 10:58:23 +01:00
Luca Frosini f36ff52dcf Added Operation enum to be able to check which action has been executed 2021-03-02 10:25:58 +01:00
Luca Frosini 0a807d74a2 Improving code 2021-03-02 09:35:02 +01:00
Luca Frosini c65e84a0bb Removed old commented code 2021-03-02 09:21:10 +01:00
Luca Frosini 12ade8e7de Removed old commented code to set the calledMethod 2021-03-02 09:13:53 +01:00
Luca Frosini 703a5f3b22 Merge remote-tracking branch 'origin/feature/20316' into feature/20316 2021-03-01 17:09:26 +01:00
Luca Frosini a6a45d50e2 The target context is now a class variable 2021-03-01 17:09:09 +01:00
Luca Frosini 9cf40bf2fa Going to improve sanity check to manage the
addToContext/removeFromContext actions
2021-03-01 16:42:34 +01:00
Luca Frosini 99e88fc1e3 Cleaning code 2021-02-26 18:46:00 +01:00
Luca Frosini b3433d2d23 Cleaning code 2021-02-26 18:41:55 +01:00
Luca Frosini 6d3d9b8e37 Cleaning code 2021-02-26 18:41:14 +01:00
Luca Frosini 5f8850611d Cleaning code 2021-02-26 18:39:53 +01:00
Luca Frosini cc908bf1b0 Cleaning code 2021-02-26 18:37:57 +01:00
Luca Frosini 9deed7214b fixed log 2021-02-26 18:11:35 +01:00
Luca Frosini 129c4b5b54 Getting constant from ORientDB class in place of redefining it 2021-02-26 18:08:13 +01:00