java.lang.Object
org.gcube.informationsystem.resourceregistry.utils.MetadataUtility

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.gcube.informationsystem.model.reference.properties.Metadata
    addMetadata(com.orientechnologies.orient.core.record.OElement element)
     
    static org.gcube.informationsystem.model.reference.properties.Metadata
     
    static org.gcube.informationsystem.model.reference.properties.Metadata
    getMetadata(com.orientechnologies.orient.core.record.OElement element)
     
    static org.gcube.informationsystem.model.reference.properties.Metadata
    getMetadata(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
     
    getMetadataOrient(com.orientechnologies.orient.core.record.impl.ODocument oDocument)
     
    static String
     
    static void
    updateModifiedByAndLastUpdate(com.orientechnologies.orient.core.record.OElement element)
     

    Methods inherited from class java.lang.Object

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

    • MetadataUtility

      public MetadataUtility()
  • Method Details

    • 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