Class HeaderUtility
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.utils.HeaderUtility
-
public class HeaderUtility extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description HeaderUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.gcube.informationsystem.model.reference.properties.HeaderaddHeader(com.orientechnologies.orient.core.record.OElement element, UUID uuid)static org.gcube.informationsystem.model.reference.properties.HeadercreateHeader(UUID uuid)static org.gcube.informationsystem.model.reference.properties.HeadergetHeader(com.orientechnologies.orient.core.record.OElement element)static org.gcube.informationsystem.model.reference.properties.HeadergetHeader(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode, boolean creation)static HeaderOrientgetHeaderOrient(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()
-
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.JsonParseExceptionorg.gcube.com.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionorg.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
-
-