Interface DomainModelService


public interface DomainModelService
An API to retrieve properties from a PersistentEntity
  • Method Details

    • getInputProperties

      List<DomainProperty> getInputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass)
      The list of DomainProperty instances that allow for user input
      Parameters:
      domainClass - The persistent entity
    • getOutputProperties

      List<DomainProperty> getOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass)
      The list of DomainProperty instances that are to be visible
      Parameters:
      domainClass - The persistent entity
    • getListOutputProperties

      List<DomainProperty> getListOutputProperties(org.grails.datastore.mapping.model.PersistentEntity domainClass)
      The list of DomainProperty instances 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 of DomainProperty instances that allow for user input and the closure returns true for
      Parameters:
      domainClass - The persistent entity
      closure - 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 input DomainProperty
      Parameters:
      domainClass - The persistent entity
      closure - The closure that will be executed for each property