package org.gcube.portlets.widgets.workspacesharingwidget.client.rpc; import java.util.List; import org.gcube.portlets.widgets.workspacesharingwidget.shared.AllowAccess; import org.gcube.portlets.widgets.workspacesharingwidget.shared.CredentialModel; import org.gcube.portlets.widgets.workspacesharingwidget.shared.ExtendedWorkspaceACL; import org.gcube.portlets.widgets.workspacesharingwidget.shared.FileModel; import org.gcube.portlets.widgets.workspacesharingwidget.shared.InfoContactModel; import org.gcube.portlets.widgets.workspacesharingwidget.shared.ReportAssignmentACL; import org.gcube.portlets.widgets.workspacesharingwidget.shared.WorkspaceACL; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; public interface WorkspaceSharingServiceAsync { public static WorkspaceSharingServiceAsync INSTANCE = (WorkspaceSharingServiceAsync) GWT .create(WorkspaceSharingService.class); void getAllContacts(AsyncCallback> callback); void getListUserSharedByFolderSharedId(String folderSharedId, AsyncCallback> callback); void getOwnerByItemId(String itemId, AsyncCallback callback); void getACLs(AsyncCallback> callback); void getMyLogin(AsyncCallback callback); void getFileModelByWorkpaceItemId(String itemId, AsyncCallback callback); void isSessionExpired(AsyncCallback callback); void shareFolder(String id, String name, String description, String parentId, List listContacts, boolean isNewFolder, WorkspaceACL acl, AsyncCallback callback); void getInfoContactModelsFromCredential(List listAlreadySharedContact, AsyncCallback> callback); void getAdministratorsByFolderId(String sharedFolderId, AsyncCallback> callback); void getACLsForSharedFolderId(String itemID, AsyncCallback asyncCallback); void getACLsDescriptionForSharedFolderId(String folderId, AsyncCallback callback); void unSharedFolderByFolderSharedId(String folderId, AsyncCallback asyncCallback); void getUserACLForFolderId(String folderId, AsyncCallback> callback); void getACLsDescriptionForWorkspaceItemById(String workspaceItemId, AsyncCallback callback); void accessToFolderLink(String itemId, AsyncCallback callback); void setACLs(String folderId, List listLogins, String aclType, AsyncCallback callback); void updateACLForVREbyGroupName(String folderId, String aclType, AsyncCallback callback); void validateACLToUser(String folderId, List listLogins, String aclType, AsyncCallback callback); void addAdministratorsByFolderId(String itemId, List listContactLogins, AsyncCallback callback); }