2014-02-25 14:28:30 +01:00
|
|
|
package org.gcube.portlets.widgets.workspacesharingwidget.client.rpc;
|
|
|
|
|
2014-02-25 15:58:42 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.AllowAccess;
|
2014-03-03 19:17:26 +01:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.CredentialModel;
|
2019-02-22 11:14:22 +01:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.ExtendedWorkspaceACL;
|
2014-02-28 12:30:44 +01:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.FileModel;
|
2014-02-25 15:58:42 +01:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.InfoContactModel;
|
2019-02-22 11:14:22 +01:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.ReportAssignmentACL;
|
2019-07-26 20:14:13 +02:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.UserVRE;
|
2014-02-25 15:58:42 +01:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.WorkspaceACL;
|
|
|
|
|
2014-02-25 14:28:30 +01:00
|
|
|
import com.google.gwt.core.client.GWT;
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
public interface WorkspaceSharingServiceAsync {
|
2014-02-25 14:28:30 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
public static WorkspaceSharingServiceAsync INSTANCE = (WorkspaceSharingServiceAsync) GWT
|
|
|
|
.create(WorkspaceSharingService.class);
|
2014-02-25 14:28:30 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getAllContacts(AsyncCallback<List<InfoContactModel>> callback);
|
2019-07-22 18:35:12 +02:00
|
|
|
|
|
|
|
void getUsersByKeyword(String keyword, AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
2019-07-26 20:14:13 +02:00
|
|
|
void getUserVREList(AsyncCallback<List<UserVRE>> callback);
|
2019-07-22 18:35:12 +02:00
|
|
|
|
2019-07-26 20:14:13 +02:00
|
|
|
void getAllContactsByVRE(UserVRE gGroup, AsyncCallback<List<InfoContactModel>> callback);
|
2014-02-25 14:28:30 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getListUserSharedByFolderSharedId(String folderSharedId, AsyncCallback<List<InfoContactModel>> callback);
|
2014-02-25 15:58:42 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getOwnerByItemId(String itemId, AsyncCallback<InfoContactModel> callback);
|
2014-02-25 15:58:42 +01:00
|
|
|
|
|
|
|
void getACLs(AsyncCallback<List<WorkspaceACL>> callback);
|
|
|
|
|
|
|
|
void getMyLogin(AsyncCallback<String> callback);
|
2014-02-28 12:30:44 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getFileModelByWorkpaceItemId(String itemId, AsyncCallback<FileModel> callback);
|
2014-02-28 12:30:44 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void isSessionExpired(AsyncCallback<Boolean> callback);
|
2014-03-03 16:37:03 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void shareFolder(String id, String name, String description, String parentId, List<InfoContactModel> listContacts,
|
|
|
|
boolean isNewFolder, WorkspaceACL acl, AsyncCallback<Boolean> callback);
|
2014-03-03 16:37:03 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getInfoContactModelsFromCredential(List<CredentialModel> listAlreadySharedContact,
|
|
|
|
AsyncCallback<List<InfoContactModel>> callback);
|
2014-03-03 16:37:03 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getAdministratorsByFolderId(String sharedFolderId, AsyncCallback<List<InfoContactModel>> callback);
|
2014-03-03 16:37:03 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getACLsForSharedFolderId(String itemID, AsyncCallback<WorkspaceACL> asyncCallback);
|
2014-03-03 19:17:26 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getACLsDescriptionForSharedFolderId(String folderId, AsyncCallback<String> callback);
|
2014-03-03 19:17:26 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void unSharedFolderByFolderSharedId(String folderId, AsyncCallback<Boolean> asyncCallback);
|
2014-03-03 19:17:26 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getUserACLForFolderId(String folderId, AsyncCallback<List<ExtendedWorkspaceACL>> callback);
|
2014-03-03 19:17:26 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void getACLsDescriptionForWorkspaceItemById(String workspaceItemId, AsyncCallback<String> callback);
|
2014-08-25 15:29:49 +02:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void accessToFolderLink(String itemId, AsyncCallback<AllowAccess> callback);
|
2014-08-25 15:29:49 +02:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void setACLs(String folderId, List<String> listLogins, String aclType, AsyncCallback<Void> callback);
|
2015-01-28 11:21:10 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void updateACLForVREbyGroupName(String folderId, String aclType, AsyncCallback<Void> callback);
|
2015-01-28 11:21:10 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void validateACLToUser(String folderId, List<String> listLogins, String aclType,
|
|
|
|
AsyncCallback<ReportAssignmentACL> callback);
|
2015-01-28 17:41:11 +01:00
|
|
|
|
2019-02-22 11:14:22 +01:00
|
|
|
void addAdministratorsByFolderId(String itemId, List<String> listContactLogins, AsyncCallback<Boolean> callback);
|
2015-01-28 17:41:11 +01:00
|
|
|
|
2019-07-22 18:35:12 +02:00
|
|
|
|
2014-02-25 14:28:30 +01:00
|
|
|
}
|