@PermitAll public class StoryService extends Object
| Constructor and Description |
|---|
StoryService() |
| Modifier and Type | Method and Description |
|---|---|
es.uvigo.esei.dgss.microstories.domain.Story |
findStoryById(int id)
Returns a story identified by his id.
|
List<es.uvigo.esei.dgss.microstories.domain.Story> |
getRecentStories()
Returns the recent stories, the last 6 stories.
|
List<es.uvigo.esei.dgss.microstories.domain.Story> |
getStoriesByText(String text,
int pageNumber,
int pageSize)
Returns the stories that contains the text on the title or text
|
List<es.uvigo.esei.dgss.microstories.domain.Story> |
getStoriesToExplore(String genre,
String theme,
Date date,
int pageNumber,
int pageSize)
Returns the stories that indicates the explorer filters
|
long |
totalSearchRows(String word)
Returns the total of rows in a search
|
public List<es.uvigo.esei.dgss.microstories.domain.Story> getRecentStories()
public List<es.uvigo.esei.dgss.microstories.domain.Story> getStoriesByText(String text, int pageNumber, int pageSize)
text - the text that filters the storiespublic es.uvigo.esei.dgss.microstories.domain.Story findStoryById(int id)
id - the identifier of a Story.null if no
story exists with the provided identifier.public long totalSearchRows(String word)
word - The word to searchpublic List<es.uvigo.esei.dgss.microstories.domain.Story> getStoriesToExplore(String genre, String theme, Date date, int pageNumber, int pageSize)
genre - the genre of the stories listtheme - the theme of the stories listdate - the date of publication of the stories listCopyright © 2019. All rights reserved.