Ignore:
Timestamp:
Feb 16, 2011, 2:24:56 PM (12 years ago)
Author:
robert@…
Message:

Implemented improved authorization (#16)
Built in select all checkboxes (#25)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/nl/tno/metagenomics/integration/SynchronizationService.groovy

    r13 r14  
    6767                        }
    6868                }
     69               
     70                // Append other parameters
     71                returnUrl += "?" + params.collect {
     72                        if( it.key != "controller" && it.key != "action" && it.key != "id" )
     73                                return it.key.toString().encodeAsURL() + "=" + it.value.toString().encodeAsURL();
     74                        else
     75                                return ""
     76                }.findAll { it }.join( "&" );
     77               
    6978                if( timeForFullSynchronization() ) {
    7079                        return ConfigurationHolder.config.grails.serverURL + "/synchronize/full?redirect=" + returnUrl.encodeAsURL()
     
    91100         * @return      ArrayList       List of studies or null if the synchronization has failed
    92101         */
    93         public ArrayList<Study> synchronizeStudies() throws NotAuthenticatedException, Exception {
     102        public ArrayList<Study> synchronizeStudies() throws BadRequestException, NotAuthenticatedException, NotAuthorizedException, ResourceNotFoundException, Exception {
    94103                if( !performSynchronization() )
    95104                        return Study.findAllWhereTrashcan(false)
     
    140149                        // synchronizing and return null
    141150                        log.error( "Exception occurred when fetching studies: " + e.getMessage() )
    142                         throw new Exception( "Error while fetching studies", e)
     151                        throw e
    143152                }
    144153
Note: See TracChangeset for help on using the changeset viewer.