Set called method

This commit is contained in:
Luca Frosini 2024-05-28 16:54:56 +02:00
parent e54512dcaa
commit a04088e37b
1 changed files with 7 additions and 7 deletions

View File

@ -48,9 +48,9 @@ public class ContextManager extends BaseREST {
public String create(String json) public String create(String json)
throws ResourceRegistryException { throws ResourceRegistryException {
logger.info("Requested to update/create {} with json {} ", Context.NAME, json); 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 // TODO get from IS
} }
logger.info("Requested to read {} with id {} ", Context.NAME, uuid); 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) public String update(@PathParam(ContextManager.CONTEXT_UUID_PATH_PARAMETER) String uuid, String json)
throws ResourceRegistryException { throws ResourceRegistryException {
logger.info("Requested to update/create {} with json {} ", Context.NAME, json); 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) public Response delete(@PathParam(ContextManager.CONTEXT_UUID_PATH_PARAMETER) String uuid)
throws ContextNotFoundException, ResourceRegistryException { throws ContextNotFoundException, ResourceRegistryException {
logger.info("Requested to delete {} with id {} ", Context.NAME, uuid); logger.info("Requested to delete {} with id {} ", Context.NAME, uuid);
setAccountingMethod("deleteContext"); setAccountingMethod("Delete Context");
return Response.status(Status.NO_CONTENT).build(); return Response.status(Status.NO_CONTENT).build();
} }