public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NEWS_FEED_PORTLET_CLASSNAME |
static String |
NO_TEXT_FILE_SHARE |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.portal.databook.shared.ApplicationProfile |
getProfileFromInfrastrucure(String idApp,
String scopeApp)
This method looks up the applicationProfile profile among the ones available in the infrastructure
|
static org.gcube.portal.databook.shared.Feed |
shareApplicationUpdate(String feedText,
String uriParams,
String previewTitle,
String previewDescription,
String httpImageUrl,
org.gcube.portal.databook.shared.ApplicationProfile applicationProfile,
org.gcube.common.authorization.library.AuthorizationEntry ae,
boolean notifyGroup)
Method used when an application needs to publish something.
|
static org.gcube.portal.databook.shared.Feed |
shareUserUpdate(String userId,
String postText,
String vreId,
String previewTitle,
String previewDescription,
String previewHost,
String previewUrl,
String urlThumbnail,
boolean notifyGroup)
Allows user to post a feed in a certain vre.
|
static org.gcube.common.authorization.library.AuthorizationEntry |
validateToken(String token)
Validate token.
|
public static final String NO_TEXT_FILE_SHARE
public static final String NEWS_FEED_PORTLET_CLASSNAME
public static org.gcube.common.authorization.library.AuthorizationEntry validateToken(String token)
token - public static org.gcube.portal.databook.shared.Feed shareApplicationUpdate(String feedText, String uriParams, String previewTitle, String previewDescription, String httpImageUrl, org.gcube.portal.databook.shared.ApplicationProfile applicationProfile, org.gcube.common.authorization.library.AuthorizationEntry ae, boolean notifyGroup)
feedText - uriParams - previewTitle - previewDescription - httpImageUrl - public static org.gcube.portal.databook.shared.ApplicationProfile getProfileFromInfrastrucure(String idApp, String scopeApp)
idApp - as identifier of your application (as reported in the ApplicationProfile)scopeApp - the scope of the applicationpublic static org.gcube.portal.databook.shared.Feed shareUserUpdate(String userId, String postText, String vreId, String previewTitle, String previewDescription, String previewHost, String previewUrl, String urlThumbnail, boolean notifyGroup)
userId - postText - vreId - previewTitle - previewDescription - previewHost - previewUrl - urlThumbnail - notifyGroup - Copyright © 2016. All Rights Reserved.