Skip to content
Snippets Groups Projects
Commit b9f28d42 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Use GetId everywhere

parent 953dbc41
No related branches found
No related tags found
1 merge request!90New: Use the new metadata structure (coscine/issues#1792)
......@@ -145,7 +145,7 @@ namespace Coscine.Api.Tree.Controllers
// Add to metadata infos, if no "physical" file for it exists
if (!metadataInfos.Any((metadataInfo) => metadataInfo.Key == path))
{
metadataInfos.Add(new ResourceEntry(path, true, 0, _coscineLDPHelper.GenerateId(resourceId, path, true).AbsoluteUri, null, DateTime.Now, DateTime.Now));
metadataInfos.Add(new ResourceEntry(path, true, 0, _coscineLDPHelper.GetId(resourceId, path, true).AbsoluteUri, null, DateTime.Now, DateTime.Now));
}
var applicationProfileGraph = _rdfStoreConnector.GetGraph(resource.ApplicationProfile);
......@@ -321,7 +321,7 @@ namespace Coscine.Api.Tree.Controllers
// Ducktape solution for supporting multiple mimetypes
var metadataObject = ObjectFactory<JToken>.DeserializeFromStream(Request.Body);
var graphNameUri = _coscineLDPHelper.GenerateId(resourceId, path, false, true);
var graphNameUri = _coscineLDPHelper.GetId(resourceId, path, false, true);
JObject json;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment