Java Doc for WeblogManager.java in  » Blogger-System » apache-roller-3.1 » org » apache » roller » business » 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 » apache roller 3.1 » org.apache.roller.business 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.roller.business.WeblogManager

All known Subclasses:   org.apache.roller.business.hibernate.HibernateWeblogManagerImpl,
WeblogManager
public interface WeblogManager (Code)
Interface to weblog entry, category and comment management.


Field Summary
final public static  StringCATEGORY_ATT
    


Method Summary
public  voidapplyCommentDefaultsToEntries(WebsiteData website)
     Apply comment default settings from website to all of website's entries.
public  StringcreateAnchor(WeblogEntryData data)
     Create unique anchor for weblog entry.
public  ListgetAllWeblogCategoryDecscendentAssocs(WeblogCategoryData data)
     Get all descendent associations for a category.
public  CommentDatagetComment(String id)
     Get comment by id.
public  ListgetComments(WebsiteData website, WeblogEntryData entry, String searchString, Date startDate, Date endDate, Boolean pending, Boolean approved, Boolean spam, boolean reverseChrono, int offset, int length)
     Generic comments query method.
public  HitCountDatagetHitCount(String id)
     Get a HitCountData by id.
Parameters:
  id - The HitCountData id.
public  HitCountDatagetHitCountByWeblog(WebsiteData weblog)
     Get a HitCountData by weblog.
Parameters:
  weblog - The WebsiteData that you want the hit count for.
public  ListgetHotWeblogs(int sinceDays, int offset, int length)
     Get HitCountData objects for the hotest weblogs. The results may be constrained to a certain number of days back from the current time, as well as pagable via the offset and length params. The results are ordered by highest counts in descending order, and any weblogs which are not active or enabled are not included.
Parameters:
  sinceDays - Number of days in the past to consider.
Parameters:
  offset - What index in the results to begin from.
Parameters:
  length - The number of results to return.
public  ListgetMostCommentedWeblogEntries(WebsiteData website, Date startDate, Date endDate, int offset, int length)
     Get weblog enties ordered by descending number of comments.
public  ListgetNextEntries(WeblogEntryData entry, String catName, String locale, int maxEntries)
     Get entries next after current entry.
public  WeblogEntryDatagetNextEntry(WeblogEntryData current, String catName, String locale)
     Get the WeblogEntry following, chronologically, the current entry.
public  StringgetPath(WeblogCategoryData category)
     Get absolute path to category, appropriate for use by getWeblogCategoryByPath().
Parameters:
  category - WeblogCategoryData.
public  ListgetPopularTags(WebsiteData website, Date startDate, int limit)
     Get list of TagStat.
public  ListgetPreviousEntries(WeblogEntryData entry, String catName, String locale, int maxEntries)
     Get entries previous to current entry.
public  WeblogEntryDatagetPreviousEntry(WeblogEntryData current, String catName, String locale)
     Get the WeblogEntry prior to, chronologically, the current entry.
public  WeblogCategoryDatagetRootWeblogCategory(WebsiteData website)
     Get top level categories for a website.
public  booleangetTagComboExists(List tags, WebsiteData weblog)
     Does the specified tag combination exist? Optionally confined to a specific weblog. This tests if the intersection of the tags listed will yield any results and returns a true/false value if so.
public  ListgetTags(WebsiteData website, String sortBy, String startsWith, int limit)
     Get list of TagStat.
public  ListgetWeblogCategories(WebsiteData website)
     Get WebLogCategory objects for a website.
public  ListgetWeblogCategories(WebsiteData website, boolean includeRoot)
     Get WebLogCategory objects for a website.
public  WeblogCategoryDatagetWeblogCategory(String id)
     Get category by id.
public  ListgetWeblogCategoryAncestorAssocs(WeblogCategoryData data)
     Get all ancestor associates for a category.
public  WeblogCategoryDatagetWeblogCategoryByPath(WebsiteData website, String categoryPath)
     Get category specified by website and categoryPath.
