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(java.lang.String dataRequestStr, javax.servlet.http.HttpServletResponse response)java.lang.StringgetDownloadFilename(java.lang.String entityTypeId, java.time.LocalDateTime localDateTime, DataRequest.DownloadType downloadType)java.lang.StringgetModule(java.lang.String moduleId, java.lang.String entityTypeId, org.springframework.ui.Model model)ModulesConfigResponsegetModules(java.lang.String entityTypeId)Returns modules configuration for this entity based on current user permissions.java.util.List<NavigatorLink>getNavigatorLinks(java.lang.String entityTypeId)java.lang.Stringinit(java.lang.String selectedEntityName, java.lang.String selectedEntityId, org.springframework.ui.Model model)Show the explorer pagebooleanshowCopy(java.lang.String entityTypeId)java.lang.StringviewEntityDetails(java.lang.String entityTypeId, java.lang.String entityId, org.springframework.ui.Model model)Builds a model containing one entity and returns the entityReport ftl viewjava.lang.StringviewEntityDetailsById(java.lang.String entityTypeId, java.lang.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 java.lang.String ID
- See Also:
- Constant Field Values
-
URI
public static final java.lang.String URI
- See Also:
- Constant Field Values
-
MOD_ENTITIESREPORT
public static final java.lang.String MOD_ENTITIESREPORT
- See Also:
- Constant Field Values
-
MOD_DATA
public static final java.lang.String MOD_DATA
- See Also:
- Constant Field Values
-
NAVIGATOR
public static final java.lang.String NAVIGATOR
- See Also:
- Constant Field Values
-
VIEW_NAME
public static final java.lang.String VIEW_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@Transactional(readOnly=true) @GetMapping public java.lang.String init(@RequestParam(value="entity",required=false) java.lang.String selectedEntityName, @RequestParam(value="entityId",required=false) java.lang.String selectedEntityId, org.springframework.ui.Model model)Show the explorer page- Returns:
- the view name
-
getModule
@GetMapping("/module/{moduleId}") public java.lang.String getModule(@PathVariable("moduleId") java.lang.String moduleId, @RequestParam("entity") java.lang.String entityTypeId, org.springframework.ui.Model model)
-
showCopy
@GetMapping("/copy") @ResponseBody public boolean showCopy(@RequestParam("entity") java.lang.String entityTypeId)
-
getModules
@GetMapping("/modules") @ResponseBody public ModulesConfigResponse getModules(@RequestParam("entity") java.lang.String entityTypeId)Returns modules configuration for this entity based on current user permissions.
-
getNavigatorLinks
@GetMapping("/navigatorLinks") @ResponseBody public java.util.List<NavigatorLink> getNavigatorLinks(@RequestParam("entity") java.lang.String entityTypeId)
-
download
@PostMapping("/download") public void download(@RequestParam("dataRequest") java.lang.String dataRequestStr, javax.servlet.http.HttpServletResponse response) throws java.io.IOException- Throws:
java.io.IOException
-
getDownloadFilename
public java.lang.String getDownloadFilename(java.lang.String entityTypeId, java.time.LocalDateTime localDateTime, DataRequest.DownloadType downloadType)
-
viewEntityDetails
@PostMapping("/details") public java.lang.String viewEntityDetails(@RequestParam("entityTypeId") java.lang.String entityTypeId, @RequestParam("entityId") java.lang.String entityId, org.springframework.ui.Model model)Builds a model containing one entity and returns the entityReport ftl view- Returns:
- entity report view
- Throws:
java.lang.Exception- if an entity name or id is not found
-
viewEntityDetailsById
@GetMapping("/details/{entityTypeId}/{entityId}") public java.lang.String viewEntityDetailsById(@PathVariable("entityTypeId") java.lang.String entityTypeId, @PathVariable("entityId") java.lang.String entityId, org.springframework.ui.Model model)Builds a model containing one entity and returns standalone report ftl view- Returns:
- standalone report view
- Throws:
java.lang.Exception- if an entity name or id is not foundorg.molgenis.data.MolgenisDataAccessException- if an EntityType does not exist
-
-