java.lang.Object
org.gcube.informationsystem.resourceregistry.info.RegistryInfo

public class RegistryInfo extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static final List<org.gcube.informationsystem.base.reference.AccessType>
    The base types, in the canonical order.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegistryInfo(String serviceName, String serviceVersion)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gcube.com.fasterxml.jackson.databind.node.ObjectNode
    Builds the document.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BASE_TYPES

      public static final List<org.gcube.informationsystem.base.reference.AccessType> BASE_TYPES
      The base types, in the canonical order.
  • Constructor Details

    • RegistryInfo

      public RegistryInfo(String serviceName, String serviceVersion)
      Parameters:
      serviceName - the name of the service
      serviceVersion - 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.ResourceRegistryException
      Builds the document.
      Returns:
      the general information
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - if the database cannot be read