source: trunk/grails-app/controllers/nl/tno/metagenomics/StudyController.groovy @ 3

Last change on this file since 3 was 3, checked in by robert@…, 9 years ago

Externalized configuration; improved assay view (detail views of runs and samples); implemented uploading and parsing of FASTA and QUAL files

File size: 650 bytes
Line 
1package nl.tno.metagenomics
2
3class StudyController {
4        def synchronizationService
5        def gscfService
6        def fileService
7       
8        def index = {
9                // Synchronize all studies
10                synchronizationService.sessionToken = session.sessionToken
11                synchronizationService.user = session.user
12
13                synchronizationService.synchronizeStudies()
14               
15                // Clean the upload directory
16                fileService.cleanDirectory();
17               
18                // Filter studies for the ones the user is allowed to see
19                def studies = Study.findAll();
20                [studies: studies.findAll { it.canRead( session.user ) }, gscfAddUrl: gscfService.urlAddStudy(), lastSynchronized: synchronizationService.lastFullSynchronization ] 
21        }
22
23}
Note: See TracBrowser for help on using the repository browser.