@Controller
@RequestMapping(value="/plugin/dataexplorer")
@SessionAttributes(value={"galaxyUrl","galaxyApiKey"})
public class DataExplorerController
extends org.molgenis.web.PluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
MOD_ANNOTATORS |
static String |
MOD_DATA |
static String |
MOD_ENTITIESREPORT |
static String |
URI |
| 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 |
getDownloadFilename(String entityTypeId,
LocalDateTime localDateTime,
DataRequest.DownloadType downloadType) |
String |
getModule(String moduleId,
String entityTypeId,
org.springframework.ui.Model model) |
ModulesConfigResponse |
getModules(String entityTypeId)
Returns modules configuration for this entity based on current user permissions.
|
ErrorMessageResponse |
handleGalaxyDataExportException(GalaxyDataExportException e) |
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
String |
init(String selectedEntityName,
String selectedEntityId,
org.springframework.ui.Model model)
Show the explorer page
|
boolean |
showCopy(String entityTypeId) |
String |
viewEntityDetails(String entityTypeId,
String entityId,
org.springframework.ui.Model model)
Builds a model containing one entity and returns the entityReport ftl view
|
String |
viewEntityDetailsById(String entityTypeId,
String entityId,
org.springframework.ui.Model model)
Builds a model containing one entity and returns standalone report ftl view
|
public static final String ID
public static final String URI
public static final String MOD_ANNOTATORS
public static final String MOD_ENTITIESREPORT
public static final String MOD_DATA
@RequestMapping(method=GET) public String init(@RequestParam(value="entity",required=false) String selectedEntityName, @RequestParam(value="entityId",required=false) String selectedEntityId, org.springframework.ui.Model model) throws Exception
Exception@RequestMapping(value="/module/{moduleId}",
method=GET)
public String getModule(@PathVariable(value="moduleId")
String moduleId,
@RequestParam(value="entity")
String entityTypeId,
org.springframework.ui.Model model)
@RequestMapping(value="/copy",
method=GET)
@ResponseBody
public boolean showCopy(@RequestParam(value="entity")
String entityTypeId)
@RequestMapping(value="/modules",
method=GET)
@ResponseBody
public ModulesConfigResponse getModules(@RequestParam(value="entity")
String entityTypeId)
@RequestMapping(value="/download",
method=POST)
public void download(@RequestParam(value="dataRequest")
String dataRequestStr,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic String getDownloadFilename(String entityTypeId, LocalDateTime localDateTime, DataRequest.DownloadType downloadType)
@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="entityTypeId")
String entityTypeId,
@RequestParam(value="entityId")
String entityId,
org.springframework.ui.Model model)
throws Exception
Exception - if an entity name or id is not found@RequestMapping(value="/details/{entityTypeId}/{entityId}",
method=GET)
public String viewEntityDetailsById(@PathVariable(value="entityTypeId")
String entityTypeId,
@PathVariable(value="entityId")
String entityId,
org.springframework.ui.Model model)
throws Exception
Exception - if an entity name or id is not foundMolgenisDataAccessException - if an EntityType does not exist@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 © 2017. All rights reserved.