Package org.grails.scaffolding.model
Interface DomainModelService
-
public interface DomainModelServiceAn API to retrieve properties from aPersistentEntity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.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 forjava.util.List<DomainProperty>getInputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass)The list ofDomainPropertyinstances that allow for user inputjava.util.List<DomainProperty>getListOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass)The list ofDomainPropertyinstances that are to be visible in a list contextjava.util.List<DomainProperty>getOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass)The list ofDomainPropertyinstances that are to be visiblejava.lang.BooleanhasInputProperty(org.grails.datastore.mapping.model.PersistentEntity domainClass, groovy.lang.Closure closure)Determines if the closure returns true for any inputDomainProperty
-
-
-
Method Detail
-
getInputProperties
java.util.List<DomainProperty> getInputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass)
The list ofDomainPropertyinstances that allow for user input- Parameters:
domainClass- The persistent entity
-
getOutputProperties
java.util.List<DomainProperty> getOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass)
The list ofDomainPropertyinstances that are to be visible- Parameters:
domainClass- The persistent entity
-
getListOutputProperties
java.util.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
java.util.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
java.lang.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
-
-