Java Doc for Fetcher.java in  » Blogger-System » blojsom-3.1 » org » blojsom » fetcher » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Blogger System » blojsom 3.1 » org.blojsom.fetcher 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.blojsom.fetcher.Fetcher

All known Subclasses:   org.blojsom.fetcher.database.DatabaseFetcher,
Fetcher
public interface Fetcher (Code)
Fetcher
author:
   David Czarnecki
since:
   blojsom 3.0
version:
   $Id: Fetcher.java,v 1.20 2007/01/17 02:35:17 czarneckid Exp $




Method Summary
public  IntegercountEntries(Blog blog)
    
public  voiddeleteBlog(Blog blog)
    
public  voiddeleteCategory(Blog blog, Category category)
    
public  voiddeleteComment(Blog blog, Comment comment)
    
public  voiddeleteEntry(Blog blog, Entry entry)
    
public  voiddeletePingback(Blog blog, Pingback pingback)
    
public  voiddeleteTrackback(Blog blog, Trackback trackback)
    
public  voiddeleteUser(Blog blog, Integer userID)
    
public  voiddestroy()
    
public  Category[]fetchCategories(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, String flavor, Map context)
    
public  Entry[]fetchEntries(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, String flavor, Map context)
     Fetch a set of Entry objects.
public  Entry[]findEntries(Blog blog, String query)
    
public  Entry[]findEntriesBetweenDates(Blog blog, Date startDate, Date endDate)
    
public  Entry[]findEntriesByMetadataKeyValue(Blog blog, String metadataKey, String metadataValue, boolean pre, boolean post)
    
public  Entry[]findEntriesWithMetadataKey(Blog blog, String metadataKey)
    
public  ListfindResponsesByQuery(Blog blog, String query)
     Find the responses (comments, trackbacks, pingbacks) for a given Blog matching some query
Parameters:
  blog - Blog
Parameters:
  query - Query which will match on various items such as commenter name, e-mail, IP address, etc.
public  ListfindResponsesByStatus(Blog blog, String[] status)
    
public  User[]getUsers(Blog blog)
    
public  voidinit()
     Initialize this fetcher.
public  Category[]loadAllCategories(Blog blog)
    
public  Entry[]loadAllEntriesForCategory(Blog blog, Integer categoryId)
    
public  BlogloadBlog(String blogId)
    
public  BlogloadBlog(Integer id)
    
public  String[]loadBlogIDs()
    
public  CategoryloadCategory(Blog blog, Integer categoryId)
    
public  CategoryloadCategory(Blog blog, String name)
    
public  voidloadCategory(Blog blog, Category category)
    
public  voidloadComment(Blog blog, Comment comment)
    
public  Entry[]loadEntries(Blog blog, int pageSize, int page)
    
public  Entry[]loadEntries(int pageSize, int page, Category specificCategory, Category[] defaultCategories)
    
public  Entry[]loadEntriesForCategory(Blog blog, Integer categoryId, Integer limit)
    
public  EntryloadEntry(Blog blog, Integer entryId)
    
public  EntryloadEntry(Blog blog, String postSlug)
    
public  voidloadEntry(Blog blog, Entry entry)
    
public  voidloadPingback(Blog blog, Pingback pingback)
    
public  PingbackloadPingback(Blog blog, String sourceURI, String targetURI)
    
public  ListloadRecentComments(Blog blog)
    
public  ListloadRecentPingbacks(Blog blog)
    
public  ListloadRecentTrackbacks(Blog blog)
    
public  voidloadTrackback(Blog blog, Trackback trackback)
    
public  UserloadUser(Blog blog, String userLogin)
    
public  UserloadUser(Blog blog, Integer userID)
    
public  BlognewBlog()
    
public  CategorynewCategory()
    
public  CommentnewComment()
    
public  EntrynewEntry()
    
public  PingbacknewPingback()
    
public  TrackbacknewTrackback()
    
public  UsernewUser()
    
public  voidsaveBlog(Blog blog)
    
public  voidsaveCategory(Blog blog, Category category)
    
public  voidsaveComment(Blog blog, Comment comment)
    
public  voidsaveEntry(Blog blog, Entry entry)
    
public  voidsavePingback(Blog blog, Pingback pingback)
    
public  voidsaveTrackback(Blog blog, Trackback trackback)
    
public  UsersaveUser(Blog blog, User user)
    



Method Detail
countEntries
public Integer countEntries(Blog blog) throws FetcherException(Code)
Count the number of entries for a blog
Parameters:
  blog - Blog Number of entries
throws:
  FetcherException - If there is an error counting the blog entries



deleteBlog
public void deleteBlog(Blog blog) throws FetcherException(Code)
Delete a blog
Parameters:
  blog - Blog