public  WeblogCategoryDatagetWeblogCategoryByPath(WebsiteData wd, WeblogCategoryData category, String string)
     Get sub-category by path relative to specified category.
Parameters:
  category - Root of path or null to start at top of category tree.
Parameters:
  path - Path of category to be located.
Parameters:
  website - Website of categories.
public  ListgetWeblogCategoryChildAssocs(WeblogCategoryData data)
     Get child associations for a category.
public  AssocgetWeblogCategoryParentAssoc(WeblogCategoryData data)
     Get parent association for a category.
public  ListgetWeblogEntries(WebsiteData website, UserData user, Date startDate, Date endDate, String catName, List tags, String status, String sortBy, String locale, int offset, int range)
     Get WeblogEntries by offset/length as list in reverse chronological order.
public  ListgetWeblogEntries(WeblogCategoryData cat, boolean subcats)
     Get weblog entries with given category or, optionally, any sub-category of that category.
public  ListgetWeblogEntriesPinnedToMain(Integer max)
     Get specified number of most recent pinned and published Weblog Entries.
Parameters:
  max - Maximum number to return.
public  WeblogEntryDatagetWeblogEntry(String id)
     Get weblog entry by id.
public  WeblogEntryDatagetWeblogEntryByAnchor(WebsiteData website, String anchor)
     Get weblog entry by anchor.
public  MapgetWeblogEntryObjectMap(WebsiteData website, Date startDate, Date endDate, String catName, List tags, String status, String locale, int offset, int range)
     Get Weblog Entries grouped by day.
public  MapgetWeblogEntryStringMap(WebsiteData website, Date startDate, Date endDate, String catName, List tags, String status, String locale, int offset, int range)
     Get Weblog Entry date strings grouped by day.
public  DategetWeblogLastPublishTime(WebsiteData website)
    
public  DategetWeblogLastPublishTime(WebsiteData website, String catName)
     Gets returns most recent pubTime, optionally restricted by category.
public  voidincrementHitCount(WebsiteData weblog, int amount)
     Increment the hit count for a weblog by a certain amount.
public  booleanisDescendentOf(WeblogCategoryData child, WeblogCategoryData ancestor)
     Returns true if ancestor is truly an ancestor of child.
public  booleanisDuplicateWeblogCategoryName(WeblogCategoryData data)
     Check for duplicate category name.
public  booleanisWeblogCategoryInUse(WeblogCategoryData data)
     Check if weblog category is in use.
public  voidmoveWeblogCategoryContents(WeblogCategoryData srcCat, WeblogCategoryData destCat)
     Recategorize all entries with one category to another.
public  voidrelease()
     Release all resources held by manager.
public  voidremoveComment(CommentData comment)
     Remove comment.
public  voidremoveHitCount(HitCountData hitCount)
     Remove a HitCountData object.
public  intremoveMatchingComments(WebsiteData website, WeblogEntryData entry, String searchString, Date startDate, Date endDate, Boolean pending, Boolean approved, Boolean spam)
     Deletes comments that match paramters.
public  voidremoveWeblogCategory(WeblogCategoryData cat)
     Remove weblog category.
public  voidremoveWeblogEntry(WeblogEntryData entry)
     Remove weblog entry.
public  voidresetAllHitCounts()
     Reset the hit counts for all weblogs.
public  voidresetHitCount(WebsiteData weblog)
     Reset the hit counts for a single weblog.
public  voidsaveComment(CommentData comment)
     Save comment.
public  voidsaveHitCount(HitCountData hitCount)
     Save a HitCountData object.
public  voidsaveWeblogCategory(WeblogCategoryData cat)
     Save weblog category.
public  voidsaveWeblogEntry(WeblogEntryData entry)
     Save weblog entry.
public  voidupdateTagCount(String name, WebsiteData website, int amount)
     This method maintains the tag aggregate table up-to-date with total counts.

Field Detail
CATEGORY_ATT
final public static String CATEGORY_ATT(Code)





Method Detail
applyCommentDefaultsToEntries
public void applyCommentDefaultsToEntries(WebsiteData website) throws RollerException(Code)
Apply comment default settings from website to all of website's entries.



