- Timestamp:
- Apr 27, 2010, 3:53:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy
r384 r386 349 349 350 350 /** 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 /** 351 359 * Return all templated fields defined in the underlying template of this entity 352 360 */ 353 def List<TemplateField> give Fields() {361 def List<TemplateField> giveTemplateFields() { 354 362 return this.template.fields; 355 363 } 356 364 357 def List<TemplateField> giveSystemFields() {358 return systemFields;359 }360 361 362 365 /** 363 366 * 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 365 369 */ 366 abstract Map giveDomainFields() 370 abstract List<DomainTemplateField> giveDomainFields() 371 367 372 /*def giveDomainFields() { 368 373 def fieldSet = [:];
Note: See TracChangeset
for help on using the changeset viewer.