65 lines
1.8 KiB
Java
65 lines
1.8 KiB
Java
package org.gcube.portlets.widgets.workspacesharingwidget.client.rpc;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.FileModel;
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.InfoContactModel;
|
|
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
|
|
{
|
|
|
|
/**
|
|
* GWT-RPC service asynchronous (client-side) interface
|
|
* @see org.gcube.portlets.widgets.workspacesharingwidget.client.rpc.WorkspaceSharingService
|
|
*/
|
|
void greetServer( java.lang.String name, AsyncCallback<java.lang.String> callback );
|
|
|
|
|
|
/**
|
|
* Utility class to get the RPC Async interface from client-side code
|
|
*/
|
|
public static final class Util
|
|
{
|
|
private static WorkspaceSharingServiceAsync instance;
|
|
|
|
public static final WorkspaceSharingServiceAsync getInstance()
|
|
{
|
|
if ( instance == null )
|
|
{
|
|
instance = (WorkspaceSharingServiceAsync) GWT.create( WorkspaceSharingService.class );
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
private Util()
|
|
{
|
|
// Utility class should not be instanciated
|
|
}
|
|
}
|
|
|
|
|
|
void getAllContacts(AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
|
void getListUserSharedByFolderSharedId(String folderSharedId,
|
|
AsyncCallback<List<InfoContactModel>> callback);
|
|
|
|
|
|
void getOwnerByItemId(String itemId,
|
|
AsyncCallback<InfoContactModel> callback);
|
|
|
|
|
|
void getACLs(AsyncCallback<List<WorkspaceACL>> callback);
|
|
|
|
|
|
void getMyLogin(AsyncCallback<String> callback);
|
|
|
|
|
|
void getFileModelByWorkpaceItemId(String itemId,
|
|
AsyncCallback<FileModel> callback);
|
|
}
|