org.jminor.framework.client.model
Class DefaultPropertySearchModelProvider

java.lang.Object
  extended by org.jminor.framework.client.model.DefaultPropertySearchModelProvider
All Implemented Interfaces:
PropertySearchModelProvider

public class DefaultPropertySearchModelProvider
extends Object
implements PropertySearchModelProvider

A default PropertySearchModelProvider implementation.


Constructor Summary
DefaultPropertySearchModelProvider()
           
 
Method Summary
 PropertySearchModel<? extends Property.SearchableProperty> initializePropertySearchModel(Property.SearchableProperty property, EntityConnectionProvider connectionProvider)
          Initializes a PropertySearchModel for the given property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPropertySearchModelProvider

public DefaultPropertySearchModelProvider()
Method Detail

initializePropertySearchModel

public PropertySearchModel<? extends Property.SearchableProperty> initializePropertySearchModel(Property.SearchableProperty property,
                                                                                                EntityConnectionProvider connectionProvider)
Initializes a PropertySearchModel for the given property

Specified by:
initializePropertySearchModel in interface PropertySearchModelProvider
Parameters:
property - the Property for which to create a PropertySearchModel
connectionProvider - the EntityConnectionProvider instance to use in case the property is a ForeignKeyProperty
Returns:
a PropertySearchModel for the given property, null if this property is not searchable or if searching should not be allowed for this property