@Controller @RequestMapping(value="/plugin/pathways") public class WikiPathwaysController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
EFFECT_ATTRIBUTE_NAME |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
WikiPathwaysController(WikiPathwaysService wikiPathwaysService) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Pathway> |
getAllPathways()
Retrieves all pathways.
|
String |
getColoredPathway(String selectedVcf,
String pathwayId)
Retrieves a colored pathway.
|
Collection<Pathway> |
getFilteredPathways(String searchTerm)
Searches pathways.
|
Collection<Pathway> |
getListOfPathwayNamesByGenes(String selectedVcf)
Retrieves all pathways for the genes in a vcf.
|
String |
getPathway(String pathwayId)
Retrieves uncolored pathway image.
|
String |
init(org.springframework.ui.Model model)
Shows the start screen.
|
getId, getPluginSettings, getUripublic static final String URI
public static final String EFFECT_ATTRIBUTE_NAME
@Autowired public WikiPathwaysController(WikiPathwaysService wikiPathwaysService)
@RequestMapping(method=GET) public String init(org.springframework.ui.Model model)
model - the Model to fill@RequestMapping(value="/allPathways",
method=POST)
@ResponseBody
public Collection<Pathway> getAllPathways()
throws ExecutionException
Collection of all Pathways.ExecutionException - if load from cache fails@RequestMapping(value="/filteredPathways",
method=POST)
@ResponseBody
public Collection<Pathway> getFilteredPathways(@RequestBody
String searchTerm)
throws RemoteException,
ExecutionException
searchTerm - string to search forCollection of all Pathways found for searchTermRemoteExceptionExecutionException@RequestMapping(value="/pathwayViewer/{pathwayId}",
method=GET)
@ResponseBody
public String getPathway(@PathVariable
String pathwayId)
throws ExecutionException
pathwayId - the id of the pathwayExecutionException - if load from cache fails@RequestMapping(value="/pathwaysByGenes",
method=POST)
@ResponseBody
public Collection<Pathway> getListOfPathwayNamesByGenes(@RequestBody
String selectedVcf)
throws ExecutionException
selectedVcf - the name of the vcf RepositoryCollection of Pathways found for genes in the VCFExecutionException - if the loading from cache fails@RequestMapping(value="/getColoredPathway/{selectedVcf}/{pathwayId}",
method=GET)
@ResponseBody
public String getColoredPathway(@PathVariable
String selectedVcf,
@PathVariable
String pathwayId)
throws ParserConfigurationException,
SAXException,
IOException,
ExecutionException
selectedVcf - name of the VCF RepositorypathwayId - ID of the pathwayImpactParserConfigurationException - if the creation of the DocumentBuilder failsIOException - If any IO errors occur when parsing the GPMLSAXException - If any parse errors occur when parsing the GPMLExecutionException - if the loading of the colored pathway from cache failsCopyright © 2016. All Rights Reserved.