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

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

public class BloggingServiceImpl
extends Object
implements BloggingService

Implementation of the BloggingService


Constructor Summary
BloggingServiceImpl()
           
 
Method Summary
 void createBlogAuthor(String email, String nickName, String name, String bio, String dob)
           
 void createBlogComment(String comment, String authorEmail, long id)
           
 void createBlogEntry(String email, String title, String blogText, String tags)
           
 void deleteBlogComment(BlogComment comment)
           
 List<? extends BlogEntry> getAllBlogEntries()
           
 BlogAuthor getBlogAuthor(String email)
           
 List<? extends BlogEntry> getBlogEntries(int firstPostIndex, int noOfPosts)
           
 BlogEntry getBlogEntry(long id)
           
 String getBlogTitle()
           
 List<? extends BlogComment> getCommentsForEntry(BlogEntry entry)
           
 int getNoOfEntries()
           
 BlogEntry getPost(long id)
           
 boolean isCommentingAvailable()
           
 void setBlogAuthorManager(BlogAuthorManager authorManager)
           
 void setBlogCommentManager(BlogCommentManager commentManager)
           
 void setBlogEntryManager(BlogEntryManager blogPostManager)
           
 void updateBlogAuthor(String email, String nickName, String name, String bio, String dob)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BloggingServiceImpl

public BloggingServiceImpl()
Method Detail

setBlogEntryManager

public void setBlogEntryManager(BlogEntryManager blogPostManager)

setBlogAuthorManager

public void setBlogAuthorManager(BlogAuthorManager authorManager)

setBlogCommentManager

public void setBlogCommentManager(BlogCommentManager commentManager)

getBlogTitle

public String getBlogTitle()
Specified by:
getBlogTitle in interface BloggingService

getBlogAuthor

public BlogAuthor getBlogAuthor(String email)
Specified by:
getBlogAuthor in interface BloggingService

createBlogAuthor

public void createBlogAuthor(String email,
                             String nickName,
                             String name,
                             String bio,
                             String dob)
Specified by:
createBlogAuthor in interface BloggingService

updateBlogAuthor

public void updateBlogAuthor(String email,
                             String nickName,
                             String name,
                             String bio,
                             String dob)
Specified by:
updateBlogAuthor in interface BloggingService

getPost

public BlogEntry getPost(long id)

getBlogEntries

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

getAllBlogEntries

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

getNoOfEntries

public int getNoOfEntries()
Specified by:
getNoOfEntries in interface BloggingService

createBlogEntry

public void createBlogEntry(String email,
                            String title,
                            String blogText,
                            String tags)
Specified by:
createBlogEntry in interface BloggingService

createBlogComment

public void createBlogComment(String comment,
                              String authorEmail,
                              long id)
Specified by:
createBlogComment in interface BloggingService

deleteBlogComment

public void deleteBlogComment(BlogComment comment)

getCommentsForEntry

public List<? extends BlogComment> getCommentsForEntry(BlogEntry entry)
Specified by:
getCommentsForEntry in interface BloggingService

getBlogEntry

public BlogEntry getBlogEntry(long id)
Specified by:
getBlogEntry in interface BloggingService

isCommentingAvailable

public boolean isCommentingAvailable()
Specified by:
isCommentingAvailable in interface BloggingService


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