1 /* 2 * RPubsServerOperations.java 3 * 4 * Copyright (C) 2021 by RStudio, PBC 5 * 6 * Unless you have received this program directly from RStudio pursuant 7 * to the terms of a commercial license agreement with RStudio, then 8 * this program is licensed to you under the terms of version 3 of the 9 * GNU Affero General Public License. This program is distributed WITHOUT 10 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, 11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the 12 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. 13 * 14 */ 15 package org.rstudio.studio.client.common.rpubs.model; 16 17 import org.rstudio.studio.client.server.Void; 18 import org.rstudio.studio.client.server.ServerRequestCallback; 19 20 public interface RPubsServerOperations 21 { rpubsIsPublished(String htmlFile, ServerRequestCallback<Boolean> requestCallback)22 void rpubsIsPublished(String htmlFile, 23 ServerRequestCallback<Boolean> requestCallback); 24 rpubsUpload(String contextId, String title, String rmdFile, String htmlFile, String uploadId, boolean isUpdate, ServerRequestCallback<Boolean> requestCallback)25 void rpubsUpload(String contextId, 26 String title, 27 String rmdFile, 28 String htmlFile, 29 String uploadId, 30 boolean isUpdate, 31 ServerRequestCallback<Boolean> requestCallback); 32 rpubsTerminateUpload(String contextId, ServerRequestCallback<Void> requestCallback)33 void rpubsTerminateUpload(String contextId, 34 ServerRequestCallback<Void> requestCallback); 35 } 36