Class RestWappService

  • All Implemented Interfaces:
    WappService

    public class RestWappService
    extends java.lang.Object
    implements WappService
    Manages Wapps on a user
    • Constructor Summary

      Constructors 
      Constructor Description
      RestWappService​(RestSession session)
      Instantiate the Wapp service with a user session
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<Wapp> fetchAllFromStore()
      Fetches all Wapps from the store
      java.util.Collection<java.lang.String> fetchInstalled()
      Fetch all Wapps installed on the user.
      void install​(java.lang.String name)
      Install a Wapp by name on the logged-in user
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestWappService

        public RestWappService​(RestSession session)
        Instantiate the Wapp service with a user session
        Parameters:
        session - user session
    • Method Detail

      • install

        public void install​(java.lang.String name)
                     throws java.lang.Exception
        Install a Wapp by name on the logged-in user
        Specified by:
        install in interface WappService
        Parameters:
        name - Name of wapp
        Throws:
        java.lang.Exception
      • fetchInstalled

        public java.util.Collection<java.lang.String> fetchInstalled()
                                                              throws java.lang.Exception
        Fetch all Wapps installed on the user. Currently, not much useful info from the response gets deserialized into POJO
        Specified by:
        fetchInstalled in interface WappService
        Returns:
        List of installed Wapp UUID's
        Throws:
        java.lang.Exception
      • fetchAllFromStore

        public java.util.Collection<Wapp> fetchAllFromStore()
                                                     throws java.lang.Exception
        Fetches all Wapps from the store
        Specified by:
        fetchAllFromStore in interface WappService
        Returns:
        Collection of all wapps
        Throws:
        java.lang.Exception