@ApplicationScoped public class BlogEntryRepository extends Object implements Repository
| Constructor and Description |
|---|
BlogEntryRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(Comment comment,
BlogEntry entry) |
void |
addComment(Comment comment,
Long entryId) |
List<String> |
getCategories() |
BlogEntry |
getEntry(Long entryId) |
List<BlogEntry> |
getLatestEntries(int offset,
int count) |
List<BlogEntry> |
getLatestEntries(String category,
int offset,
int count) |
List<BlogEntry> |
searchEntries(String searchString,
int offset,
int count) |
List<BlogEntry> |
searchEntries(String searchString,
String category,
int offset,
int count) |
void |
seed() |
@PostConstruct public void seed()
public List<BlogEntry> searchEntries(String searchString, int offset, int count)
searchEntries in interface Repositorypublic List<BlogEntry> searchEntries(String searchString, String category, int offset, int count)
searchEntries in interface Repositorypublic List<BlogEntry> getLatestEntries(String category, int offset, int count)
getLatestEntries in interface Repositorypublic List<BlogEntry> getLatestEntries(int offset, int count)
getLatestEntries in interface Repositorypublic BlogEntry getEntry(Long entryId)
getEntry in interface Repositorypublic List<String> getCategories()
getCategories in interface Repositorypublic void addComment(Comment comment, Long entryId)
addComment in interface Repositorypublic void addComment(Comment comment, BlogEntry entry)
addComment in interface RepositoryCopyright © 2008-2015. All Rights Reserved.