Package org.grails.scaffolding.model
Interface DomainModelService
public interface DomainModelService
An API to retrieve properties from a
PersistentEntity-
Method Summary
Modifier and TypeMethodDescriptionfindInputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass, groovy.lang.Closure closure) The list ofDomainPropertyinstances that allow for user input and the closure returns true forgetInputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass) The list ofDomainPropertyinstances that allow for user inputgetListOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass) The list ofDomainPropertyinstances that are to be visible in a list contextgetOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass) The list ofDomainPropertyinstances that are to be visiblehasInputProperty(org.grails.datastore.mapping.model.PersistentEntity domainClass, groovy.lang.Closure closure) Determines if the closure returns true for any inputDomainProperty
-
Method Details
-
getInputProperties
List<DomainProperty> getInputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass) The list ofDomainPropertyinstances that allow for user input- Parameters:
domainClass- The persistent entity
-
getOutputProperties
List<DomainProperty> getOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass) The list ofDomainPropertyinstances that are to be visible- Parameters:
domainClass- The persistent entity
-
getListOutputProperties
List<DomainProperty> getListOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass) The list ofDomainPropertyinstances that are to be visible in a list context- Parameters:
domainClass- The persistent entity
-
findInputProperties
List<DomainProperty> findInputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass, groovy.lang.Closure closure) The list ofDomainPropertyinstances that allow for user input and the closure returns true for- Parameters:
domainClass- The persistent entityclosure- The closure that will be executed for each editable property
-
hasInputProperty
Boolean hasInputProperty(org.grails.datastore.mapping.model.PersistentEntity domainClass, groovy.lang.Closure closure) Determines if the closure returns true for any inputDomainProperty- Parameters:
domainClass- The persistent entityclosure- The closure that will be executed for each property
-