Ignore:
Timestamp:
Jan 20, 2011, 6:13:33 PM (9 years ago)
Author:
work@…
Message:
  • fixed importer issue with the authentication service not being available in static scope
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/importer/ImporterService.groovy

    r1417 r1421  
    3131
    3232class ImporterService {
    33         def AuthenticationService
     33        def authenticationService
    3434
    3535        boolean transactional = true
     
    276276         * @param datamatrix two dimensional array containing entities with values read from Excel file
    277277         */
    278         static saveDatamatrix(Study study, datamatrix) {
     278        static saveDatamatrix(Study study, datamatrix, authenticationService) {
    279279                def validatedSuccesfully = 0
    280280                def entitystored = null
     
    288288                                switch (entity.getClass()) {
    289289                                        case Study: println "Persisting Study `" + entity + "`: "
    290                                                 entity.owner = AuthenticationService.getLoggedInUser()
     290                                                entity.owner = authenticationService.getLoggedInUser()
    291291                                                persistEntity(entity)
    292292                                                break
Note: See TracChangeset for help on using the changeset viewer.