Class IndividualListResults
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.controller.individuallist.IndividualListResults
-
public class IndividualListResults extends Object
These are the paged results of a query for Individuals. The criteria for the search are the index of the desired page, the number of results displayed on each page, and an optional initial letter to search against. By the time this is built, the results have already been partially processed. A list of PageRecord object is included, with values that the GUI can use to create Alphabetical links. Maybe this processing should have been done later. Maybe it should have been left to the GUI.
-
-
Field Summary
Fields Modifier and Type Field Description static IndividualListResultsEMPTY
-
Constructor Summary
Constructors Constructor Description IndividualListResults(long totalCount, List<Individual> entities, String alpha, boolean showPages, List<IndividualListController.PageRecord> pages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asFreemarkerMap()Some controllers put this data directly into the Freemarker body map.StringgetAlpha()List<Individual>getEntities()List<IndividualListController.PageRecord>getPages()longgetTotalCount()booleanisShowPages()
-
-
-
Field Detail
-
EMPTY
public static final IndividualListResults EMPTY
-
-
Constructor Detail
-
IndividualListResults
public IndividualListResults(long totalCount, List<Individual> entities, String alpha, boolean showPages, List<IndividualListController.PageRecord> pages)
-
-
Method Detail
-
getTotalCount
public long getTotalCount()
-
getAlpha
public String getAlpha()
-
getEntities
public List<Individual> getEntities()
-
getPages
public List<IndividualListController.PageRecord> getPages()
-
isShowPages
public boolean isShowPages()
-
-