Font Size:
Ask Joget AI

MarketplaceUtil

Description

  • org.joget.apps.app.service.MarketplaceUtil
  • Under wflow-core module
  • Utility class to retrieve the Joget marketplace product list.

Code Sample

import org.joget.apps.app.service.MarketplaceUtil;

return MarketplaceUtil.getList("", "", "", null, "Joget Intelligence", null, null, null, null).toString(4);

Methods

getList

public static JSONArray getList(String search,String type, String category, Boolean isNew, String sort, Boolean desc, Integer start, Integer rows)

Retrieve marketplace product list.

 

getTemplateOptions

public static Map<String,String> getTemplateOptions()

Get all available templates as options.

 

downloadTemplate

public static byte[] downloadTemplate(String id)

Download template from marketplace by on app id.

 

pluginClassToMarketplaceLink

public static List<String> pluginClassToMarketplaceLink(List<String> plugins)

Return the marketplace plugin name & url based on class name.

 

update

public static void update()

Update the cache by calling the market api.

 

sort

protected static List<JSONObject> sort(List<JSONObject> data, String sort, boolean desc)

Sort the list.

 

subList

protected static List<JSONObject> subList(List<JSONObject> data, Integer start, Integer rows)

Paging the data.

 

readInputStream

protected static byte[] readInputStream(InputStream in) throws IOException

Reads a specified InputStream, returning its contents in a byte array.

Created by Debanraj Ravindran Last modified by Debanraj Ravindran on Apr 24, 2026