Class MetadataUtility
java.lang.Object
org.gcube.informationsystem.resourceregistry.utils.MetadataUtility
- Author:
- Luca Frosini (ISTI - CNR)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gcube.informationsystem.model.reference.properties.MetadataaddMetadata(com.orientechnologies.orient.core.record.OElement element) static org.gcube.informationsystem.model.reference.properties.Metadatastatic 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)
-
Constructor Details
-
MetadataUtility
public MetadataUtility()
-
-
Method Details
-
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
-