Class NewsFeed

  • All Implemented Interfaces:
    com.google.gwt.core.client.EntryPoint

    public class NewsFeed
    extends Object
    implements com.google.gwt.core.client.EntryPoint
    Author:
    Massimiliano Assante, CNR-ISTI This class uses Liferay's Client-side+Inter-Portlet-Communication for displaying post created in the Share Updates portlet
    • Constructor Detail

      • NewsFeed

        public NewsFeed()
    • Method Detail

      • onModuleLoad

        public void onModuleLoad()
        Specified by:
        onModuleLoad in interface com.google.gwt.core.client.EntryPoint
      • injectLiferayIPCEventReceiver

        public static void injectLiferayIPCEventReceiver()
        this is a JSNI method that injects the Liferay Javascript function listening for events from ShareUpdates
      • exportReceiveEventJavascriptFunction

        public static void exportReceiveEventJavascriptFunction()
        this is a JSNI method mapping the Javascript function handleReceiveEvent to the Java method handleReceiveEvent
      • handleReceiveEvent

        public static void handleReceiveEvent​(String jsonizedClientPostInstance)
        the Java method handleReceiveEvent
        Parameters:
        jsonizedClientPostInstance - the jsonized ClientPost sent by ShareUpdates