Changeset 2181


Ignore:
Timestamp:
Mar 27, 2012, 2:38:46 PM (9 years ago)
Author:
work@…
Message:
  • adding initial version of the API controller (which external applications can use to interface with gscf)
Location:
trunk
Files:
12 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/application.properties

    r2177 r2181  
    22#Wed Feb 29 14:35:23 CET 2012
    33app.build.display.info=1
    4 app.build.svn.revision=1079
     4app.build.svn.revision=2180
    55app.build.timestamp=1288881462
    66app.build.type=dev
  • trunk/grails-app/conf/Config.groovy

    r2180 r2181  
    115115grails.plugins.springsecurity.filterChain.chainMap = [
    116116        '/rest/hello': 'JOINED_FILTERS,-exceptionTranslationFilter',
     117    '/api/authenticate': 'JOINED_FILTERS,-exceptionTranslationFilter',
    117118        '/**': 'JOINED_FILTERS,-basicAuthenticationFilter,-basicExceptionTranslationFilter'
    118119]
  • trunk/grails-app/domain/dbnp/studycapturing/Event.groovy

    r2147 r2181  
    121121
    122122        def String toString() {
    123                 return fieldExists('Description') ? getFieldValue('Description') : ""
     123                return fieldExists('Description') ?
     124               getFieldValue('Description') :
     125                "start: " + getStartTimeString() + ", duration: " + getRoundedDuration()
    124126        }
    125127}
  • trunk/grails-app/domain/dbnp/studycapturing/SamplingEvent.groovy

    r1457 r2181  
    9494
    9595        def String toString() {
    96                 return fieldExists('Description') ? getFieldValue('Description') : ""
     96        return fieldExists('Description') ?
     97            getFieldValue('Description') :
     98            "start: " + getStartTimeString()
    9799        }
    98100       
Note: See TracChangeset for help on using the changeset viewer.