Class MetadataUtility
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.utils.MetadataUtility
-
public class MetadataUtility extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description MetadataUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.gcube.informationsystem.model.reference.properties.MetadataaddMetadata(com.orientechnologies.orient.core.record.OElement element)static org.gcube.informationsystem.model.reference.properties.MetadatacreateMetadata()static org.gcube.informationsystem.model.reference.properties.MetadatagetMetadata(com.orientechnologies.orient.core.record.OElement element)static org.gcube.informationsystem.model.reference.properties.MetadatagetMetadata(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)static MetadataOrientgetMetadataOrient(com.orientechnologies.orient.core.record.impl.ODocument oDocument)static StringgetUser()static voidupdateModifiedByAndLastUpdate(com.orientechnologies.orient.core.record.OElement element)
-
-
-
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.JsonParseExceptionorg.gcube.com.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionorg.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
-
-