2013-01-26 20:02:51 +01:00
|
|
|
package org.gcube.portlets.user.shareupdates.client;
|
|
|
|
|
2013-04-16 23:49:16 +02:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2013-01-26 20:02:51 +01:00
|
|
|
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.shareupdates.shared.LinkPreview;
|
2018-03-18 17:49:46 +01:00
|
|
|
import org.gcube.portlets.user.shareupdates.shared.MentionedDTO;
|
2016-01-15 18:24:52 +01:00
|
|
|
import org.gcube.portlets.user.shareupdates.shared.UploadedFile;
|
2013-04-11 18:46:58 +02:00
|
|
|
import org.gcube.portlets.user.shareupdates.shared.UserSettings;
|
2014-10-02 19:47:15 +02:00
|
|
|
import org.gcube.portlets.widgets.pickitem.shared.ItemBean;
|
2013-01-26 20:02:51 +01:00
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The client side stub for the RPC service.
|
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("shareupdateServlet")
|
|
|
|
public interface ShareUpdateService extends RemoteService {
|
2014-01-30 16:39:42 +01:00
|
|
|
|
2018-03-18 17:49:46 +01:00
|
|
|
ClientFeed sharePostWithLinkPreview
|
|
|
|
(String feedText, FeedType type, PrivacyLevel pLevel, Long vreOrgId, LinkPreview preview,
|
|
|
|
String urlThumbnail, ArrayList<MentionedDTO> mentionedUsers, boolean notifyGroup);
|
2016-01-15 18:24:52 +01:00
|
|
|
|
2018-03-18 17:49:46 +01:00
|
|
|
ClientFeed sharePostWithAttachments
|
|
|
|
(String feedText, FeedType type, PrivacyLevel pLevel, Long vreOrgId,ArrayList<UploadedFile> uploadedFiles,
|
|
|
|
ArrayList<MentionedDTO> mentionedUsers, boolean notifyGroup, boolean saveCopyWokspace);
|
2013-01-26 20:02:51 +01:00
|
|
|
|
2013-04-11 18:46:58 +02:00
|
|
|
UserSettings getUserSettings();
|
2013-01-26 20:02:51 +01:00
|
|
|
|
|
|
|
LinkPreview checkLink(String linkToCheck);
|
2013-04-16 23:49:16 +02:00
|
|
|
|
2014-01-17 19:21:35 +01:00
|
|
|
LinkPreview checkUploadedFile(String fileName, String fileabsolutePathOnServer);
|
|
|
|
|
2016-05-25 15:05:07 +02:00
|
|
|
ArrayList<ItemBean> getPortalItemBeans();
|
2014-10-02 19:47:15 +02:00
|
|
|
|
|
|
|
ArrayList<ItemBean> getHashtags();
|
2013-01-26 20:02:51 +01:00
|
|
|
}
|