Ignore:
Timestamp:
Apr 27, 2010, 3:53:06 PM (9 years ago)
Author:
roberth
Message:

Updated the template entities to be able to return domain fields, template fields and both.
Rolled back the change of Kees in the Event object, so the startTime and endTime fields returned.
Also updated the studies list with a new layout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy

    r384 r386  
    349349
    350350        /**
     351        * Return all fields defined in the underlying template and the built-in
     352        * domain fields of this entity
     353        */
     354        def List<TemplateField> giveFields() {
     355                return this.giveDomainFields() + this.giveTemplateFields();
     356        }
     357
     358        /**
    351359        * Return all templated fields defined in the underlying template of this entity
    352360        */
    353         def List<TemplateField> giveFields() {
     361        def List<TemplateField> giveTemplateFields() {
    354362                return this.template.fields;
    355363        }
    356364
    357         def List<TemplateField> giveSystemFields() {
    358                 return systemFields;
    359         }
    360        
    361 
    362365        /**
    363366         * Return all relevant 'built-in' domain fields of the super class
    364          * @return key-value pairs describing the built-in fields, with the names as keys and type (as TemplateFieldType) as values
     367         * @return List with DomainTemplateFields
     368         * @see DomainTemplateField
    365369         */
    366         abstract Map giveDomainFields()
     370        abstract List<DomainTemplateField> giveDomainFields()
     371
    367372        /*def giveDomainFields() {
    368373                def fieldSet = [:];
Note: See TracChangeset for help on using the changeset viewer.