use of ubic.gemma.model.genome.gene.GeneSetValueObject in project Gemma by PavlidisLab.
the class SearchResultDisplayObject method setValues.
/**
* this method does not set the publik variable for the returned object (cannot autowire security service from here)
*
* @param searchResult search result
*/
private void setValues(SearchResult searchResult) {
// if it's a search result, grab the underlying object
Class<?> searchResultClass = searchResult.getResultClass();
// class-specific construction
if (searchResult.getResultObject() instanceof GeneValueObject) {
GeneValueObject gene = (GeneValueObject) searchResult.getResultObject();
this.setValues(gene);
} else if (searchResult.getResultObject() instanceof Gene) {
Gene gene = (Gene) searchResult.getResultObject();
this.setValues(gene);
} else if (searchResult.getResultObject() instanceof GeneSetValueObject) {
GeneSetValueObject geneSet = (GeneSetValueObject) searchResult.getResultObject();
this.setValues(geneSet);
} else if (searchResult.getResultObject() instanceof ExpressionExperimentValueObject) {
ExpressionExperimentValueObject ee = (ExpressionExperimentValueObject) searchResult.getResultObject();
this.setValues(ee);
} else if (searchResult.getResultObject() instanceof ExpressionExperimentSetValueObject) {
ExpressionExperimentSetValueObject eeSet = (ExpressionExperimentSetValueObject) searchResult.getResultObject();
this.setValues(eeSet);
} else {
this.isGroup = false;
this.size = -1;
this.taxonId = (long) -1;
this.taxonName = "unknown";
this.name = "Unhandled type";
this.description = "Unhandled result type: " + searchResultClass;
this.memberIds = null;
}
}
use of ubic.gemma.model.genome.gene.GeneSetValueObject in project Gemma by PavlidisLab.
the class GeneSetController method showGeneSet.
/**
* If the current user has access to given gene group will return the gene ids in the gene group;
*
* @param request request
* @return model and view
*/
@RequestMapping(value = "/showGeneSet.html", method = RequestMethod.GET)
public ModelAndView showGeneSet(HttpServletRequest request) {
ModelAndView mav = new ModelAndView("geneSet.detail");
GeneSetValueObject geneSet = this.getGeneSetFromRequest(request);
mav.addObject("geneSetId", geneSet.getId());
mav.addObject("geneSetName", geneSet.getName());
return mav;
}
Aggregations