Last change
on this file since 6813 was
6813,
checked in by davor.ostojic@oeaw.ac.at, 9 years ago
|
#795 VLO web-app generates unnecessary requests. The idea behind is to fire SOLR query only when selection is changed.
|
-
Property svn:mime-type set to
text/plain
|
File size:
639 bytes
|
Line | |
---|
1 | package eu.clarin.cmdi.vlo.wicket.model; |
---|
2 | |
---|
3 | import java.util.List; |
---|
4 | |
---|
5 | import org.apache.solr.client.solrj.response.FacetField; |
---|
6 | import org.apache.wicket.model.AbstractReadOnlyModel; |
---|
7 | import org.apache.wicket.model.IModel; |
---|
8 | |
---|
9 | import eu.clarin.cmdi.vlo.pojo.QueryFacetsSelection; |
---|
10 | import eu.clarin.cmdi.vlo.service.solr.FacetFieldsService; |
---|
11 | |
---|
12 | public class FacetNamesModel extends AbstractReadOnlyModel<List<String>>{ |
---|
13 | |
---|
14 | private final List<String> facets; |
---|
15 | |
---|
16 | |
---|
17 | public FacetNamesModel(List<String> facets) { |
---|
18 | this.facets = facets; |
---|
19 | } |
---|
20 | |
---|
21 | @Override |
---|
22 | public List<String> getObject() { |
---|
23 | return facets; |
---|
24 | } |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.