Class SocialPortalBridge

    • Field Detail

      • currScope

        protected String currScope
      • currGroupName

        protected String currGroupName
      • applicationProfile

        protected org.gcube.portal.databook.shared.ApplicationProfile applicationProfile
    • Constructor Detail

      • SocialPortalBridge

        public SocialPortalBridge​(String scope,
                                  SocialNetworkingUser currUser,
                                  String portletClassName)
        Parameters:
        scope - the current scope
        currUser - an instance of SocialNetworkingUser filled with the required user data
        portletClassName - 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