@Controller
@RequestMapping(value="/plugin/dataexplorer")
@SessionAttributes(value={"galaxyUrl","galaxyApiKey"})
public class DataExplorerController
extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
DataExplorerController() |
| Modifier and Type | Method and Description |
|---|---|
void |
download(String dataRequestStr,
javax.servlet.http.HttpServletResponse response) |
void |
exportToGalaxy(GalaxyDataExportRequest galaxyDataExportRequest,
org.springframework.ui.Model model) |
String |
getModule(String moduleId,
String entityName,
org.springframework.ui.Model model) |
ModulesConfigResponse |
getModules(String entityName)
Returns modules configuration for this entity based on current user permissions.
|
ErrorMessageResponse |
handleGalaxyDataExportException(GalaxyDataExportException e) |
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
String |
init(String selectedEntityName,
org.springframework.ui.Model model)
Show the explorer page
|
String |
viewEntityDetails(String entityName,
String entityId,
org.springframework.ui.Model model)
Builds a model containing one entity and returns the entityReport ftl view
|
getId, getPluginSettings, getUripublic static final String ID
public static final String URI
@RequestMapping(method=GET) public String init(@RequestParam(value="entity",required=false) String selectedEntityName, org.springframework.ui.Model model) throws Exception
model - Exception@RequestMapping(value="/module/{moduleId}",
method=GET)
public String getModule(@PathVariable(value="moduleId")
String moduleId,
@RequestParam(value="entity")
String entityName,
org.springframework.ui.Model model)
@RequestMapping(value="/modules",
method=GET)
@ResponseBody
public ModulesConfigResponse getModules(@RequestParam(value="entity")
String entityName)
entityName - @RequestMapping(value="/download",
method=POST)
public void download(@RequestParam(value="dataRequest")
String dataRequestStr,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException@RequestMapping(value="/galaxy/export",
method=POST)
@ResponseStatus(value=OK)
public void exportToGalaxy(@RequestBody
GalaxyDataExportRequest galaxyDataExportRequest,
org.springframework.ui.Model model)
throws IOException
IOException@RequestMapping(value="/details",
method=POST)
public String viewEntityDetails(@RequestParam(value="entityName")
String entityName,
@RequestParam(value="entityId")
String entityId,
org.springframework.ui.Model model)
throws Exception
entityName - entityId - model - Exception - if an entity name or id is not found@ExceptionHandler(value=GalaxyDataExportException.class) @ResponseBody @ResponseStatus(value=BAD_REQUEST) public ErrorMessageResponse handleGalaxyDataExportException(GalaxyDataExportException e)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2015. All Rights Reserved.