@Named(value="storyMB") @SessionScoped public class StoryManagedBean extends Object implements Serializable
| Constructor and Description |
|---|
StoryManagedBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatAttribute(String cad) |
String |
getContentPreview(String content)
Returns a string limited to 60 characters avoiding cutting the last word
|
int |
getLastPage() |
int |
getPage() |
List<es.uvigo.esei.dgss.teamc.microstories.entities.Story> |
getRecentStories()
Returns a list with 6 most recent Stories
|
List<es.uvigo.esei.dgss.teamc.microstories.entities.Story> |
getSearchedStories() |
String |
getSearchText() |
es.uvigo.esei.dgss.teamc.microstories.entities.Story |
getSelectedStory() |
Boolean |
hasTheme2(es.uvigo.esei.dgss.teamc.microstories.entities.Story story)
Returns true is the attribute Theme2 of the given story is not null
|
String |
nameImage(es.uvigo.esei.dgss.teamc.microstories.entities.Story story) |
String |
pageFirst(String cad)
Returns the path to the story's search view
|
String |
pageLast(String cad) |
String |
pageNext(String cad) |
String |
pagePrevious(String cad) |
Boolean |
recenStoriesNotEmpty()
Returns true is the list of recent stories is not empty
|
String |
seeStory(es.uvigo.esei.dgss.teamc.microstories.entities.Story story)
Returns the path to the story's detail view
|
void |
setLastPage(int lastPage) |
void |
setPage(int page) |
void |
setSearchedStories(List<es.uvigo.esei.dgss.teamc.microstories.entities.Story> searchedStories) |
void |
setSearchText(String searchText) |
void |
setSelectedStory(es.uvigo.esei.dgss.teamc.microstories.entities.Story selectedStory) |
public List<es.uvigo.esei.dgss.teamc.microstories.entities.Story> getRecentStories()
public es.uvigo.esei.dgss.teamc.microstories.entities.Story getSelectedStory()
public void setSelectedStory(es.uvigo.esei.dgss.teamc.microstories.entities.Story selectedStory)
public List<es.uvigo.esei.dgss.teamc.microstories.entities.Story> getSearchedStories()
public void setSearchedStories(List<es.uvigo.esei.dgss.teamc.microstories.entities.Story> searchedStories)
public String getSearchText()
public void setSearchText(String searchText)
public int getPage()
public void setPage(int page)
public int getLastPage()
public void setLastPage(int lastPage)
public String getContentPreview(String content)
content - The string to be limited to a length of 60 characters.public Boolean recenStoriesNotEmpty()
public Boolean hasTheme2(es.uvigo.esei.dgss.teamc.microstories.entities.Story story)
story - Story to check if his attribute theme2 is nullpublic String nameImage(es.uvigo.esei.dgss.teamc.microstories.entities.Story story)
public String seeStory(es.uvigo.esei.dgss.teamc.microstories.entities.Story story)
story - Story to see in detailpublic String pageFirst(String cad)
cad - String to searchCopyright © 2021. All rights reserved.