From a04088e37bfba4735c3b575fa4be388fe40541e5 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 28 May 2024 16:54:56 +0200 Subject: [PATCH] Set called method --- .../resourcemanagement/rest/ContextManager.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/gcube/resourcemanagement/rest/ContextManager.java b/src/main/java/org/gcube/resourcemanagement/rest/ContextManager.java index b0d6e6e..76c3ab0 100644 --- a/src/main/java/org/gcube/resourcemanagement/rest/ContextManager.java +++ b/src/main/java/org/gcube/resourcemanagement/rest/ContextManager.java @@ -48,9 +48,9 @@ public class ContextManager extends BaseREST { public String create(String json) throws ResourceRegistryException { logger.info("Requested to update/create {} with json {} ", Context.NAME, json); -// setAccountingMethod(Method.UPDATE, Context.NAME); + setAccountingMethod("Create Context"); - return ""; + return "{}"; } /* @@ -70,9 +70,9 @@ public class ContextManager extends BaseREST { // TODO get from IS } logger.info("Requested to read {} with id {} ", Context.NAME, uuid); -// setAccountingMethod(Method.READ, Context.NAME); + setAccountingMethod("Read Context"); - return ""; + return "{}"; } /* @@ -91,9 +91,9 @@ public class ContextManager extends BaseREST { public String update(@PathParam(ContextManager.CONTEXT_UUID_PATH_PARAMETER) String uuid, String json) throws ResourceRegistryException { logger.info("Requested to update/create {} with json {} ", Context.NAME, json); -// setAccountingMethod(Method.UPDATE, Context.NAME); + setAccountingMethod("Update Context"); - return ""; + return "{}"; } /* @@ -106,7 +106,7 @@ public class ContextManager extends BaseREST { public Response delete(@PathParam(ContextManager.CONTEXT_UUID_PATH_PARAMETER) String uuid) throws ContextNotFoundException, ResourceRegistryException { logger.info("Requested to delete {} with id {} ", Context.NAME, uuid); - setAccountingMethod("deleteContext"); + setAccountingMethod("Delete Context"); return Response.status(Status.NO_CONTENT).build(); }