Commit Graph

111 Commits

Author SHA1 Message Date
Luca Frosini d58dcc20cf Fixed bug and tests 2021-02-23 12:27:42 +01:00
Luca Frosini 02c924d111 Fixed generic 2021-02-23 11:36:00 +01:00
Luca Frosini 3756439c72 Fixed tests to comply with new validation made by the service 2021-02-23 11:33:57 +01:00
Luca Frosini 30be493f4a Refactorign code 2021-02-22 16:36:19 +01:00
Luca Frosini 03271c0e41 Validating instances 2021-02-22 12:38:12 +01:00
Luca Frosini b276fecdc8 Added facet schema validation 2021-02-22 11:19:11 +01:00
Luca Frosini f767fc021a Moved sanityCheck in internalCreate() and internalUpdate() functions 2021-02-22 11:15:15 +01:00
Luca Frosini d98303c28d Fixing code 2021-02-19 19:38:10 +01:00
Luca Frosini 44631557da Improving code 2021-02-19 19:32:23 +01:00
Luca Frosini b7a2e6c6eb Fixed bugs 2021-02-19 15:31:26 +01:00
Luca Frosini 799aa5a770 Improving code 2021-02-19 14:34:48 +01:00
Luca Frosini de12ce5a6d Implementing sanityCheck 2021-02-18 18:22:39 +01:00
Luca Frosini ad1637ab14 renamed variable 2021-02-18 09:42:51 +01:00
Luca Frosini dbbdd206d5 Fixed test conrner case 2021-02-17 15:52:09 +01:00
Luca Frosini 2597379ad4 Fixing serilization 2021-02-17 15:16:25 +01:00
Luca Frosini 74be68d2b6 Revisited serilization 2021-02-17 11:29:43 +01:00
Luca Frosini 845ddde2c8 Rivisiting element serilization 2021-02-16 18:43:47 +01:00
Luca Frosini fe37358ea7 Adding SchemaViolationException 2021-02-16 17:17:40 +01:00
Luca Frosini a96cd187a2 Fixed bugs introduced with refactoring 2021-02-12 17:06:12 +01:00
Luca Frosini a518f98235 Refactoring code to simplify type management and to have a better
support for types cache.
2021-02-11 14:35:54 +01:00
Luca Frosini b98af42e99 Reorganizing code 2021-02-10 15:54:52 +01:00
Luca Frosini 421dce843f Adding type cache. Refatoring code 2021-02-10 15:45:48 +01:00
Luca Frosini c21fa2aa1a Refactoring code 2021-02-08 16:26:58 +01:00
Luca Frosini 3434f373f6 Refactoring service 2021-02-05 17:50:16 +01:00
Luca Frosini f722c2b148 Implementing add/remove to/from context no follow #20531 2021-02-04 14:05:52 +01:00
Luca Frosini dd2e363a51 Implementing strategy for add/remove to/from context no follow 2021-02-02 17:11:13 +01:00
Luca Frosini d4f4ac9468 Implementing strategy for add/remove to/from context no follow 2021-02-02 16:51:40 +01:00
Luca Frosini b18ebe7427 Implementing strategy for add/remove to/from context no follow 2021-02-02 16:50:48 +01:00
Luca Frosini 55b79bc835 Superclasses are now filtered (i.e. internal types are not added to the
list)and ordered (first the immediate superclass and the last the basic
type e.g. Resource, Facet, IsRelatedTo, ConsistsOf) #20319
2021-01-29 16:13:33 +01:00
Luca Frosini 58d7aa93c3 Implemented #20555 #20530 2021-01-28 22:53:10 +01:00
Luca Frosini 27cec7ec31 Add to Context deny to add a resource without adding at least a facet.
Added a test to check the service behave properly
2021-01-27 21:57:06 +01:00
Luca Frosini 406035dd40 Impl. Add/Remove to/from Context not following PropagationConstraints 2021-01-26 17:04:00 +01:00
Luca Frosini ab1f81fce7 Revert "Revert "Added dryRun""
This reverts commit 3585ccc197.
2021-01-26 16:54:20 +01:00
Luca Frosini 3585ccc197 Revert "Added dryRun"
This reverts commit afbc42eb8b.
2021-01-26 16:53:26 +01:00
Luca Frosini afbc42eb8b Added dryRun 2021-01-26 16:52:02 +01:00
Luca Frosini a10323735d Implementing #20530 #20531 2021-01-25 17:38:19 +01:00
Luca Frosini 342d89185c Added fixed authorship 2021-01-20 17:08:59 +01:00
Luca Frosini fe96b0811f Changed PROPAGATION_CONSTRAINT in PROPAGATION_CONSTRAINT_PROPERTY due to
change in IS Model
2021-01-13 21:53:51 +01:00
Luca Frosini daa7959a7e Fixing prepared query 2020-12-10 11:13:14 +01:00
Luca Frosini 18cd7e167e Including contexts in the instances header when requested #20012 2020-11-09 15:45:07 +01:00
Luca Frosini f4fb2102d7 Added API to get the list of contexts for an instance 2020-11-03 16:30:24 +01:00
Luca Frosini 1e47580d39 Switching to gcube-jackson 2020-07-07 17:15:22 +02:00
Luca Frosini 64177d1c85 Changed the way to account requests.
The accounted called Methods are summarized in file ISMethods.txt in
src/test/resources
2020-03-16 14:51:13 +01:00
Luca Frosini ede8f1be76 Fixed imports and class name due to IS Model refactoring 2020-02-03 10:52:09 +01:00
Luca Frosini aaaa3915fe Renaming classes to align the name with the IS model reorganization 2020-01-30 11:53:15 +01:00
Luca Frosini 241b6269bc Reorganized model as following
Element
 - EntityElement
   - Entity
     - Resource
     - Facet
   - Context
   - EntityType
     - ResourceType (3 lists of PropertyDefinition, LinkedFacet,
LinkedResource)
     - FacetType (1 list of PropertyDefinition)
 - RelationElement
   - Relation
     - IsRelatedTo
     - ConsistsOf
   - IsParentOf
   - RelationType
     - IsRelatedTo (1 list of PropertyDefinition)
     - ConsistsOf (1 list of PropertyDefinition)
 - PropertyElement
   - Property
     - Header
     - PropagationConstraint
     - Encrypted
   - PropertyType (1 list of PropertyDefinition)
     - PropertyDefinition
     - LinkedEntity
       - LinkedFacet
       - LinkedResource
