From fc90485dca673e862ba3237dc02bf5905c6af365 Mon Sep 17 00:00:00 2001 From: "manuele.simi" Date: Wed, 3 Jan 2018 03:41:33 +0000 Subject: [PATCH] Set calledMethod for create context. git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161941 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/resourcemanagement/manager/webapp/rs/RMContext.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rs/RMContext.java b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rs/RMContext.java index d8dec1b..f52013d 100644 --- a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rs/RMContext.java +++ b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rs/RMContext.java @@ -7,6 +7,7 @@ import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; +import org.gcube.common.authorization.library.provider.CalledMethodProvider; import org.gcube.informationsystem.model.entity.Context; import static org.gcube.resourcemanagement.manager.io.rs.RMContextPath.*; @@ -18,7 +19,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * Methods for manipulating {@link Context}s. + * Resource methods for {@link Context}. * * @author Manuele Simi (ISTI-CNR) * @@ -34,6 +35,7 @@ public class RMContext { @POST @Produces(ResourceInitializer.APPLICATION_JSON_CHARSET_UTF_8) public Response create(String json, @QueryParam(FORCE_RRURL_PARAM) String rrURL) { + CalledMethodProvider.instance.set(String.format("POST /%s/%s", APPLICATION_PATH, CONTEXT_ROOT)); logger.info("Requested to create context {} with json {}", Context.NAME, json); logger.info("Force URL: " + rrURL); Response response;