public class EventSearchController extends Object implements Serializable
| Constructor and Description |
|---|
EventSearchController() |
| Modifier and Type | Method and Description |
|---|---|
String |
doSearchNext()
Method to be called when the search command button is pressed
|
String |
doSearchPrev() |
List<String> |
getCategories()
Returns the result list of event categories
|
String |
getCategory()
Returns the current category
|
int |
getCurrentPage() |
String |
getLocation()
Returns the current location of the user
|
List<String> |
getLocations()
Returns the result list of locations
|
int |
getPageIndex() |
int |
getPages() |
List<String> |
getPagesLinks() |
List<es.uvigo.esei.dgss.letta.domain.entities.Event> |
getSearchResults()
Returns the result list of events
|
String |
getState()
Returns the current state
|
List<String> |
getStates()
Returns the result list of event states
|
String |
getTerms()
Returns the search term
|
void |
init() |
String |
jumpToPage(String pageNumber) |
void |
setCategory(String category)
Set the current category of the event
|
void |
setCurrentPage(int currentPage) |
void |
setLocation(String location)
Set the current location of the user to the actual value
|
void |
setPageIndex(int pageIndex) |
void |
setPages(int pages) |
void |
setPagesLinks(List<String> pagesLinks) |
void |
setSearchResults(List<es.uvigo.esei.dgss.letta.domain.entities.Event> searchResults)
Set the result list to an external value
|
void |
setState(String state)
Set the current state of the event
|
void |
setTerms(String terms)
Set the internal search term to the actual value
|
@PostConstruct public void init()
public int getCurrentPage()
public void setCurrentPage(int currentPage)
public int getPages()
public void setPages(int pages)
public int getPageIndex()
public void setPageIndex(int pageIndex)
public void setSearchResults(List<es.uvigo.esei.dgss.letta.domain.entities.Event> searchResults)
searchResults - an external result listpublic String getTerms()
public void setTerms(String terms)
terms - the external search termpublic String getLocation()
public void setLocation(String location)
location - the current location of the userpublic List<String> getLocations()
public List<es.uvigo.esei.dgss.letta.domain.entities.Event> getSearchResults()
public List<String> getCategories()
public List<String> getStates()
public String getCategory()
public void setCategory(String category)
category - the category of the eventpublic String getState()
public void setState(String state)
state - the state of the eventpublic String doSearchNext()
public String doSearchPrev()
Copyright © 2016. All rights reserved.