Ignore:
Timestamp:
Feb 24, 2010, 4:01:05 PM (10 years ago)
Author:
gav
Message:

Move CsvService to AssetCsvService in preparation for other CSV services.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/AssetCsvService.groovy

    r409 r414  
    77 * Requires the opencsv jar to be available which is included in the grails-export plugin.
    88 */
    9 class CsvService {
     9class AssetCsvService {
    1010
    1111    boolean transactional = false
     
    3636
    3737            if(!multiPartFile || multiPartFile.isEmpty())
    38                 return fail(code: "asset.tree.import.file.not.supplied")
     38                return fail(code: "default.file.not.supplied")
    3939
    4040            if (multiPartFile.getSize() > fileMaxSize)
    41                 return fail(code: "asset.tree.import.file.over.max.size", args: [fileMaxSize/kByteMultiplier, "kB"])
     41                return fail(code: "default.file.over.max.size", args: [fileMaxSize/kByteMultiplier, "kB"])
    4242
    4343            def columnIndex = 0
     
    5555                log.error "Required: " + templateHeaderLine1.toString()
    5656                log.error "Supplied: " + line.toString()
    57                 return fail(code: "asset.tree.import.no.header")
     57                return fail(code: "default.file.no.header")
    5858            }
    5959
     
    6767                log.error "Required: " + templateHeaderLine2.toString()
    6868                log.error "Supplied: " + line.toString()
    69                 return fail(code: "asset.tree.import.no.header")
     69                return fail(code: "default.file.no.header")
    7070            }
    7171
Note: See TracChangeset for help on using the changeset viewer.