From 41f9acbede8ca2b58d04a8f19290e53b913b3f5a Mon Sep 17 00:00:00 2001 From: cagache Date: Mon, 6 May 2019 10:28:11 +0300 Subject: [PATCH] used rmRestWrapper --- .../rm/community/requests/gscore/GSCoreAPI.java | 2 +- .../requests/gscore/api/ActionsExecutionAPI.java | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/GSCoreAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/GSCoreAPI.java index f0e2e241ed..063eb03b43 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/GSCoreAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/GSCoreAPI.java @@ -188,6 +188,6 @@ public class GSCoreAPI extends RMModelRequest */ public ActionsExecutionAPI usingActionsExecutionsAPI() { - return new ActionsExecutionAPI(restWrapper); + return new ActionsExecutionAPI(getRmRestWrapper()); } } diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/ActionsExecutionAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/ActionsExecutionAPI.java index d6e2475624..d663609833 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/ActionsExecutionAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/ActionsExecutionAPI.java @@ -28,12 +28,11 @@ package org.alfresco.rest.rm.community.requests.gscore.api; import com.google.common.collect.ImmutableMap; -import org.alfresco.rest.core.RestWrapper; -import org.alfresco.rest.requests.ModelRequest; +import org.alfresco.rest.core.RMRestWrapper; import org.alfresco.rest.rm.community.model.rules.ActionsOnRule; +import org.alfresco.rest.rm.community.requests.RMModelRequest; import org.alfresco.utility.model.RepoTestModel; import org.json.JSONObject; -import org.springframework.stereotype.Component; /** * Produces processed results from Core Actions API calls @@ -41,19 +40,16 @@ import org.springframework.stereotype.Component; * @author Claudia Agache * @since 3.1 */ -@Component -public class ActionsExecutionAPI extends ModelRequest +public class ActionsExecutionAPI extends RMModelRequest { - /** - * @param rmRestWrapper + * @param rmRestWrapper RM REST Wrapper */ - public ActionsExecutionAPI(RestWrapper rmRestWrapper) + public ActionsExecutionAPI(RMRestWrapper rmRestWrapper) { super(rmRestWrapper); } - /** * Declares and files a document as record to a record folder using v1 actions api *