@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
|
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.Copyright © 2019. All rights reserved.