- Timestamp:
- Apr 5, 2011, 4:08:13 PM (11 years ago)
- Location:
- trunk/grails-app/conf
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BaseFilters.groovy
r26 r36 20 20 import org.codehaus.groovy.grails.commons.ConfigurationHolder 21 21 22 import nl.tno.m etagenomics.auth.User;23 import nl.tno.m etagenomics.integration.*;22 import nl.tno.massSequencing.auth.User; 23 import nl.tno.massSequencing.integration.*; 24 24 25 25 class BaseFilters { … … 116 116 117 117 // First check if the user is authenticated. If he isn't, he should provide credentials at GSCF 118 def authentication = JSON.parse("${ConfigurationHolder.config.gscf.baseURL}/rest/isUser?consumer=${ConfigurationHolder.config.m etagenomics.consumerID}&token=${session.sessionToken}".toURL().text)118 def authentication = JSON.parse("${ConfigurationHolder.config.gscf.baseURL}/rest/isUser?consumer=${ConfigurationHolder.config.massSequencing.consumerID}&token=${session.sessionToken}".toURL().text) 119 119 120 120 if( !authentication.authenticated ) { … … 125 125 126 126 // Now find the user data 127 JSON.parse("${ConfigurationHolder.config.gscf.baseURL}/rest/getUser?consumer=${ConfigurationHolder.config.m etagenomics.consumerID}&token=${session.sessionToken}".toURL().text).each { userProperty ->127 JSON.parse("${ConfigurationHolder.config.gscf.baseURL}/rest/getUser?consumer=${ConfigurationHolder.config.massSequencing.consumerID}&token=${session.sessionToken}".toURL().text).each { userProperty -> 128 128 user["${userProperty.key}"] = "${userProperty.value}" 129 129 } -
trunk/grails-app/conf/BootStrap.groovy
r22 r36 1 import nl.tno.m etagenomics.auth.*;1 import nl.tno.massSequencing.auth.*; 2 2 3 3 class BootStrap { -
trunk/grails-app/conf/Config.groovy
r24 r36 26 26 27 27 // Whether to synchronize with gscf or not. By default, synchronization is turned on 28 m etagenomics.synchronization = true28 massSequencing.synchronization = true 29 29 30 30 // By default, Metagenomics only fetches studies that have been changed by GSCF. GSCF sends … … 35 35 // between two consecutive full synchronizations. Setting it to zero disables full synchronization, but 36 36 // is strongly discouraged. 37 m etagenomics.fullSynchronization = 24 * 3600 // 1 day37 massSequencing.fullSynchronization = 24 * 3600 // 1 day 38 38 39 39 // Temporary directory to upload files to. … … 41 41 // Otherwise, it should be given as an absolute path (e.g. '/home/user/sequences') 42 42 // The directory should be writable by the webserver user 43 m etagenomics.fileUploadDir = "fileuploads/temp"43 massSequencing.fileUploadDir = "fileuploads/temp" 44 44 45 45 // Maximum age that uploaded files should be kept on the server before deleting them. When a user uploads a file, … … 47 47 // remain in the upload directory. This mechanism ensures that the upload directory is cleaned after some time. 48 48 // The time is given in seconds. 49 m etagenomics.fileUploadMaxAge = 2 * 24 * 3600 // 2 days49 massSequencing.fileUploadMaxAge = 2 * 24 * 3600 // 2 days 50 50 51 51 // Directory to save the uploaded files permanently … … 53 53 // Otherwise, it should be given as an absolute path (e.g. '/home/user/sequences') 54 54 // The directory should be writable by the webserver user 55 m etagenomics.fileDir = "fileuploads/permanent"55 massSequencing.fileDir = "fileuploads/permanent" 56 56 57 57 // Filename of the (.fna, .qual and .oligos) files that are exported 58 58 // Only the part before the extension is mentioned. If you enter "sequences", the exported files will be 59 59 // sequences.fna, sequences.qual and sequences.oligos 60 m etagenomics.exportFilename = "1.TCA.454Reads"60 massSequencing.exportFilename = "1.TCA.454Reads" 61 61 62 62 // Path in GSCF that is used after baseURL for adding a new study -
trunk/grails-app/conf/config-dbnptest.properties
r24 r36 6 6 7 7 # server URL 8 grails.serverURL=http://test.m etagenomics.dbnp.org8 grails.serverURL=http://test.massSequencing.dbnp.org 9 9 10 10 # DATABASE … … 19 19 # GSCF configuration - in order to synchronize correctly 20 20 gscf.baseURL=http://test.dbnp.org 21 m etagenomics.consumerID=http://test.metagenomics.dbnp.org22 m etagenomics.synchronization = true21 massSequencing.consumerID=http://test.massSequencing.dbnp.org 22 massSequencing.synchronization = true 23 23 24 24 # File uploads 25 m etagenomics.fileUploadDir=/tmp/metagenomics/temp26 m etagenomics.fileDir=/tmp/metagenomics/permanent25 massSequencing.fileUploadDir=/tmp/metagenomics/temp 26 massSequencing.fileDir=/tmp/metagenomics/permanent 27 27 28 28 # Filename of the (.fna, .qual and .oligos) files that are exported 29 m etagenomics.exportFilename=1.TCA.454Reads29 massSequencing.exportFilename=1.TCA.454Reads -
trunk/grails-app/conf/config-development.properties
r24 r36 6 6 7 7 # server URL 8 grails.serverURL=http://localhost:8184/m etagenomics8 grails.serverURL=http://localhost:8184/massSequencing 9 9 grails.server.port.http=8184 10 10 … … 19 19 # GSCF configuration - in order to synchronize correctly 20 20 gscf.baseURL=http://localhost:8080/gscf 21 m etagenomics.consumerID=http://localhost:8184/metagenomics22 m etagenomics.synchronization = true21 massSequencing.consumerID=http://localhost:8184/massSequencing 22 massSequencing.synchronization = true 23 23 24 24 # File uploads 25 m etagenomics.fileUploadDir=fileuploads/temp26 m etagenomics.fileDir=fileuploads/permanent25 massSequencing.fileUploadDir=fileuploads/temp 26 massSequencing.fileDir=fileuploads/permanent 27 27 28 28 # Filename of the (.fna, .qual and .oligos) files that are exported 29 m etagenomics.exportFilename=1.TCA.454Reads29 massSequencing.exportFilename=1.TCA.454Reads -
trunk/grails-app/conf/config-test.properties
r7 r36 6 6 7 7 # server URL 8 grails.serverURL=http://localhost:9431/m etagenomics8 grails.serverURL=http://localhost:9431/massSequencing 9 9 10 10 # DATABASE … … 18 18 # GSCF configuration - in order to synchronize correctly 19 19 gscf.baseURL=http://localhost:9432 20 m etagenomics.consumerID=http://localhost:9431/metagenomics21 m etagenomics.synchronization = true20 massSequencing.consumerID=http://localhost:9431/massSequencing 21 massSequencing.synchronization = true 22 22 23 23 # File uploads 24 m etagenomics.fileUploadDir=/tmp/temp25 m etagenomics.fileDir=/tmp/permanent24 massSequencing.fileUploadDir=/tmp/temp 25 massSequencing.fileDir=/tmp/permanent
Note: See TracChangeset
for help on using the changeset viewer.