createAnchor
public String createAnchor(WeblogEntryData data) throws RollerException(Code)
Create unique anchor for weblog entry.



getAllWeblogCategoryDecscendentAssocs
public List getAllWeblogCategoryDecscendentAssocs(WeblogCategoryData data) throws RollerException(Code)
Get all descendent associations for a category.



getComment
public CommentData getComment(String id) throws RollerException(Code)
Get comment by id.



getComments
public List getComments(WebsiteData website, WeblogEntryData entry, String searchString, Date startDate, Date endDate, Boolean pending, Boolean approved, Boolean spam, boolean reverseChrono, int offset, int length) throws RollerException(Code)
Generic comments query method.
Parameters:
  website - Website or null for all comments on site
Parameters:
  entry - Entry or null to include all comments
Parameters:
  startDate - Start date or null for no restriction
Parameters:
  endDate - End date or null for no restriction
Parameters:
  pending - Pending flag value or null for no restriction
Parameters:
  approved - Approved flag value or null for no restriction
Parameters:
  reverseChrono - True for results in reverse chrono order
Parameters:
  spam - Spam flag value or null for no restriction
Parameters:
  offset - Offset into results for paging
Parameters:
  length - Max comments to return (or -1 for no limit)



getHitCount
public HitCountData getHitCount(String id) throws RollerException(Code)
Get a HitCountData by id.
Parameters:
  id - The HitCountData id. The HitCountData object, or null if it wasn't found.
throws:
  RollerException - If there was a problem with the backend.



getHitCountByWeblog
public HitCountData getHitCountByWeblog(WebsiteData weblog) throws RollerException(Code)
Get a HitCountData by weblog.
Parameters:
  weblog - The WebsiteData that you want the hit count for. The HitCountData object, or null if it wasn't found.
throws:
  RollerException - If there was a problem with the backend.



getHotWeblogs
public List getHotWeblogs(int sinceDays, int offset, int length) throws RollerException(Code)
Get HitCountData objects for the hotest weblogs. The results may be constrained to a certain number of days back from the current time, as well as pagable via the offset and length params. The results are ordered by highest counts in descending order, and any weblogs which are not active or enabled are not included.
Parameters:
  sinceDays - Number of days in the past to consider.
Parameters:
  offset - What index in the results to begin from.
Parameters:
  length - The number of results to return. The list of HitCountData objects ranked by hit count, descending.
throws:
  RollerException - If there was a problem with the backend.



getMostCommentedWeblogEntries
public List getMostCommentedWeblogEntries(WebsiteData website, Date startDate, Date endDate, int offset, int length) throws RollerException(Code)
Get weblog enties ordered by descending number of comments.
Parameters:
  website - Weblog or null to get for all weblogs.
Parameters:
  startDate - Start date or null for no start date.
Parameters:
  endDate - End date or null for no end date.
Parameters:
  offset - Offset into results for paging
Parameters:
  length - Max comments to return (or -1 for no limit)



getNextEntries
public List getNextEntries(WeblogEntryData entry, String catName, String locale, int maxEntries) throws RollerException(Code)
Get entries next after current entry.
Parameters:
  entry - Current entry.
Parameters:
  catName - Only return entries in this category (if not null).
Parameters:
  maxEntries - Maximum number of entries to return.



getNextEntry
public WeblogEntryData getNextEntry(WeblogEntryData current, String catName, String locale) throws RollerException(Code)
Get the WeblogEntry following, chronologically, the current entry. Restrict by the Category, if named.
Parameters:
  current - The "current" WeblogEntryData
Parameters:
  catName - The value of the requested Category Name



getPath
public String getPath(WeblogCategoryData category) throws RollerException(Code)
Get absolute path to category, appropriate for use by getWeblogCategoryByPath().
Parameters:
  category - WeblogCategoryData. Forward slash separated path string.



