Class ExpressionExperimentSetController
java.lang.Object
ubic.gemma.web.controller.expression.experiment.ExpressionExperimentSetController
@Controller
@RequestMapping("/expressionExperimentSet")
public class ExpressionExperimentSetController
extends Object
For fetching and manipulating ExpressionExperimentSets. Methods take collections to be compatible with Store
interfaces.
- Author:
- paul
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Log
protected org.springframework.context.MessageSource
protected MessageUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSessionGroup
(SessionBoundExpressionExperimentSetValueObject eesvo, Boolean modificationBased) AJAX adds the Expression Experiment group to the sessionaddSessionGroups
(Collection<SessionBoundExpressionExperimentSetValueObject> eeSetVos, Boolean modificationBased) Deprecated.AJAX adds the experiment group to the sessionAJAX returns a JSON string encoding whether the current user owns the group and whether the group is db-backedcreate
(Collection<ExpressionExperimentSetValueObject> entities) getExperimentsInSet
(Long groupId, Integer limit) AJAXloadAll()
AJAX returns all available sets that have a taxon value (so not really all) sets can have *any* number of experimentsAJAXAJAXAJAXloadByName
(String name) remove
(Collection<ExpressionExperimentSetValueObject> entities) AJAX Given a valid experiment group will remove it from the session.AJAX Given valid experiment groups will remove them from the session or the database appropriately.org.springframework.web.servlet.ModelAndView
update
(Collection<ExpressionExperimentSetValueObject> entities) updateMembers
(Long groupId, Collection<Long> eeIds) AJAX Updates the given group (permission permitting) with the given list of memberIds.AJAX Updates the database record for the param experiment set value object (permission permitting) with the value object's name and description.AJAX Updates the session group.AJAX Updates the session group and user database groups.
-
Field Details
-
log
protected final org.apache.commons.logging.Log log -
messageSource
@Autowired protected org.springframework.context.MessageSource messageSource -
messageUtil
-
-
Constructor Details
-
ExpressionExperimentSetController
public ExpressionExperimentSetController()
-
-
Method Details
-
addSessionGroups
@Deprecated public Collection<SessionBoundExpressionExperimentSetValueObject> addSessionGroups(Collection<SessionBoundExpressionExperimentSetValueObject> eeSetVos, Boolean modificationBased) Deprecated.AJAX adds the Expression Experiment group to the session- Parameters:
eeSetVos
- value object constructed on the client.modificationBased
- whether the set was modified by the user- Returns:
- collection of added session groups (with updated reference.id etc)
-
addSessionGroup
public SessionBoundExpressionExperimentSetValueObject addSessionGroup(SessionBoundExpressionExperimentSetValueObject eesvo, Boolean modificationBased) AJAX adds the Expression Experiment group to the session -
addUserAndSessionGroups
public Collection<ExpressionExperimentSetValueObject> addUserAndSessionGroups(Collection<ExpressionExperimentSetValueObject> sets) AJAX adds the experiment group to the session- Returns:
- the new gene groups
-
canCurrentUserEditGroup
AJAX returns a JSON string encoding whether the current user owns the group and whether the group is db-backed -
create
public Collection<ExpressionExperimentSetValueObject> create(Collection<ExpressionExperimentSetValueObject> entities) -
getExperimentIdsInSet
-
getExperimentsInSet
public Collection<ExpressionExperimentDetailsValueObject> getExperimentsInSet(Long groupId, Integer limit) - Parameters:
limit
- to return only up to a given number of experiments, e.g. for a preview of the set.
-
load
AJAX- Parameters:
id
- of the set- Returns:
- the ExpressionExperimentSetValueObject for the id param
- Throws:
IllegalArgumentException
- if the id param is nullorg.springframework.security.access.AccessDeniedException
- if the id param is not null but the loading function returns a null value
-
loadAll
AJAX returns all available sets that have a taxon value (so not really all) sets can have *any* number of experiments- Returns:
- all available sets that have a taxon value
-
loadAllSessionGroups
AJAX- Returns:
- all available session backed sets
-
loadAllUserAndSessionGroups
AJAX- Returns:
- all available sets from db and also session backed sets
-
loadAllUserOwnedAndSessionGroups
AJAX- Returns:
- all available sets that have a taxon value from db and also session backed sets
-
loadByName
-
remove
public Collection<ExpressionExperimentSetValueObject> remove(Collection<ExpressionExperimentSetValueObject> entities) - Returns:
- the entities which were removed.
-
removeSessionGroups
public Collection<SessionBoundExpressionExperimentSetValueObject> removeSessionGroups(Collection<SessionBoundExpressionExperimentSetValueObject> vos) AJAX Given a valid experiment group will remove it from the session. -
removeUserAndSessionGroups
public Collection<ExpressionExperimentSetValueObject> removeUserAndSessionGroups(Collection<ExpressionExperimentSetValueObject> vos) AJAX Given valid experiment groups will remove them from the session or the database appropriately. -
showExpressionExperimentSet
@RequestMapping(value="/showExpressionExperimentSet.html", method={GET,HEAD}) public org.springframework.web.servlet.ModelAndView showExpressionExperimentSet(@RequestParam("id") Long id) -
update
public Collection<ExpressionExperimentSetValueObject> update(Collection<ExpressionExperimentSetValueObject> entities) - Returns:
- the entities which were updated (even if they weren't actually updated)
-
updateMembers
AJAX Updates the given group (permission permitting) with the given list of memberIds. Will not allow the same experiment to be added to the set twice. Will not update name or description, just members.- Parameters:
groupId
- id of the gene set being updated- Returns:
- error message or null if no errors
-
updateNameDesc
public ExpressionExperimentSetValueObject updateNameDesc(ExpressionExperimentSetValueObject eeSetVO) AJAX Updates the database record for the param experiment set value object (permission permitting) with the value object's name and description.- Parameters:
eeSetVO
- the value object that represents the database record to update- Returns:
- a value object for the updated set
-
updateSessionGroups
public Collection<SessionBoundExpressionExperimentSetValueObject> updateSessionGroups(Collection<SessionBoundExpressionExperimentSetValueObject> vos) AJAX Updates the session group. -
updateUserAndSessionGroups
public Collection<ExpressionExperimentSetValueObject> updateUserAndSessionGroups(Collection<ExpressionExperimentSetValueObject> vos) AJAX Updates the session group and user database groups.
-