throws:
  FetcherException - If there is an error deleting the blog



deleteCategory
public void deleteCategory(Blog blog, Category category) throws FetcherException(Code)
Delete a given Category
Parameters:
  blog - Blog
Parameters:
  category - Category to delete
throws:
  FetcherException - If there is an error deleting the category



deleteComment
public void deleteComment(Blog blog, Comment comment) throws FetcherException(Code)
Delete a given Comment
Parameters:
  blog - Blog
Parameters:
  comment - Comment to delete
throws:
  FetcherException - If there is an error deleting the comment



deleteEntry
public void deleteEntry(Blog blog, Entry entry) throws FetcherException(Code)
Delete a given Entry
Parameters:
  blog - Blog
Parameters:
  entry - Entry to delete
throws:
  FetcherException - If there is an error deleting the entry



deletePingback
public void deletePingback(Blog blog, Pingback pingback) throws FetcherException(Code)
Delete a given Pingback
Parameters:
  blog - Blog
Parameters:
  pingback - Pingback to delete
throws:
  FetcherException - If there is an error deleting the pingback



deleteTrackback
public void deleteTrackback(Blog blog, Trackback trackback) throws FetcherException(Code)
Delete a given Trackback
Parameters:
  blog - Blog
Parameters:
  trackback - Trackback to delete
throws:
  FetcherException - If there is an error deleting the trackback



deleteUser
public void deleteUser(Blog blog, Integer userID) throws FetcherException(Code)
Delete a given user from a blog
Parameters:
  blog - Blog
Parameters:
  userID - User ID
throws:
  FetcherException - If there is an error deleting the user from the blog



destroy
public void destroy() throws FetcherException(Code)
Called when org.blojsom.servlet.BlojsomServlet is taken out of service
throws:
  FetcherException - If there is an error in finalizing this fetcher



fetchCategories
public Category[] fetchCategories(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, String flavor, Map context) throws FetcherException(Code)
Fetch a set of Category objects
Parameters:
  httpServletRequest - Request
Parameters:
  httpServletResponse - Response
Parameters:
  blog - Blog instance
Parameters:
  flavor - Flavor
Parameters:
  context - Context Blog categories retrieved for the particular request
throws:
  FetcherException - If there is an error retrieving the blog categories for the request



fetchEntries
public Entry[] fetchEntries(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, String flavor, Map context) throws FetcherException(Code)
Fetch a set of Entry objects.
Parameters:
  httpServletRequest - Request
Parameters:
  httpServletResponse - Response
Parameters:
  blog - Blog instance
Parameters:
  flavor - Flavor
Parameters:
  context - Context Blog entries retrieved for the particular request
throws:
  FetcherException - If there is an error retrieving the blog entries for the request



findEntries
public Entry[] findEntries(Blog blog, String query) throws FetcherException(Code)
Find entries which have the search query in their title or description
Parameters:
  blog - Blog
Parameters:
  query - Search query Blog entries which have the search query in their title or descirption
throws:
  FetcherException - If there is an error searching through entries



findEntriesBetweenDates
public Entry[] findEntriesBetweenDates(Blog blog, Date startDate, Date endDate) throws FetcherException(Code)
Find entries between a start and end date
Parameters:
  blog - Blog
Parameters:
  startDate - Start date
Parameters:
  endDate - End date Entries between a start and end date
throws:
  FetcherException - If there is an error searching for entries between the dates



findEntriesByMetadataKeyValue
public Entry[] findEntriesByMetadataKeyValue(Blog blog, String metadataKey, String metadataValue, boolean pre, boolean post) throws FetcherException(Code)
Find entries by a metadata key/value pair
Parameters:
  blog - Blog
Parameters:
  metadataKey - Metadata key
Parameters:
  metadataValue - Metadata value
Parameters:
  pre - If the search should use % before the metadata value (match anything before)
Parameters:
  post - If the search should use % after the metadata value (match antthing after) Entries matching metadata key and value using LIKE syntax for metadata value
throws:
  FetcherException - If there is an error searching through entries



findEntriesWithMetadataKey
public Entry[] findEntriesWithMetadataKey(Blog blog, String metadataKey) throws FetcherException(Code)
Find entries with a given metadata key
Parameters:
  blog - Blog
Parameters:
  metadataKey - Metadata key Entries with the given metadata key
throws:
  FetcherException - If there is an error searching through entries



findResponsesByQuery
public List findResponsesByQuery(Blog blog, String query) throws FetcherException(Code)
Find the responses (comments, trackbacks, pingbacks) for a given Blog matching some query
Parameters:
  blog - Blog
Parameters:
  query - Query which will match on various items such as commenter name, e-mail, IP address, etc. List of responses (comments, trackbacks, pingbacks) matching query
throws:
  FetcherException - If there is an error loading the responses



