public class StoryService extends Object
| Constructor and Description |
|---|
StoryService() |
| Modifier and Type | Method and Description |
|---|---|
List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> |
findRecent()
Returns the list of recent stories published.
|
es.uvigo.esei.dgss.teama.microstories.domain.entities.Story |
get(int id)
Returns the story identified by
id. |
@PermitAll @Produces(value="application/json") public List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> findRecent()
@PermitAll @Produces(value="application/json") public es.uvigo.esei.dgss.teama.microstories.domain.entities.Story get(int id)
id. If there is no story with
the specified id, null will be returned.id - the id of a story.null if there is no
story with the specified id.IllegalArgumentException - if id is null or it
does not identifies a valid story.Copyright © 2018. All rights reserved.