public class ModelSelectionProviderSupport extends Object implements SelectionProviderSupport
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.Multimap<List<String>,ModelSelectionProvider> |
availableSelectionProviders |
static String |
copyright |
protected CrudAction |
crudAction |
protected List<CrudSelectionProvider> |
crudSelectionProviders |
static org.slf4j.Logger |
logger |
protected Persistence |
persistence |
| Constructor and Description |
|---|
ModelSelectionProviderSupport(CrudAction crudAction,
Persistence persistence) |
public static final String copyright
public static final org.slf4j.Logger logger
protected final CrudAction crudAction
protected final Persistence persistence
protected List<CrudSelectionProvider> crudSelectionProviders
protected final com.google.common.collect.Multimap<List<String>,ModelSelectionProvider> availableSelectionProviders
public ModelSelectionProviderSupport(CrudAction crudAction, Persistence persistence)
public void setup()
setup in interface SelectionProviderSupportprotected boolean setupSelectionProvider(@Nullable
SelectionProviderReference ref,
DatabaseSelectionProvider current,
Set<String> configuredSPs)
protected SelectionProvider createSelectionProvider(DatabaseSelectionProvider current, String[] fieldNames, Class[] fieldTypes, DisplayMode dm, SearchDisplayMode sdm, String newHref, String newText)
public List<CrudSelectionProvider> getCrudSelectionProviders()
getCrudSelectionProviders in interface SelectionProviderSupportpublic void disableSelectionProvider(List<String> key)
disableSelectionProvider in interface SelectionProviderSupportpublic void configureSelectionProvider(List<String> key, String name, DisplayMode displayMode, SearchDisplayMode searchDisplayMode, String createNewHref, String createNewText)
configureSelectionProvider in interface SelectionProviderSupportpublic void clearSelectionProviders()
clearSelectionProviders in interface SelectionProviderSupportprotected SelectionProviderReference makeSelectionProviderReference(ModelSelectionProvider dsp)
public Map<List<String>,Collection<String>> getAvailableSelectionProviderNames()
getAvailableSelectionProviderNames in interface SelectionProviderSupportprotected CrudProperty findProperty(String name, List<CrudProperty> properties)
protected DefaultSelectionProvider createSelectionProvider(DatabaseSelectionProvider current, String[] fieldNames, Class[] fieldTypes, DisplayMode dm, SearchDisplayMode sdm)
protected void putInQueryCache(DatabaseSelectionProvider sp, QueryStringWithParameters queryWithParameters, Collection objects)
protected Collection getFromQueryCache(DatabaseSelectionProvider sp, QueryStringWithParameters queryWithParameters)