findResponsesByStatus
public List findResponsesByStatus(Blog blog, String[] status) throws FetcherException(Code)
Find the responses (comments, trackbacks, pingbacks) for a given Blog matching one of a set of status codes
Parameters:
  blog - Blog
Parameters:
  status - List of status codes to search List of responses (comments, trackbacks, pingbacks) matching one of a set of status codes
throws:
  FetcherException - If there is an error loading the responses



getUsers
public User[] getUsers(Blog blog)(Code)
Retrieve the users for a given blog
Parameters:
  blog - Blog List of Users for a blog



init
public void init() throws FetcherException(Code)
Initialize this fetcher. This method only called when the fetcher is instantiated.
throws:
  FetcherException - If there is an error initializing the fetcher



loadAllCategories
public Category[] loadAllCategories(Blog blog) throws FetcherException(Code)
Load each Category for a given blog
Parameters:
  blog - Blog Category list for the blog
throws:
  FetcherException - If there is an error loading the categories



loadAllEntriesForCategory
public Entry[] loadAllEntriesForCategory(Blog blog, Integer categoryId) throws FetcherException(Code)
Load all the entries for a given category
Parameters:
  blog - Blog
Parameters:
  categoryId - Category ID Blog entries for a given category
throws:
  FetcherException - If there is an error loading the entries



loadBlog
public Blog loadBlog(String blogId) throws FetcherException(Code)
Load the Blog given the blog ID
Parameters:
  blogId - Blog ID Blog blog
throws:
  FetcherException - If there is an error loading the blog



loadBlog
public Blog loadBlog(Integer id) throws FetcherException(Code)
Load the Blog given the ID
Parameters:
  id - ID Blog blog
throws:
  FetcherException - If there is an error loading the blog



loadBlogIDs
public String[] loadBlogIDs() throws FetcherException(Code)
Load the blog IDs List of blog IDs
throws:
  FetcherException - If there is an error loading the blog IDs



loadCategory
public Category loadCategory(Blog blog, Integer categoryId) throws FetcherException(Code)
Load the Category for a given category ID
Parameters:
  blog - Blog
Parameters:
  categoryId - Category ID Category for the given category ID
throws:
  FetcherException - If there is an error loading the category



loadCategory
public Category loadCategory(Blog blog, String name) throws FetcherException(Code)
Load the Category for a given category name
Parameters:
  blog - Blog
Parameters:
  name - Category name Category for the given category name
throws:
  FetcherException - If there is an error loading the category



loadCategory
public void loadCategory(Blog blog, Category category) throws FetcherException(Code)
Load a given Category
Parameters:
  blog - Blog
Parameters:
  category - Category to load
throws:
  FetcherException - If there is an loading saving the category



loadComment
public void loadComment(Blog blog, Comment comment) throws FetcherException(Code)
Load a given Comment
Parameters:
  blog - Blog
Parameters:
  comment - Comment to load
throws:
  FetcherException - If there is an error loading the comment



loadEntries
public Entry[] loadEntries(Blog blog, int pageSize, int page) throws FetcherException(Code)
Load a set of entries using a given page size and page in which to retrieve the entries
Parameters:
  blog - Blog
Parameters:
  pageSize - Page size
Parameters:
  page - Page Blog entries
throws:
  FetcherException - If there is an error loading the entries



loadEntries
public Entry[] loadEntries(int pageSize, int page, Category specificCategory, Category[] defaultCategories) throws FetcherException(Code)
Load a set of entries using a given page size and page in which to retrieve the entries
Parameters:
  pageSize - Page size
Parameters:
  page - Page
Parameters:
  specificCategory - Category
Parameters:
  defaultCategories - Default categories to use for requesting entries from the blogs Blog entries
throws:
  FetcherException - If there is an error loading the entries



loadEntriesForCategory
public Entry[] loadEntriesForCategory(Blog blog, Integer categoryId, Integer limit) throws FetcherException(Code)
Load all the entries for a given category
Parameters:
  blog - Blog
Parameters:
  categoryId - Category ID
Parameters:
  limit - Limit on number of entries to return Blog entries for a given category
throws:
  FetcherException - If there is an error loading the entries



loadEntry
public Entry loadEntry(Blog blog, Integer entryId) throws FetcherException(Code)
Load an Entry for a given entry ID
Parameters:
  blog - Blog
Parameters:
  entryId - Entry ID Entry entry
throws:
  FetcherException - If there is an error loading the entry



loadEntry
public Entry loadEntry(Blog blog, String postSlug) throws FetcherException(Code)
Load an Entry given a post slug
Parameters:
  blog - Blog
Parameters:
  postSlug - Post slug Entry for the given post slug
throws:
  FetcherException - If an entry for the blog and post slug cannot be found



