@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
|
List<es.uvigo.esei.dgss.teamc.microstories.entities.Story> |
getRecentStories()
Returns a list with 6 most recent Stories
|
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) |
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 |
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 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 detailCopyright © 2021. All rights reserved.