@Controller
@RequestMapping(value="/plugin/dataexplorer")
@SessionAttributes(value={"galaxyUrl","galaxyApiKey"})
public class DataExplorerController
extends MolgenisPluginController
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
DataExplorerController() |
| Modifier and Type | Method and Description |
|---|---|
AggregateResult |
aggregate(AggregateRequest request) |
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.
|
Map<String,String> |
getSettings(String keyStartsWith) |
ErrorMessageResponse |
handleGalaxyDataExportException(GalaxyDataExportException e) |
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
String |
init(String selectedEntityName,
String searchTerm,
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, getUripublic static final String ID
public static final String URI
public static final String KEY_MOD_AGGREGATES
public static final String KEY_MOD_ANNOTATORS
public static final String KEY_MOD_CHARTS
public static final String KEY_MOD_DATA
public static final String KEY_MOD_DISEASEMATCHER
public static final String KEY_GALAXY_ENABLED
public static final String KEY_GALAXY_URL
public static final String KEY_SHOW_WIZARD_ONINIT
public static final String KEY_HEADER_ABBREVIATE
public static final String KEY_HIDE_SEARCH_BOX
public static final String KEY_HIDE_ITEM_SELECTION
public static final String KEY_MOD_AGGREGATES_DISTINCT_HIDE
public static final String KEY_MOD_AGGREGATES_DISTINCT_OVERRIDE
public static final String KEY_MOD_ENTITIESREPORT
public static final boolean DEFAULT_VAL_SHOW_WIZARD_ONINIT
public static final boolean DEFAULT_VAL_AGGREGATES_DISTINCT_HIDE
public static final String DEFAULT_VAL_HEADER_ABBREVIATE
public static final String DEFAULT_AGGREGATES_NORESULTS_MESSAGE
public static final String INITLOCATION
public static final String COORDSYSTEM
public static final String CHAINS
public static final String SOURCES
public static final String BROWSERLINKS
public static final String AGGREGATES_NORESULTS_MESSAGE
public static final String HIGHLIGHTREGION
public static final String KEY_DATAEXPLORER_EDITABLE
public static final String KEY_DATAEXPLORER_ROW_CLICKABLE
@RequestMapping(method=GET) public String init(@RequestParam(value="entity",required=false) String selectedEntityName, @RequestParam(value="searchTerm",required=false) String searchTerm, 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="/aggregate",
method=POST,
produces="application/json",
consumes="application/json")
@ResponseBody
public AggregateResult aggregate(@RequestBody
AggregateRequest request)
@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@RequestMapping(value="/settings",
method=GET)
@ResponseBody
public Map<String,String> getSettings(@RequestParam(required=false)
String keyStartsWith)
@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.