public class StoryEJB extends Object
| Constructor and Description |
|---|
StoryEJB() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
countFavouritesByUser(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author) |
Integer |
countFavouritesByUserAndGender(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author,
es.uvigo.esei.dgss.teama.microstories.enums.Gender gender) |
Integer |
countFavouritesByUserAndTopic(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author,
es.uvigo.esei.dgss.teama.microstories.enums.Topic topic) |
Integer |
countFindByText(String text) |
Integer |
countReadStoriesByUser(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user) |
Integer |
countReadStoriesByUserAndGender(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user,
es.uvigo.esei.dgss.teama.microstories.enums.Gender gender) |
Integer |
countReadStoriesByUserAndTopic(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user,
es.uvigo.esei.dgss.teama.microstories.enums.Topic topic) |
Integer |
countUserStories(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user) |
Integer |
countUserStoriesByParameters(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user,
es.uvigo.esei.dgss.teama.microstories.enums.Topic topic,
String title,
es.uvigo.esei.dgss.teama.microstories.enums.Gender gender,
Date startDate,
Date endDate,
Boolean published) |
es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity |
createStory(es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity story) |
boolean |
deleteStory(Integer idStory,
String authorLogin) |
List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> |
explore(es.uvigo.esei.dgss.teama.microstories.enums.Gender gender,
es.uvigo.esei.dgss.teama.microstories.enums.Topic topic,
Date startDate,
Date endDate,
int page,
int maxResults) |
Integer |
exploreCount(es.uvigo.esei.dgss.teama.microstories.enums.Gender gender,
es.uvigo.esei.dgss.teama.microstories.enums.Topic topic,
Date startDate,
Date endDate) |
List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> |
findByText(String text,
int page,
int maxResults) |
List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> |
findByUserAndParameters(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user,
es.uvigo.esei.dgss.teama.microstories.enums.Topic topic,
String title,
es.uvigo.esei.dgss.teama.microstories.enums.Gender gender,
Date startDate,
Date endDate,
Boolean published,
int page,
int maxResults) |
List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> |
findMostViewedStories() |
List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> |
findRecentStories() |
List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> |
findStoriesByAuthor(String authorLogin,
int page,
int maxResults) |
es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity |
findStoryById(Integer id_story) |
StoryStatistics |
obtainUserStoryMarkFavoriteStatistics(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author,
es.uvigo.esei.dgss.teama.microstories.enums.Gender gender,
es.uvigo.esei.dgss.teama.microstories.enums.Topic topic) |
StoryStatistics |
obtainUserStoryReadStatistics(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author,
es.uvigo.esei.dgss.teama.microstories.enums.Gender gender,
es.uvigo.esei.dgss.teama.microstories.enums.Topic topic) |
es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity |
updateStory(es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity updatedStory) |
@PermitAll public List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> findRecentStories()
@PermitAll public es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity findStoryById(Integer id_story)
@PermitAll public List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> findByText(String text, int page, int maxResults)
@PermitAll public Integer countFindByText(String text)
@PermitAll public List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> explore(es.uvigo.esei.dgss.teama.microstories.enums.Gender gender, es.uvigo.esei.dgss.teama.microstories.enums.Topic topic, Date startDate, Date endDate, int page, int maxResults)
@PermitAll public Integer exploreCount(es.uvigo.esei.dgss.teama.microstories.enums.Gender gender, es.uvigo.esei.dgss.teama.microstories.enums.Topic topic, Date startDate, Date endDate)
@PermitAll public List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> findMostViewedStories()
@PermitAll public List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> findStoriesByAuthor(String authorLogin, int page, int maxResults)
@PermitAll public Integer countUserStories(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user)
@PermitAll public List<es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity> findByUserAndParameters(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user, es.uvigo.esei.dgss.teama.microstories.enums.Topic topic, String title, es.uvigo.esei.dgss.teama.microstories.enums.Gender gender, Date startDate, Date endDate, Boolean published, int page, int maxResults)
@PermitAll public Integer countUserStoriesByParameters(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user, es.uvigo.esei.dgss.teama.microstories.enums.Topic topic, String title, es.uvigo.esei.dgss.teama.microstories.enums.Gender gender, Date startDate, Date endDate, Boolean published)
@PermitAll public boolean deleteStory(Integer idStory, String authorLogin)
@PermitAll public es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity createStory(es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity story)
@PermitAll public es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity updateStory(es.uvigo.esei.dgss.teama.microstories.entities.StoryEntity updatedStory)
@PermitAll public Integer countReadStoriesByUser(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user)
@PermitAll public Integer countReadStoriesByUserAndGender(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user, es.uvigo.esei.dgss.teama.microstories.enums.Gender gender)
@PermitAll public Integer countReadStoriesByUserAndTopic(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity user, es.uvigo.esei.dgss.teama.microstories.enums.Topic topic)
@PermitAll public Integer countFavouritesByUser(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author)
@PermitAll public Integer countFavouritesByUserAndGender(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author, es.uvigo.esei.dgss.teama.microstories.enums.Gender gender)
@PermitAll public Integer countFavouritesByUserAndTopic(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author, es.uvigo.esei.dgss.teama.microstories.enums.Topic topic)
@PermitAll public StoryStatistics obtainUserStoryMarkFavoriteStatistics(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author, es.uvigo.esei.dgss.teama.microstories.enums.Gender gender, es.uvigo.esei.dgss.teama.microstories.enums.Topic topic)
@PermitAll public StoryStatistics obtainUserStoryReadStatistics(es.uvigo.esei.dgss.teama.microstories.entities.AuthorEntity author, es.uvigo.esei.dgss.teama.microstories.enums.Gender gender, es.uvigo.esei.dgss.teama.microstories.enums.Topic topic)
Copyright © 2023. All rights reserved.