use of uk.ac.ebi.spot.goci.model.Housekeeping in project goci by EBISPOT.
the class StudyOperationsService method assignStudyCurator.
/**
* Assign curator to a study
*/
public void assignStudyCurator(Study study, Assignee assignee, SecureUser user) {
Long curatorId = assignee.getCuratorId();
Curator curator = curatorRepository.findOne(curatorId);
// Set new curator on the study housekeeping
Housekeeping housekeeping = study.getHousekeeping();
housekeeping.setCurator(curator);
housekeepingOperationsService.saveHousekeeping(study, housekeeping);
// Add event
recordStudyCuratorChange(study, user, curator);
}
Aggregations