Ignore:
Timestamp:
Apr 20, 2011, 4:53:22 PM (9 years ago)
Author:
robert@…
Message:

Implemented export possibility and bugfixes

Location:
trunk/grails-app/services/nl/tno/massSequencing
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/nl/tno/massSequencing/SampleExcelService.groovy

    r52 r53  
    397397       
    398398        protected String prepare( def object, def fieldName ) {
    399                 if( object.isNull( fieldName ) )
     399                if( !object || object.isNull( fieldName ) )
    400400                        return "";
    401401               
  • trunk/grails-app/services/nl/tno/massSequencing/files/FileService.groovy

    r52 r53  
    297297         * @return
    298298         */
    299         private File absolutePath( String pathname ) {
     299        public File absolutePath( String pathname ) {
    300300                if( pathname == null)
    301                 return null
     301                        return null
    302302
    303303                // Check if this is an absolute path
  • trunk/grails-app/services/nl/tno/massSequencing/integration/GscfService.groovy

    r52 r53  
    8080         */
    8181        public Map getUser(String sessionToken) throws Exception {
    82                 def user = [:]
     82                // Add isAdministrator: false as default, in order to be able to handle old versions of GSCF
     83                // that don't provide this information
     84                def user = [ isAdministrator: false ]
    8385                try {
    8486                        this.callGSCF(sessionToken, "getUser").each {
     
    8991                        e.printStackTrace();
    9092                        return null
    91                         throw new Exception( "Retrieving user details from GSCF failed", e );
     93                        //throw new Exception( "Retrieving user details from GSCF failed", e );
    9294                }
    9395        }
Note: See TracChangeset for help on using the changeset viewer.