Class DataExplorerController


  • @Controller
    @RequestMapping("/plugin/dataexplorer")
    public class DataExplorerController
    extends org.molgenis.web.PluginController
    Controller class for the data explorer.
    • Constructor Detail

      • DataExplorerController

        public DataExplorerController()
    • 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
      • 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 found
        org.molgenis.data.MolgenisDataAccessException - if an EntityType does not exist