Package wappsto.api.rest.wapps
Class RestWappService
- java.lang.Object
-
- wappsto.api.rest.wapps.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 storejava.util.Collection<java.lang.String>fetchInstalled()Fetch all Wapps installed on the user.voidinstall(java.lang.String name)Install a Wapp by name on the logged-in user
-
-
-
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.ExceptionInstall a Wapp by name on the logged-in user- Specified by:
installin interfaceWappService- Parameters:
name- Name of wapp- Throws:
java.lang.Exception
-
fetchInstalled
public java.util.Collection<java.lang.String> fetchInstalled() throws java.lang.ExceptionFetch all Wapps installed on the user. Currently, not much useful info from the response gets deserialized into POJO- Specified by:
fetchInstalledin interfaceWappService- 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:
fetchAllFromStorein interfaceWappService- Returns:
- Collection of all wapps
- Throws:
java.lang.Exception
-
-