added new information to a Feed for distinguish User feed from Application Feed
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@62285 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
465a6ec75d
commit
394971d6bf
|
@ -117,12 +117,15 @@ public class ApplicationNewsManager extends SocialPortalBridge implements NewsMa
|
||||||
|
|
||||||
private Feed buildFeed(String description, String uri, String previewTitle, String previewDescription, String previewThumbnailUrl) {
|
private Feed buildFeed(String description, String uri, String previewTitle, String previewDescription, String previewThumbnailUrl) {
|
||||||
String descToAdd = escapeHtml(description);
|
String descToAdd = escapeHtml(description);
|
||||||
|
|
||||||
|
// String scope = getScopeByOrganizationId(""+aslSession.getGroupId());
|
||||||
|
String scope = "/gcube/devsec/devVRE";
|
||||||
Feed toReturn = new Feed(
|
Feed toReturn = new Feed(
|
||||||
UUID.randomUUID().toString(),
|
UUID.randomUUID().toString(),
|
||||||
FeedType.PUBLISH,
|
FeedType.PUBLISH,
|
||||||
application.getKey(),
|
application.getKey(),
|
||||||
new Date(),
|
new Date(),
|
||||||
getScopeByOrganizationId(""+aslSession.getGroupId()),
|
scope,
|
||||||
uri,
|
uri,
|
||||||
previewThumbnailUrl,
|
previewThumbnailUrl,
|
||||||
descToAdd,
|
descToAdd,
|
||||||
|
@ -132,7 +135,8 @@ public class ApplicationNewsManager extends SocialPortalBridge implements NewsMa
|
||||||
application.getImageUrl(),
|
application.getImageUrl(),
|
||||||
previewTitle,
|
previewTitle,
|
||||||
previewDescription,
|
previewDescription,
|
||||||
"");
|
"",
|
||||||
|
true);
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue