Commits

rob  committed b81f0d6

Removed unused XMLImport service

  • Participants
  • Parent commits c387bc0

Comments (0)

Files changed (1)

File grails-app/services/ImportXMLService.groovy

-import grails.converters.XML
-import java.io.FileInputStream
-
-class ImportXMLService {
-
-    boolean transactional = false
-
-    def importFirmService
-    def importClientService
-    def importProjectService
-    
-    def importTodoListsService
-    def importTimeEntryService
-
-    def importFromFile(String pathAndFilename) {
-
-       def accountXML = XML.parse(new FileInputStream(pathAndFilename), "UTF-8")
-
-       def ts = new Date(); println "Start at $ts"
-       
-       log.info "Importing Firm";      importFirmService.importXML(accountXML.firm)
-       log.info "Importing Clients";   importClientService.importXML(accountXML.clients)
-       log.info "Importing Projects";  importProjectService.importXML(accountXML.projects)
-
-       log.info "Importing TodoLists"; importTodoListsService.importXML(accountXML.projects)
-       log.info "Importing TimeEntry"; importTimeEntryService.importXML(accountXML.projects)
-
-       def te = new Date(); println "End at $te"
-    }
-}