Class MetadataUtility


  • public class MetadataUtility
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • MetadataUtility

        public MetadataUtility()
    • Method Detail

      • getUser

        public static String getUser()
      • createMetadata

        public static org.gcube.informationsystem.model.reference.properties.Metadata createMetadata()
      • getMetadata

        public static org.gcube.informationsystem.model.reference.properties.Metadata getMetadata​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
                                                                                           throws org.gcube.com.fasterxml.jackson.core.JsonParseException,
                                                                                                  org.gcube.com.fasterxml.jackson.databind.JsonMappingException,
                                                                                                  IOException,
                                                                                                  org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.com.fasterxml.jackson.core.JsonParseException
        org.gcube.com.fasterxml.jackson.databind.JsonMappingException
        IOException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getMetadataOrient

        public static MetadataOrient getMetadataOrient​(com.orientechnologies.orient.core.record.impl.ODocument oDocument)
                                                throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • addMetadata

        public static org.gcube.informationsystem.model.reference.properties.Metadata addMetadata​(com.orientechnologies.orient.core.record.OElement element)
      • getMetadata

        public static org.gcube.informationsystem.model.reference.properties.Metadata getMetadata​(com.orientechnologies.orient.core.record.OElement element)
                                                                                           throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • updateModifiedByAndLastUpdate

        public static void updateModifiedByAndLastUpdate​(com.orientechnologies.orient.core.record.OElement element)
                                                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException