git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@148842 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2017-05-18 10:58:56 +00:00
parent 4a4dd65967
commit e3a7220a95
3 changed files with 6 additions and 5 deletions

View File

@ -2,6 +2,7 @@
<Changeset component="org.gcube.portlets-user.shareupdates.2-4-0"
date="2017-05-03">
<Change>Ported to Java8</Change>
<Change>Fix for bug #7630</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.shareupdates.2-3-1"
date="2017-04-12">

View File

@ -539,7 +539,7 @@ public class ShareUpdateForm extends Composite {
linkPreviewer = null;
}
public void onSuccess(ClientFeed feed) {
public void onSuccess(ClientFeed post) {
enableSubmitButtons(true);
shareTextArea.setEnabled(true);
shareTextArea.setText(SHARE_UPDATE_TEXT);
@ -547,13 +547,13 @@ public class ShareUpdateForm extends Composite {
preview.clear();
linkPreviewer = null;
if (feed == null)
if (post == null)
Window.alert("Ops! we encountered some problems delivering your message, please try again in a short while.");
else {
// publish a message with the refresh notification
try {
pageBusAdapter.PageBusPublish("org.gcube.portal.databook.shared", feed, (Jsonizer)GWT.create(ClientFeedJsonizer.class));
pageBusAdapter.PageBusPublish("org.gcube.portal.databook.shared", post, (Jsonizer)GWT.create(ClientFeedJsonizer.class));
} catch (PageBusAdapterException ex) {
GWT.log(ex.getMessage());

View File

@ -210,7 +210,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
//everything went fine
ClientFeed cf = new ClientFeed(toShare.getKey(), toShare.getType().toString(), username, feedDate, toShare.getUri(),
TextTransfromUtils.replaceAmpersand(toShare.getDescription()), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
toShare.getDescription(), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
toShare.getUriThumbnail(), toShare.getLinkHost(), null);
@ -385,7 +385,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
//everything went fine
ClientFeed cf = new ClientFeed(toShare.getKey(), toShare.getType().toString(), username, feedDate, toShare.getUri(),
TextTransfromUtils.replaceAmpersand(toShare.getDescription()), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
toShare.getDescription(), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
toShare.getUriThumbnail(), toShare.getLinkHost(), attachments);