@Controller
@RequestMapping(value="/plugin/dataexplorer")
public class DataExplorerController
extends org.molgenis.web.PluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
MOD_DATA |
static String |
MOD_ENTITIESREPORT |
static String |
NAVIGATOR |
static String |
URI |
| Constructor and Description |
|---|
DataExplorerController() |
| Modifier and Type | Method and Description |
|---|---|
void |
download(String dataRequestStr,
javax.servlet.http.HttpServletResponse response) |
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.
|
List<NavigatorLink> |
getNavigatorLinks(String entityTypeId) |
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_ENTITIESREPORT
public static final String MOD_DATA
public static final String NAVIGATOR
@GetMapping public String init(@RequestParam(value="entity",required=false) String selectedEntityName, @RequestParam(value="entityId",required=false) String selectedEntityId, org.springframework.ui.Model model)
@GetMapping(value="/module/{moduleId}")
public String getModule(@PathVariable(value="moduleId")
String moduleId,
@RequestParam(value="entity")
String entityTypeId,
org.springframework.ui.Model model)
@GetMapping(value="/copy")
@ResponseBody
public boolean showCopy(@RequestParam(value="entity")
String entityTypeId)
@GetMapping(value="/modules") @ResponseBody public ModulesConfigResponse getModules(@RequestParam(value="entity") String entityTypeId)
@GetMapping(value="/navigatorLinks") @ResponseBody public List<NavigatorLink> getNavigatorLinks(@RequestParam(value="entity") String entityTypeId)
@PostMapping(value="/download")
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)
@PostMapping(value="/details") public String viewEntityDetails(@RequestParam(value="entityTypeId") String entityTypeId, @RequestParam(value="entityId") String entityId, org.springframework.ui.Model model)
Exception - if an entity name or id is not found@GetMapping(value="/details/{entityTypeId}/{entityId}")
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 existCopyright © 2018 Pivotal Software, Inc.. All rights reserved.