Class DataExplorerController
- java.lang.Object
-
- org.molgenis.web.PluginController
-
- org.molgenis.dataexplorer.controller.DataExplorerController
-
@Controller @RequestMapping("/plugin/dataexplorer") public class DataExplorerController extends org.molgenis.web.PluginControllerController class for the data explorer.
-
-
Constructor Summary
Constructors Constructor Description DataExplorerController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownload(String dataRequestStr, javax.servlet.http.HttpServletResponse response)StringgetDownloadFilename(String entityTypeId, LocalDateTime localDateTime, DataRequest.DownloadType downloadType)StringgetModule(String moduleId, String entityTypeId, org.springframework.ui.Model model)ModulesConfigResponsegetModules(String entityTypeId)Returns modules configuration for this entity based on current user permissions.List<NavigatorLink>getNavigatorLinks(String entityTypeId)Stringinit(String selectedEntityName, String selectedEntityId, org.springframework.ui.Model model)Show the explorer pagebooleanshowCopy(String entityTypeId)StringviewEntityDetails(String entityTypeId, String entityId, org.springframework.ui.Model model)Builds a model containing one entity and returns the entityReport ftl viewStringviewEntityDetailsById(String entityTypeId, String entityId, org.springframework.ui.Model model)Builds a model containing one entity and returns standalone report ftl view
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
URI
public static final String URI
- See Also:
- Constant Field Values
-
MOD_ENTITIESREPORT
public static final String MOD_ENTITIESREPORT
- See Also:
- Constant Field Values
-
MOD_DATA
public static final String MOD_DATA
- See Also:
- Constant Field Values
-
NAVIGATOR
public static final String NAVIGATOR
- See Also:
- Constant Field Values
-
VIEW_NAME
public static final String VIEW_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@GetMapping public String init(@RequestParam(value="entity",required=false) String selectedEntityName, @RequestParam(value="entityId",required=false) String selectedEntityId, org.springframework.ui.Model model)
Show the explorer page- Returns:
- the view name
-
getModule
@GetMapping("/module/{moduleId}") public String getModule(@PathVariable("moduleId") String moduleId, @RequestParam("entity") String entityTypeId, org.springframework.ui.Model model)
-
showCopy
@GetMapping("/copy") @ResponseBody public boolean showCopy(@RequestParam("entity") String entityTypeId)
-
getModules
@GetMapping("/modules") @ResponseBody public ModulesConfigResponse getModules(@RequestParam("entity") String entityTypeId)Returns modules configuration for this entity based on current user permissions.
-
getNavigatorLinks
@GetMapping("/navigatorLinks") @ResponseBody public List<NavigatorLink> getNavigatorLinks(@RequestParam("entity") String entityTypeId)
-
download
@PostMapping("/download") public void download(@RequestParam("dataRequest") String dataRequestStr, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
getDownloadFilename
public String getDownloadFilename(String entityTypeId, LocalDateTime localDateTime, DataRequest.DownloadType downloadType)
-
viewEntityDetails
@PostMapping("/details") public String viewEntityDetails(@RequestParam("entityTypeId") String entityTypeId, @RequestParam("entityId") String entityId, org.springframework.ui.Model model)Builds a model containing one entity and returns the entityReport ftl view- Returns:
- entity report view
- Throws:
Exception- if an entity name or id is not found
-
viewEntityDetailsById
@GetMapping("/details/{entityTypeId}/{entityId}") public String viewEntityDetailsById(@PathVariable("entityTypeId") String entityTypeId, @PathVariable("entityId") String entityId, org.springframework.ui.Model model)Builds a model containing one entity and returns standalone report ftl view- Returns:
- standalone report view
- Throws:
Exception- if an entity name or id is not foundorg.molgenis.data.MolgenisDataAccessException- if an EntityType does not exist
-
-