getPopularTags
public List getPopularTags(WebsiteData website, Date startDate, int limit) throws RollerException(Code)
Get list of TagStat. There's no offset/length params just a limit.
Parameters:
  website - Weblog or null to get for all weblogs.
Parameters:
  startDate - Date or null of the most recent time a tag was used.
Parameters:
  limit - Max TagStats to return (or -1 for no limit)
throws:
  RollerException -



getPreviousEntries
public List getPreviousEntries(WeblogEntryData entry, String catName, String locale, int maxEntries) throws RollerException(Code)
Get entries previous to current entry.
Parameters:
  entry - Current entry.
Parameters:
  catName - Only return entries in this category (if not null).
Parameters:
  maxEntries - Maximum number of entries to return.



getPreviousEntry
public WeblogEntryData getPreviousEntry(WeblogEntryData current, String catName, String locale) throws RollerException(Code)
Get the WeblogEntry prior to, chronologically, the current entry. Restrict by the Category, if named.
Parameters:
  current - The "current" WeblogEntryData.
Parameters:
  catName - The value of the requested Category Name.



getRootWeblogCategory
public WeblogCategoryData getRootWeblogCategory(WebsiteData website) throws RollerException(Code)
Get top level categories for a website.
Parameters:
  website - Website.



getTagComboExists
public boolean getTagComboExists(List tags, WebsiteData weblog) throws RollerException(Code)
Does the specified tag combination exist? Optionally confined to a specific weblog. This tests if the intersection of the tags listed will yield any results and returns a true/false value if so. This means that if the tags list is "foo", "bar" and only the tag "foo" has been used then this method should return false.
Parameters:
  tags - The List of tags to check for.
Parameters:
  weblog - The weblog to confine the check to. True if tags exist, false otherwise.
throws:
  RollerException - If there is any problem doing the operation.



getTags
public List getTags(WebsiteData website, String sortBy, String startsWith, int limit) throws RollerException(Code)
Get list of TagStat. There's no offset/length params just a limit.
Parameters:
  website - Weblog or null to get for all weblogs.
Parameters:
  sortBy - Sort by either 'name' or 'count' (null for name)
Parameters:
  startsWith - Prefix for tags to be returned (null or a string of length > 0)
Parameters:
  limit - Max TagStats to return (or -1 for no limit)
throws:
  RollerException -



getWeblogCategories
public List getWeblogCategories(WebsiteData website) throws RollerException(Code)
Get WebLogCategory objects for a website.



getWeblogCategories
public List getWeblogCategories(WebsiteData website, boolean includeRoot) throws RollerException(Code)
Get WebLogCategory objects for a website.



getWeblogCategory
public WeblogCategoryData getWeblogCategory(String id) throws RollerException(Code)
Get category by id.



getWeblogCategoryAncestorAssocs
public List getWeblogCategoryAncestorAssocs(WeblogCategoryData data) throws RollerException(Code)
Get all ancestor associates for a category.



getWeblogCategoryByPath
public WeblogCategoryData getWeblogCategoryByPath(WebsiteData website, String categoryPath) throws RollerException(Code)
Get category specified by website and categoryPath.
Parameters:
  website - Website of WeblogCategory.
Parameters:
  categoryPath - Path of WeblogCategory, relative to category root.



getWeblogCategoryByPath
public WeblogCategoryData getWeblogCategoryByPath(WebsiteData wd, WeblogCategoryData category, String string) throws RollerException(Code)
Get sub-category by path relative to specified category.
Parameters:
  category - Root of path or null to start at top of category tree.
Parameters:
  path - Path of category to be located.
Parameters:
  website - Website of categories. Category specified by path or null if not found.



getWeblogCategoryChildAssocs
public List getWeblogCategoryChildAssocs(WeblogCategoryData data) throws RollerException(Code)
Get child associations for a category.



getWeblogCategoryParentAssoc
public Assoc getWeblogCategoryParentAssoc(WeblogCategoryData data) throws RollerException(Code)
Get parent association for a category.



