Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Disable BED file export for proteomics data
Browse files Browse the repository at this point in the history
by default. There is flag to enable it.
  • Loading branch information
Ruslan Forostianov committed Sep 18, 2018
1 parent 8d4845f commit a32ec81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions grails-app/conf/spring/resources.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import org.transmart.spring.QuartzSpringScope

import org.transmartproject.core.users.User
import org.transmartproject.export.HighDimExporter
import org.transmartproject.export.ProteomicsBedExporter
import org.transmartproject.security.AuthSuccessEventListener
import org.transmartproject.security.BadCredentialsEventListener
import org.transmartproject.security.BruteForceLoginLockService
Expand Down Expand Up @@ -72,10 +73,16 @@ beans = {
bean.scope = 'request'
}

boolean enableProteomicsBedExporter = grailsApplication.config.dataExport.bed.proteomics.enabled
context.'component-scan'('base-package': 'org.transmartproject.export') {
context.'include-filter'(
type: 'assignable',
expression: HighDimExporter.canonicalName)
if (!enableProteomicsBedExporter) {
context.'exclude-filter'(
type: 'assignable',
expression: ProteomicsBedExporter.canonicalName)
}
}


Expand Down

0 comments on commit a32ec81

Please sign in to comment.