loadEntry
public void loadEntry(Blog blog, Entry entry) throws FetcherException(Code)
Load a given Entry
Parameters:
  blog - Blog
Parameters:
  entry - Entry to load
throws:
  FetcherException - If there is an error loading the entry



loadPingback
public void loadPingback(Blog blog, Pingback pingback) throws FetcherException(Code)
Load a given Pingback
Parameters:
  blog - Blog
Parameters:
  pingback - Pingback to load
throws:
  FetcherException - If there is an error loading the pingback



loadPingback
public Pingback loadPingback(Blog blog, String sourceURI, String targetURI) throws FetcherException(Code)
Load a pingback given the source URI and target URI
Parameters:
  blog - Blog
Parameters:
  sourceURI - Source URI
Parameters:
  targetURI - Target URI Pingback given the source and target URIs or null if not found
throws:
  FetcherException - If there was an erorr loading the pingback



loadRecentComments
public List loadRecentComments(Blog blog) throws FetcherException(Code)
Load the recent comments for a blog
Parameters:
  blog - Blog List of recent comment
throws:
  FetcherException - If there is an error retrieving the recent comments



loadRecentPingbacks
public List loadRecentPingbacks(Blog blog) throws FetcherException(Code)
Load the recent pingbacks for a blog
Parameters:
  blog - Blog List of recent pingbacks
throws:
  FetcherException - If there is an error retrieving the recent pingbacks



loadRecentTrackbacks
public List loadRecentTrackbacks(Blog blog) throws FetcherException(Code)
Load the recent trackbacks for a blog
Parameters:
  blog - Blog List of recent trackbacks
throws:
  FetcherException - If there is an error retrieving the recent trackbacks



loadTrackback
public void loadTrackback(Blog blog, Trackback trackback) throws FetcherException(Code)
Load a given Trackback
Parameters:
  blog - Blog
Parameters:
  trackback - Trackback to load
throws:
  FetcherException - If there is an error loading the trackback



loadUser
public User loadUser(Blog blog, String userLogin) throws FetcherException(Code)
Load a User from a blog
Parameters:
  blog - Blog
Parameters:
  userLogin - Login ID User user
throws:
  FetcherException - If there is an error loading the User from the blog



loadUser
public User loadUser(Blog blog, Integer userID) throws FetcherException(Code)
Load a given User from a blog given their ID
Parameters:
  blog - Blog
Parameters:
  userID - User ID User user
throws:
  FetcherException - If there is an error loading the user



newBlog
public Blog newBlog()(Code)
Return a new Blog instance Blog blog



newCategory
public Category newCategory()(Code)
Return a new Category instance Category category



newComment
public Comment newComment()(Code)
Return a new Comment instance Comment comment



newEntry
public Entry newEntry()(Code)
Return a new Entry instance Blog entry instance



newPingback
public Pingback newPingback()(Code)
Return a new Pingback instance Pingback pingback



newTrackback
public Trackback newTrackback()(Code)
Return a new Trackback instance Trackback trackback



newUser
public User newUser()(Code)
Return a new User instance User user



saveBlog
public void saveBlog(Blog blog) throws FetcherException(Code)
Save a Blog
Parameters:
  blog - Blog
throws:
  FetcherException - If there is an error saving the blog



saveCategory
public void saveCategory(Blog blog, Category category) throws FetcherException(Code)
Save a given Category
Parameters:
  blog - Blog
Parameters:
  category - Category to save
throws:
  FetcherException - If there is an error saving the category



saveComment
public void saveComment(Blog blog, Comment comment) throws FetcherException(Code)
Save a given Comment
Parameters:
  blog - Blog
Parameters:
  comment - Comment to save
throws:
  FetcherException - If there is an error saving the comment



saveEntry
public void saveEntry(Blog blog, Entry entry) throws FetcherException(Code)
Save a given Entry
Parameters:
  blog - Blog
Parameters:
  entry - Entry to save
throws:
  FetcherException - If there is an error saving the entry



savePingback
public void savePingback(Blog blog, Pingback pingback) throws FetcherException(Code)
Save a given Pingback
Parameters:
  blog - Blog
Parameters:
  pingback - Pingback to save
throws:
  FetcherException - If there is an error saving the pingback



saveTrackback
public void saveTrackback(Blog blog, Trackback trackback) throws FetcherException(Code)
Save a given Trackback
Parameters:
  blog - Blog
Parameters:
  trackback - Trackback to save
throws:
  FetcherException - If there is an error saving the trackback



saveUser
public User saveUser(Blog blog, User user) throws FetcherException(Code)
Save a given User to the blog
Parameters:
  blog - Blog
Parameters:
  user - User User user
throws:
  FetcherException - If there is an error saving the user to the blog



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.