public class SearchController extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
currentPage |
static com.google.gwt.event.shared.EventBus |
eventBus |
protected SearchController |
instance |
protected boolean |
isActiveFilterOnResult |
protected static int |
PAGE_SIZE |
protected boolean |
showOnlySelected |
protected StreamPagingLoader |
streamPagingLoader |
Constructor and Description |
---|
SearchController(com.google.gwt.event.shared.EventBus eventBus,
SearchBorderLayoutPanel searchBorderLayoutPanel) |
Modifier and Type | Method and Description |
---|---|
protected void |
activeFilterOnResult(boolean bool) |
protected void |
bind() |
void |
changeStatusJob(SearchResultType jobType,
String jobId,
DownloadState state) |
protected void |
disableFilters() |
protected void |
doActiveMaskLoadingGridAndButtonSearch(boolean mask) |
static void |
excecuteGetJobs(SearchResultType type,
boolean resetStructures) |
protected String |
getCommonNamesHTML(String scientificName,
String author,
String credits,
List<CommonName> commonNames) |
com.google.gwt.event.shared.EventBus |
getEventBus() |
SearchEvent |
getLastSearchEvent() |
StreamPagingLoader |
getStreamPagingLoader() |
protected void |
loadDataSourceFromService() |
protected void |
loadLastQuery(boolean isError) |
void |
openOccurenceWindow() |
void |
reset() |
void |
resubmitJob(SearchResultType resultType,
String jobIdentifier) |
void |
saveOccurences(SaveFileFormat fileFormat,
OccurrencesSaveEnum typeCSV) |
void |
saveTaxonomy(SaveFileFormat fileFormat) |
void |
saveTaxonomyJob(JobTaxonomyModel jobTaxonomyModel,
String scientificName,
List<DataSource> listDataSources,
String rank) |
void |
saveTaxonomyJobError(JobTaxonomyModel jobTaxonomyModel,
String scientificName,
List<DataSource> listDataSources,
String rank) |
protected void |
search(SearchType type,
String searchTerm,
Number upperBoundLongitude,
Number upperBoundLatitude,
Number lowerBoundLongitude,
Number lowerBoundLatitude,
Date fromDate,
Date toDate,
List<DataSourceModel> listDataSources,
String groupRank,
SpeciesCapability resultType,
List<DataSourceModel> listDataSourcesForSynonyms,
List<DataSourceModel> listDataSourcesForUnfold) |
protected void |
searchByQuery(String query) |
protected void |
showFilterResults(boolean onlySelected) |
void |
showMap(String layerName) |
void |
showOccurrencesMap() |
protected void |
switchDataSource(SpeciesCapability resultType) |
protected static final int PAGE_SIZE
public static com.google.gwt.event.shared.EventBus eventBus
protected StreamPagingLoader streamPagingLoader
protected boolean showOnlySelected
protected boolean isActiveFilterOnResult
protected int currentPage
protected SearchController instance
public SearchController(com.google.gwt.event.shared.EventBus eventBus, SearchBorderLayoutPanel searchBorderLayoutPanel)
eventBus
- searchBorderLayoutPanel
- protected void switchDataSource(SpeciesCapability resultType)
public StreamPagingLoader getStreamPagingLoader()
protected void bind()
public void resubmitJob(SearchResultType resultType, String jobIdentifier)
protected void activeFilterOnResult(boolean bool)
protected void disableFilters()
protected void loadDataSourceFromService()
protected void doActiveMaskLoadingGridAndButtonSearch(boolean mask)
protected void showFilterResults(boolean onlySelected)
public void openOccurenceWindow()
public void saveOccurences(SaveFileFormat fileFormat, OccurrencesSaveEnum typeCSV)
public void saveTaxonomyJobError(JobTaxonomyModel jobTaxonomyModel, String scientificName, List<DataSource> listDataSources, String rank)
public void saveTaxonomyJob(JobTaxonomyModel jobTaxonomyModel, String scientificName, List<DataSource> listDataSources, String rank)
public void changeStatusJob(SearchResultType jobType, String jobId, DownloadState state)
public void saveTaxonomy(SaveFileFormat fileFormat)
public void showOccurrencesMap()
public void showMap(String layerName)
public void reset()
protected void loadLastQuery(boolean isError)
protected void searchByQuery(String query)
protected void search(SearchType type, String searchTerm, Number upperBoundLongitude, Number upperBoundLatitude, Number lowerBoundLongitude, Number lowerBoundLatitude, Date fromDate, Date toDate, List<DataSourceModel> listDataSources, String groupRank, SpeciesCapability resultType, List<DataSourceModel> listDataSourcesForSynonyms, List<DataSourceModel> listDataSourcesForUnfold)
protected String getCommonNamesHTML(String scientificName, String author, String credits, List<CommonName> commonNames)
public com.google.gwt.event.shared.EventBus getEventBus()
public SearchEvent getLastSearchEvent()
public static void excecuteGetJobs(SearchResultType type, boolean resetStructures)
Copyright © 2016. All Rights Reserved.