2020-01-30 11:04:16 +01:00
Luca Frosini d5c2ecd896 Reorganizing packages 2020-01-27 17:07:37 +01:00
Luca Frosini eb99996c62 Reorganized Packages 2020-01-27 17:04:45 +01:00
Luca Frosini 5d9da98508 Fixed Schema management and test 2020-01-24 11:25:13 +01:00
Luca Frosini ecc047889e Fixed types creations 2020-01-23 17:15:02 +01:00
Luca Frosini a825fe51af Fixed types creation to support resource schema definition. 2020-01-20 10:29:56 +01:00
Luca Frosini 63700398d4 removed empty javadoc 2019-12-05 17:03:59 +01:00
Luca Frosini 7e602b72bd Fixed type schema serialization 2019-11-11 16:09:47 +01:00
Luca Frosini 6354f99103 Fixing Type definition 2019-11-08 18:14:45 +01:00
Luca Frosini 6bc15e3164 fixed type definitions creation 2019-11-08 13:14:56 +01:00
Luca Frosini f8427ea85b Fixing database initializations 2019-11-08 12:29:32 +01:00
Luca Frosini c6ddf6da91 Fixed package name 2019-11-06 12:14:27 +01:00
Luca Frosini e59af36a4f Changed orientdb deprecated api for query 2019-11-06 12:13:19 +01:00
Luca Frosini f683681a8a Switched from OrientGraph to oDatabaseDocument to have one interface for
managing vertexes, edges and properties.
Moreover, switched from Element to OElement, Vertex to OVertex, Edge to
OEdge to have the same APIs to manage instances, and to be able to
directly use oDatabaseDocument instead of frequent casts to
OrientElement to perform operations not supported by thinkerpop standard
interface.
2019-11-05 18:36:44 +01:00
Luca Frosini f14061774d Refactoring servcie 2019-11-05 09:28:55 +01:00
Luca Frosini 383887e7d2 Refactoring service to be aligned with IS model refactorign 2019-11-04 18:01:20 +01:00