share-updates/src/main/java/org/gcube/portlets/user/shareupdates/client/ShareUpdateServiceAsync.java

29 lines
1.0 KiB
Java

package org.gcube.portlets.user.shareupdates.client;
import java.util.ArrayList;
import org.gcube.portal.databook.shared.ClientFeed;
import org.gcube.portal.databook.shared.FeedType;
import org.gcube.portal.databook.shared.PrivacyLevel;
import org.gcube.portlets.user.pickuser.shared.PickingUser;
import org.gcube.portlets.user.shareupdates.shared.LinkPreview;
import org.gcube.portlets.user.shareupdates.shared.UserSettings;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
* The async counterpart of <code>ShareUpdateService</code>.
*/
public interface ShareUpdateServiceAsync {
void share(String feedText, FeedType type, PrivacyLevel pLevel,
String vreName, String linkTitle, String linkDesc, String url,
String urlThumbnail, String host, ArrayList<String> mentionedUsers,
AsyncCallback<ClientFeed> callback);
void checkLink(String linkToCheck, AsyncCallback<LinkPreview> callback);
void getUserSettings(AsyncCallback<UserSettings> callback);
void getPortalUsers(AsyncCallback<ArrayList<PickingUser>> callback);
}