Difference between revisions of "Information System Resource Registry"

From Gcube Wiki
Jump to: navigation, search
(Context Management)
Line 1: Line 1:
 
[[Category: Developer's Guide]]
 
[[Category: Developer's Guide]]
 
[[Category: Information System]]
 
[[Category: Information System]]
 +
 
Resource Registry is part of gCube [[Information System]].
 
Resource Registry is part of gCube [[Information System]].
  
Line 16: Line 17:
 
It is responsible for managing [[Facet_Based_Resource_Model#Context| Context]] belonging to the same Application Domain.
 
It is responsible for managing [[Facet_Based_Resource_Model#Context| Context]] belonging to the same Application Domain.
  
This port type is only accessible from [[Information System Resource Manager | Resource Manager]]  
+
Security configuration based on [[Authorization Framework]] make this port type accessible only from [[Information System Resource Manager|Resource Manager]]. In other words no others client is allowed to manage [[Facet_Based_Resource_Model#Context| Context]] rather than [[Information System Resource Manager|Resource Manager]].
  
 
[[Facet_Based_Resource_Model#Context|Context]] requirements:
 
[[Facet_Based_Resource_Model#Context|Context]] requirements:
 
* No predefined number of levels.
 
* No predefined number of levels.
 
* Possibility to change the name of the Context with no impact for any component.
 
* Possibility to change the name of the Context with no impact for any component.
 +
* Possibility to move a [[Facet_Based_Resource_Model#Context| Context]] from a parent [[Facet_Based_Resource_Model#Context| Context]] to another.
  
Methods:
+
Available Methods:
  
 +
* [[#Create]]
 +
* [[#Rename]]
 +
* [[#Move]]
 +
* [[#Delete]]
  
 +
=== Create ===
  
=== API ===
+
PUT /resource-registry/context?name=gCube -> a2fe0030-7b3d-4617-ba37-532c0e4b778d
 +
PUT /resource-registry/context?name=devsec[&parentContextId=a2fe0030-7b3d-4617-ba37-532c0e4b778d] -> c0f314e7-2807-4241-a792-2a6c79ed4fd0
 +
PUT /resource-registry/context?name=devVRE[&parentContextId=c0f314e7-2807-4241-a792-2a6c79ed4fd0] -> d821bcc0-946b-11e6-bdf4-0800200c9a66
  
 +
=== Rename ===
  
 
Create
 
PUT /resource-registry/context?name=gCube -> a2fe0030-7b3d-4617-ba37-532c0e4b778d
 
PUT /resource-registry/context?name=devsec�[&parentContextId=a2fe0030-7b3d-4617-ba37-532c0e4b778d] -> c0f314e7-2807-4241-a792-2a6c79ed4fd0
 
PUT /resource-registry/context?name=devVRE�[&parentContextId=c0f314e7-2807-4241-a792-2a6c79ed4fd0] -> d821bcc0-946b-11e6-bdf4-0800200c9a66
 
Rename
 
 
POST /resource-registry/context/rename/d821bcc0-946b-11e6-bdf4-0800200c9a66?name=devNext
 
POST /resource-registry/context/rename/d821bcc0-946b-11e6-bdf4-0800200c9a66?name=devNext
Move
+
 
 +
=== Move ===
 +
 
 
POST /resource-registry/context/move/d821bcc0-946b-11e6-bdf4-800200c9a66[?parentContextId=a2fe0030-7b3d-4617-ba37-532c0e4b778d
 
POST /resource-registry/context/move/d821bcc0-946b-11e6-bdf4-800200c9a66[?parentContextId=a2fe0030-7b3d-4617-ba37-532c0e4b778d
Delete
+
 
 +
=== Delete ===
 +
 
 
DELETE /resource-registry/context/d821bcc0-946b-11e6-bdf4-0800200c9a66
 
DELETE /resource-registry/context/d821bcc0-946b-11e6-bdf4-0800200c9a66
 +
  
 
== Schema Management ==
 
== Schema Management ==

Revision as of 10:41, 21 October 2016


Resource Registry is part of gCube Information System.

Resource Registry is responsible for:

  • Context Management : manage hierarchical Context.
  • Schema Management : register and define Entities and Relations schema
  • Entity Management : manage Entities and Relations instances of registered schemas
  • Query and Access : query instances and get the schema definition of registered types

Context Management

It is responsible for managing Context belonging to the same Application Domain.

Security configuration based on Authorization Framework make this port type accessible only from Resource Manager. In other words no others client is allowed to manage Context rather than Resource Manager.

Context requirements:

  • No predefined number of levels.
  • Possibility to change the name of the Context with no impact for any component.
  • Possibility to move a Context from a parent Context to another.

Available Methods:

Create

PUT /resource-registry/context?name=gCube -> a2fe0030-7b3d-4617-ba37-532c0e4b778d PUT /resource-registry/context?name=devsec[&parentContextId=a2fe0030-7b3d-4617-ba37-532c0e4b778d] -> c0f314e7-2807-4241-a792-2a6c79ed4fd0 PUT /resource-registry/context?name=devVRE[&parentContextId=c0f314e7-2807-4241-a792-2a6c79ed4fd0] -> d821bcc0-946b-11e6-bdf4-0800200c9a66

Rename

POST /resource-registry/context/rename/d821bcc0-946b-11e6-bdf4-0800200c9a66?name=devNext

Move

POST /resource-registry/context/move/d821bcc0-946b-11e6-bdf4-800200c9a66[?parentContextId=a2fe0030-7b3d-4617-ba37-532c0e4b778d

Delete

DELETE /resource-registry/context/d821bcc0-946b-11e6-bdf4-0800200c9a66


Schema Management

...

Entity Management

...

Query Management

...