Interface DomainModelService


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

      • getInputProperties

        java.util.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

        java.util.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

        java.util.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

        java.util.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

        java.lang.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