Class SocialPortalBridge
- java.lang.Object
-
- org.gcube.applicationsupportlayer.social.SocialPortalBridge
-
- Direct Known Subclasses:
ApplicationNewsManager,ApplicationNotificationsManager
public class SocialPortalBridge extends Object
- Author:
- Massimiliano Assante, ISTI-CNR superclass for notifications, posting news and so on
-
-
Field Summary
Fields Modifier and Type Field Description protected org.gcube.portal.databook.shared.ApplicationProfileapplicationProfileprotected StringcurrGroupNameprotected StringcurrScopeprotected SocialNetworkingUsercurrUser
-
Constructor Summary
Constructors Constructor Description SocialPortalBridge(String scope, SocialNetworkingUser currUser)SocialPortalBridge(String scope, SocialNetworkingUser currUser, String portletClassName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringescapeHtml(String html)Escape an html string.org.gcube.portal.databook.shared.ApplicationProfilegetApplicationProfile()static org.gcube.portal.databook.server.DatabookStoregetStoreInstance()
-
-
-
Field Detail
-
currScope
protected String currScope
-
currGroupName
protected String currGroupName
-
currUser
protected SocialNetworkingUser currUser
-
applicationProfile
protected org.gcube.portal.databook.shared.ApplicationProfile applicationProfile
-
-
Constructor Detail
-
SocialPortalBridge
public SocialPortalBridge(String scope, SocialNetworkingUser currUser)
- Parameters:
scope- the current scopecurrUser- an instance ofSocialNetworkingUserfilled with the required user data
-
SocialPortalBridge
public SocialPortalBridge(String scope, SocialNetworkingUser currUser, String portletClassName)
- Parameters:
scope- the current scopecurrUser- an instance ofSocialNetworkingUserfilled with the required user dataportletClassName- your application unique identifier registered in the infrastructure
-
-
Method Detail
-
getStoreInstance
public static org.gcube.portal.databook.server.DatabookStore getStoreInstance()
- Returns:
- the unique instance of the store
-
escapeHtml
protected String escapeHtml(String html)
Escape an html string. Escaping data received from the client helps to prevent cross-site script vulnerabilities.- Parameters:
html- the html string to escape- Returns:
- the escaped string
-
getApplicationProfile
public org.gcube.portal.databook.shared.ApplicationProfile getApplicationProfile()
- Returns:
- the applicationProfile profile among the ones available in the infrastructure
-
-