org.jboss.weld.examples.permalink
Class BlogEntryRepository
java.lang.Object
org.jboss.weld.examples.permalink.BlogEntryRepository
@ApplicationScoped
public class BlogEntryRepository
- extends Object
- Author:
- Dan Allen
|
Method Summary |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlogEntryRepository
public BlogEntryRepository()
seed
@PostConstruct
public void seed()
searchEntries
public List<BlogEntry> searchEntries(String searchString,
int offset,
int count)
searchEntries
public List<BlogEntry> searchEntries(String searchString,
String category,
int offset,
int count)
getLatestEntries
public List<BlogEntry> getLatestEntries(String category,
int offset,
int count)
getLatestEntries
public List<BlogEntry> getLatestEntries(int offset,
int count)
getEntry
public BlogEntry getEntry(Long entryId)
getCategories
public List<String> getCategories()
addComment
public void addComment(Comment comment,
Long entryId)
addComment
public void addComment(Comment comment,
BlogEntry entry)
Copyright © 2008-2010 Seam Framework. All Rights Reserved.