Class RegistryInfo
java.lang.Object
org.gcube.informationsystem.resourceregistry.info.RegistryInfo
The general information of the registry, the document of
GET /info: what a client needs
to talk to it (the format of the dates, the page limits, the values of the fixed parameters), the
service and its models, and the labels of the levels of the Context tree. Every part is read at
each call, so a change in the database shows at once.- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<org.gcube.informationsystem.base.reference.AccessType>The base types, in the canonical order. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.com.fasterxml.jackson.databind.node.ObjectNodetoJson()Builds the document.
-
Field Details
-
BASE_TYPES
The base types, in the canonical order.
-
-
Constructor Details
-
RegistryInfo
- Parameters:
serviceName- the name of the serviceserviceVersion- the version of the service
-
-
Method Details
-
toJson
public org.gcube.com.fasterxml.jackson.databind.node.ObjectNode toJson() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionBuilds the document.- Returns:
- the general information
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the database cannot be read
-