1 /*
2  * MirrorsServerOperations.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.mirrors.model;
16 
17 import org.rstudio.studio.client.server.ServerRequestCallback;
18 
19 import com.google.gwt.core.client.JsArray;
20 
21 public interface MirrorsServerOperations
22 {
getCRANMirrors( ServerRequestCallback<JsArray<CRANMirror>> requestCallback)23    void getCRANMirrors(
24          ServerRequestCallback<JsArray<CRANMirror>> requestCallback);
25 
validateCranRepo( ServerRequestCallback<Boolean> requestCallback, String cranRepoUrl)26    void validateCranRepo(
27          ServerRequestCallback<Boolean> requestCallback,
28          String cranRepoUrl);
29 
getCRANActives( ServerRequestCallback<JsArray<CRANMirror>> requestCallback)30    void getCRANActives(
31          ServerRequestCallback<JsArray<CRANMirror>> requestCallback);
32 }
33