getWeblogEntries
public List getWeblogEntries(WebsiteData website, UserData user, Date startDate, Date endDate, String catName, List tags, String status, String sortBy, String locale, int offset, int range) throws RollerException(Code)
Get WeblogEntries by offset/length as list in reverse chronological order. The range offset and list arguments enable paging through query results.
Parameters:
  website - Weblog or null to get for all weblogs.
Parameters:
  user - User or null to get for all users.
Parameters:
  startDate - Start date or null for no start date.
Parameters:
  endDate - End date or null for no end date.
Parameters:
  catName - Category path or null for all categories.
Parameters:
  status - Status of DRAFT, PENDING, PUBLISHED or null for all
Parameters:
  sortBy - Sort by either 'pubTime' or 'updateTime' (null for pubTime)
Parameters:
  offset - Offset into results for paging
Parameters:
  length - Max comments to return (or -1 for no limit) List of WeblogEntryData objects in reverse chrono order.
throws:
  RollerException -



getWeblogEntries
public List getWeblogEntries(WeblogCategoryData cat, boolean subcats) throws RollerException(Code)
Get weblog entries with given category or, optionally, any sub-category of that category.
Parameters:
  cat - Category
Parameters:
  subcats - True if sub-categories are to be fetched List of weblog entries in category



getWeblogEntriesPinnedToMain
public List getWeblogEntriesPinnedToMain(Integer max) throws RollerException(Code)
Get specified number of most recent pinned and published Weblog Entries.
Parameters:
  max - Maximum number to return. Collection of WeblogEntryData objects.



getWeblogEntry
public WeblogEntryData getWeblogEntry(String id) throws RollerException(Code)
Get weblog entry by id.



getWeblogEntryByAnchor
public WeblogEntryData getWeblogEntryByAnchor(WebsiteData website, String anchor) throws RollerException(Code)
Get weblog entry by anchor.



getWeblogEntryObjectMap
public Map getWeblogEntryObjectMap(WebsiteData website, Date startDate, Date endDate, String catName, List tags, String status, String locale, int offset, int range) throws RollerException(Code)
Get Weblog Entries grouped by day. This method returns a Map that contains Lists, each List contains WeblogEntryData objects, and the Lists are keyed by Date objects.
Parameters:
  website - Weblog or null to get for all weblogs.
Parameters:
  startDate - Start date or null for no start date.
Parameters:
  endDate - End date or null for no end date.
Parameters:
  catName - Category path or null for all categories.
Parameters:
  status - Status of DRAFT, PENDING, PUBLISHED or null for all
Parameters:
  offset - Offset into results for paging
Parameters:
  length - Max comments to return (or -1 for no limit) Map of Lists, keyed by Date, and containing WeblogEntryData.
throws:
  RollerException -



getWeblogEntryStringMap
public Map getWeblogEntryStringMap(WebsiteData website, Date startDate, Date endDate, String catName, List tags, String status, String locale, int offset, int range) throws RollerException(Code)
Get Weblog Entry date strings grouped by day. This method returns a Map that contains Lists, each List contains YYYYMMDD date strings objects, and the Lists are keyed by Date objects.
Parameters:
  website - Weblog or null to get for all weblogs.
Parameters:
  startDate - Start date or null for no start date.
Parameters:
  endDate - End date or null for no end date.
Parameters:
  catName - Category path or null for all categories.
Parameters:
  status - Status of DRAFT, PENDING, PUBLISHED or null for all
Parameters:
  offset - Offset into results for paging
Parameters:
  length - Max comments to return (or -1 for no limit) Map of Lists, keyed by Date, and containing date strings.
throws:
  RollerException -



getWeblogLastPublishTime
public Date getWeblogLastPublishTime(WebsiteData website) throws RollerException(Code)
Get time of last update for a weblog specified by username



getWeblogLastPublishTime
public Date getWeblogLastPublishTime(WebsiteData website, String catName) throws RollerException(Code)
Gets returns most recent pubTime, optionally restricted by category.
Parameters:
  handle - Handle of website or null for all users
Parameters:
  catName - Category name of posts or null for all categories Date Of last publish time



