diff --git a/src/main/java/org/gcube/application/geoportalcommon/geoportal/ProjectsCaller.java b/src/main/java/org/gcube/application/geoportalcommon/geoportal/ProjectsCaller.java index 181ddc8..e41c4b0 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/geoportal/ProjectsCaller.java +++ b/src/main/java/org/gcube/application/geoportalcommon/geoportal/ProjectsCaller.java @@ -281,7 +281,7 @@ public class ProjectsCaller { public Project performStep(String profileID, String projectID, String stepID, Document options) throws Exception { LOG.info("performStep called for profileID: {}, projectID: {}", profileID, projectID); Projects client = (Projects) getClient(profileID); - StepExecutionRequest request = new StepExecutionRequest(projectID, options); + StepExecutionRequest request = new StepExecutionRequest(stepID, options); Project project = client.performStep(projectID, request); LOG.info("performStep returning project ID: " + project.getId()); @@ -308,6 +308,21 @@ public class ProjectsCaller { return; } + /** + * Update project. + * + * @param profileID the profile ID + * @param projectID the project ID + * @param updatedDocument the updated document + * @return the project + * @throws RemoteException the remote exception + */ + public Project updateProject(String profileID, String projectID, Document updatedDocument) throws RemoteException { + LOG.info("updateProject called for projectID {}", projectID); + Projects client = (Projects) getClient(profileID); + return client.updateDocument(projectID, updatedDocument); + } + /** * Query on mongo. *