public class UserService extends Object
| Constructor and Description |
|---|
UserService() |
| Modifier and Type | Method and Description |
|---|---|
List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> |
findStoriesByAuthor(String login)
Returns a list of microstories of an author.
|
List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> |
findStoriesByAuthor(String login,
int page,
int limit)
Returns a paginated list of microstories of an author.
|
@RolesAllowed(value="AUTHOR") @Produces(value="application/json") public List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> findStoriesByAuthor(String login)
login - the author login.@RolesAllowed(value="AUTHOR") @Produces(value="application/json") public List<es.uvigo.esei.dgss.teama.microstories.domain.entities.Story> findStoriesByAuthor(String login, int page, int limit)
login - the author loginpage - the page number. If it is less than 0 it returns the first page.limit - the number of stories contained in a page. If it is less than 0 or greater than 100, it
returns at most 100 stories.Copyright © 2018. All rights reserved.