org.apache.aries.samples.blog.biz
Class BlogEntryManagerImpl

java.lang.Object
  extended by org.apache.aries.samples.blog.biz.BlogEntryManagerImpl
All Implemented Interfaces:
BlogEntryManager

public class BlogEntryManagerImpl
extends Object
implements BlogEntryManager


Constructor Summary
BlogEntryManagerImpl()
           
 
Method Summary
 void createBlogPost(String email, String title, String blogText, List<String> tags)
           
 Entry findBlogEntryByTitle(String title)
           
 List<? extends BlogEntry> getAllBlogEntries()
           
 List<? extends BlogEntry> getBlogEntries(int firstPostIndex, int noOfPosts)
           
 List<? extends BlogEntry> getBlogEntriesModifiedBetween(String startDate, String endDate)
           
 BlogEntry getBlogPost(long id)
           
 List<? extends BlogEntry> getBlogsForAuthor(String emailAddress)
           
 int getNoOfPosts()
           
 void removeBlogEntry(BlogAuthor a, String title, String publishDate)
           
 void setPersistenceService(BlogPersistenceService persistenceService)
           
 void updateBlogEntry(BlogEntry originalEntry, BlogAuthor a, String title, String publishDate, String blogText, List<String> tags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogEntryManagerImpl

public BlogEntryManagerImpl()
Method Detail

setPersistenceService

public void setPersistenceService(BlogPersistenceService persistenceService)

createBlogPost

public void createBlogPost(String email,
                           String title,
                           String blogText,
                           List<String> tags)
Specified by:
createBlogPost in interface BlogEntryManager

findBlogEntryByTitle

public Entry findBlogEntryByTitle(String title)
Specified by:
findBlogEntryByTitle in interface BlogEntryManager

getAllBlogEntries

public List<? extends BlogEntry> getAllBlogEntries()
Specified by:
getAllBlogEntries in interface BlogEntryManager

getBlogEntries

public List<? extends BlogEntry> getBlogEntries(int firstPostIndex,
                                                int noOfPosts)
Specified by:
getBlogEntries in interface BlogEntryManager

getBlogsForAuthor

public List<? extends BlogEntry> getBlogsForAuthor(String emailAddress)
Specified by:
getBlogsForAuthor in interface BlogEntryManager

getBlogEntriesModifiedBetween

public List<? extends BlogEntry> getBlogEntriesModifiedBetween(String startDate,
                                                               String endDate)
                                                        throws ParseException
Specified by:
getBlogEntriesModifiedBetween in interface BlogEntryManager
Throws:
ParseException

getNoOfPosts

public int getNoOfPosts()
Specified by:
getNoOfPosts in interface BlogEntryManager

removeBlogEntry

public void removeBlogEntry(BlogAuthor a,
                            String title,
                            String publishDate)
                     throws ParseException
Specified by:
removeBlogEntry in interface BlogEntryManager
Throws:
ParseException

updateBlogEntry

public void updateBlogEntry(BlogEntry originalEntry,
                            BlogAuthor a,
                            String title,
                            String publishDate,
                            String blogText,
                            List<String> tags)
                     throws ParseException
Specified by:
updateBlogEntry in interface BlogEntryManager
Throws:
ParseException

getBlogPost

public BlogEntry getBlogPost(long id)
Specified by:
getBlogPost in interface BlogEntryManager


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.