mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
used rmRestWrapper
This commit is contained in:
@@ -59,10 +59,9 @@ public class ActionsExecutionAPI extends RMModelRequest
|
|||||||
*/
|
*/
|
||||||
public JSONObject declareAndFile(RepoTestModel targetNode, String destinationPath) throws Exception
|
public JSONObject declareAndFile(RepoTestModel targetNode, String destinationPath) throws Exception
|
||||||
{
|
{
|
||||||
return restWrapper.withCoreAPI().usingActions()
|
return getRmRestWrapper().withCoreAPI().usingActions()
|
||||||
.executeAction(ActionsOnRule.DECLARE_AS_RECORD.getActionValue(), targetNode,
|
.executeAction(ActionsOnRule.DECLARE_AS_RECORD.getActionValue(), targetNode,
|
||||||
ImmutableMap.of("path", destinationPath));
|
ImmutableMap.of("path", destinationPath));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -73,7 +72,7 @@ public class ActionsExecutionAPI extends RMModelRequest
|
|||||||
*/
|
*/
|
||||||
public JSONObject declareAsRecord(RepoTestModel targetNode) throws Exception
|
public JSONObject declareAsRecord(RepoTestModel targetNode) throws Exception
|
||||||
{
|
{
|
||||||
return restWrapper.withCoreAPI().usingActions()
|
return getRmRestWrapper().withCoreAPI().usingActions()
|
||||||
.executeAction(ActionsOnRule.DECLARE_AS_RECORD.getActionValue(), targetNode);
|
.executeAction(ActionsOnRule.DECLARE_AS_RECORD.getActionValue(), targetNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user