org.jboss.weld.examples.permalink
Class BlogEntryRepository

java.lang.Object
  extended by org.jboss.weld.examples.permalink.BlogEntryRepository

@ApplicationScoped
public class BlogEntryRepository
extends Object

Author:
Dan Allen

Constructor Summary
BlogEntryRepository()
           
 
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
 

Constructor Detail

BlogEntryRepository

public BlogEntryRepository()
Method Detail

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-2011 Seam Framework. All Rights Reserved.