@Named(value="search") @SessionScoped public class SearchManagedBean extends Object implements Serializable
| Constructor and Description |
|---|
SearchManagedBean()
Empty builder for SearchManagedBean
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyword()
Returns the keyword
|
Paginator |
getPaginator() |
List<es.uvigo.esei.dgss.microstories.domain.Story> |
getStoriesByText()
Returns a list of stories based on the current page and the current size
|
List<es.uvigo.esei.dgss.microstories.domain.Story> |
getStoriesByText(int pageNumber)
Returns a list of stories based on the pageNumber
|
static String |
getThisPage() |
long |
getTotalSearchRows(String searchedWord)
Returns the total number of stories in a search
|
String |
goToIndex()
Go to home view
|
String |
goToSearch()
Go to search view
|
String |
goToSearchPage1()
Updates currentPageNumber to 1 and the total number of pages and goes to search view
|
void |
init() |
void |
setKeyword(String keyword)
Modifies the keyword
|
void |
setPaginator(Paginator paginator) |
@PostConstruct public void init()
public String getKeyword()
public void setKeyword(String keyword)
keyword - public Paginator getPaginator()
public void setPaginator(Paginator paginator)
public static String getThisPage()
public List<es.uvigo.esei.dgss.microstories.domain.Story> getStoriesByText(int pageNumber)
pageNumber - public List<es.uvigo.esei.dgss.microstories.domain.Story> getStoriesByText()
public long getTotalSearchRows(String searchedWord)
searchedWord - public String goToSearch()
public String goToSearchPage1()
public String goToIndex()
Copyright © 2020. All rights reserved.