@Named(value="storyController") @SessionScoped public class StoryController extends Object implements Serializable
| Constructor and Description |
|---|
StoryController() |
| Modifier and Type | Method and Description |
|---|---|
List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> |
getMostRead() |
List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> |
getRecentStories() |
es.uvigo.esei.dgss.teama.microstories.domain.entities.Story |
getSelectedStory() |
void |
init() |
void |
selectStory(es.uvigo.esei.dgss.teama.microstories.domain.entities.Story story)
The story indicated by the user is selected
and the readings of the story are increased
|
@PostConstruct public void init()
public List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> getRecentStories()
public List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> getMostRead()
public es.uvigo.esei.dgss.teama.microstories.domain.entities.Story getSelectedStory()
public void selectStory(es.uvigo.esei.dgss.teama.microstories.domain.entities.Story story)
story - the story selected by the userCopyright © 2018. All rights reserved.