Class HeaderUtility


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

      • HeaderUtility

        public HeaderUtility()
    • Method Detail

      • getUser

        public static String getUser()
      • createHeader

        public static org.gcube.informationsystem.model.reference.properties.Header createHeader​(UUID uuid)
      • getHeader

        public static org.gcube.informationsystem.model.reference.properties.Header getHeader​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode,
                                                                                              boolean creation)
                                                                                       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
      • getHeaderOrient

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

        public static org.gcube.informationsystem.model.reference.properties.Header addHeader​(com.orientechnologies.orient.core.record.OElement element,
                                                                                              UUID uuid)
      • getHeader

        public static org.gcube.informationsystem.model.reference.properties.Header getHeader​(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