public class HarvestHistoryTableHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BYTES_HARVESTED_FIELD |
static String |
CONFIGURATION_NAME_FIELD |
static String |
DOCUMENTS_HARVESTED_FIELD |
static String |
HARVEST_NAME_FIELD |
static String |
HARVEST_NUMBER_FIELD |
static String |
JOB_ID_FIELD |
static String |
START_TIME_FIELD |
static String |
STOP_TIME_FIELD |
static String |
STOPPED_DUE_TO_FIELD |
Constructor and Description |
---|
HarvestHistoryTableHelper(String domainNameParameter,
String sortFieldParameter,
String sortOrderParameter,
String pageIndexParameter) |
Modifier and Type | Method and Description |
---|---|
String |
generateParameterStringForPaging() |
long |
getEndIndex() |
long |
getNumberOfResults() |
String |
getOrderAfterClick(String sortField)
Calculates the reverse sort order for this file.
|
String |
getOrderArrow(String sortField)
Calculates the sort order arrow for the headers of a sortable table
|
int |
getPageIndex() |
long |
getStartIndex() |
boolean |
isNextPageAvailable() |
boolean |
isPreviousPageAvailable() |
List<DomainHarvestInfo> |
listCurrentPageHarvestHistory() |
public static final String HARVEST_NAME_FIELD
public static final String HARVEST_NUMBER_FIELD
public static final String JOB_ID_FIELD
public static final String CONFIGURATION_NAME_FIELD
public static final String START_TIME_FIELD
public static final String STOP_TIME_FIELD
public static final String BYTES_HARVESTED_FIELD
public static final String DOCUMENTS_HARVESTED_FIELD
public static final String STOPPED_DUE_TO_FIELD
public HarvestHistoryTableHelper(String domainNameParameter, String sortFieldParameter, String sortOrderParameter, String pageIndexParameter)
public List<DomainHarvestInfo> listCurrentPageHarvestHistory()
public long getStartIndex()
DomainHarvestInfo
objects for this domain for the selected sorting.public long getEndIndex()
DomainHarvestInfo
objects for this domain for the selected sorting.public int getPageIndex()
public long getNumberOfResults()
DomainHarvestInfo
objects in the db for this domain.public boolean isNextPageAvailable()
true
if the next page is available, else false
public boolean isPreviousPageAvailable()
true
if the previous page is available, else false
public String generateParameterStringForPaging()
public String getOrderArrow(String sortField)
sortField
- The sort field to find a arrow for.public String getOrderAfterClick(String sortField)
sortField
- The sort field to find a new order for.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.