incrementHitCount
public void incrementHitCount(WebsiteData weblog, int amount) throws RollerException(Code)
Increment the hit count for a weblog by a certain amount. This is basically a convenience method for doing a lookup, modify, save of a HitCountData object.
Parameters:
  weblog - The WebsiteData object to increment the count for.
Parameters:
  amount - How much to increment by.
throws:
  RollerException - If there was a problem with the backend.



isDescendentOf
public boolean isDescendentOf(WeblogCategoryData child, WeblogCategoryData ancestor) throws RollerException(Code)
Returns true if ancestor is truly an ancestor of child.



isDuplicateWeblogCategoryName
public boolean isDuplicateWeblogCategoryName(WeblogCategoryData data) throws RollerException(Code)
Check for duplicate category name.



isWeblogCategoryInUse
public boolean isWeblogCategoryInUse(WeblogCategoryData data) throws RollerException(Code)
Check if weblog category is in use.



moveWeblogCategoryContents
public void moveWeblogCategoryContents(WeblogCategoryData srcCat, WeblogCategoryData destCat) throws RollerException(Code)
Recategorize all entries with one category to another.



release
public void release()(Code)
Release all resources held by manager.



removeComment
public void removeComment(CommentData comment) throws RollerException(Code)
Remove comment.



removeHitCount
public void removeHitCount(HitCountData hitCount) throws RollerException(Code)
Remove a HitCountData object.
Parameters:
  hitCount - The HitCountData object to remove.
throws:
  RollerException - If there was a problem with the backend.



removeMatchingComments
public int removeMatchingComments(WebsiteData website, WeblogEntryData entry, String searchString, Date startDate, Date endDate, Boolean pending, Boolean approved, Boolean spam) throws RollerException(Code)
Deletes comments that match paramters.
Parameters:
  website - Website or null for all comments on site
Parameters:
  entry - Entry or null to include all comments
Parameters:
  startDate - Start date or null for no restriction
Parameters:
  endDate - End date or null for no restriction
Parameters:
  approved - Pending flag value or null for no restriction
Parameters:
  pending - Approved flag value or null for no restriction Number of comments deleted



removeWeblogCategory
public void removeWeblogCategory(WeblogCategoryData cat) throws RollerException(Code)
Remove weblog category.



removeWeblogEntry
public void removeWeblogEntry(WeblogEntryData entry) throws RollerException(Code)
Remove weblog entry.



resetAllHitCounts
public void resetAllHitCounts() throws RollerException(Code)
Reset the hit counts for all weblogs. This sets the counts back to 0.
throws:
  RollerException - If there was a problem with the backend.



resetHitCount
public void resetHitCount(WebsiteData weblog) throws RollerException(Code)
Reset the hit counts for a single weblog. This sets the count to 0.
Parameters:
  weblog - The WebsiteData object to reset the count for.
throws:
  RollerException - If there was a problem with the backend.



saveComment
public void saveComment(CommentData comment) throws RollerException(Code)
Save comment.



saveHitCount
public void saveHitCount(HitCountData hitCount) throws RollerException(Code)
Save a HitCountData object.
Parameters:
  hitCount - The HitCountData object to save.
throws:
  RollerException - If there was a problem with the backend.



saveWeblogCategory
public void saveWeblogCategory(WeblogCategoryData cat) throws RollerException(Code)
Save weblog category.



saveWeblogEntry
public void saveWeblogEntry(WeblogEntryData entry) throws RollerException(Code)
Save weblog entry.



updateTagCount
public void updateTagCount(String name, WebsiteData website, int amount) throws RollerException(Code)
This method maintains the tag aggregate table up-to-date with total counts. More specifically every time this method is called it will act upon exactly two rows in the database (tag,website,count), one with website matching the argument passed and one where website is null. If the count ever reaches zero, the row must be deleted.
Parameters:
  name - The tag name
Parameters:
  website - The website to used when updating the stats.
Parameters:
  amount - The amount to increment the tag count (it can be positive or negative).
throws:
  RollerException -



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