Java Doc for WeblogPlugin.java in  » Wiki-Engine » JSPWiki » com » ecyrd » jspwiki » plugin » 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 » Wiki Engine » JSPWiki » com.ecyrd.jspwiki.plugin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ecyrd.jspwiki.plugin.WeblogPlugin

WeblogPlugin
public class WeblogPlugin implements WikiPlugin,ParserStagePlugin(Code)

Builds a simple weblog. The pageformat can use the following params:

%p - Page name

Parameters:

  • page - which page is used to do the blog; default is the current page.
  • entryFormat - how to display the date on pages, using the J2SE SimpleDateFormat syntax. Defaults to the current locale's DateFormat.LONG format for the date, and current locale's DateFormat.SHORT for the time. Thus, for the US locale this will print dates similar to this: September 4, 2005 11:54 PM
  • days - how many days the weblog aggregator should show. If set to "all", shows all pages.
  • pageformat - What the entry pages should look like.
  • startDate - Date when to start. Format is "ddMMyy."
  • maxEntries - How many entries to show at most.

The "days" and "startDate" can also be sent in HTTP parameters, and the names are "weblog.days" and "weblog.startDate", respectively.

The weblog plugin also adds an attribute to each page it is on: "weblogplugin.isweblog" is set to "true". This can be used to quickly peruse pages which have weblogs.


since:
   1.9.21


Field Summary
final public static  StringATTR_ISWEBLOG
    
final public static  StringDEFAULT_DATEFORMAT
    
final public static  intDEFAULT_DAYS
     How many days are considered by default.
final public static  StringDEFAULT_PAGEFORMAT
    
final public static  StringPARAM_ALLOWCOMMENTS
    
final public static  StringPARAM_DAYS
    
final public static  StringPARAM_ENTRYFORMAT
    
final public static  StringPARAM_MAXENTRIES
    
final public static  StringPARAM_PAGE
    
final public static  StringPARAM_STARTDATE
    


Method Summary
public  Stringexecute(WikiContext context, Map params)
    
public  voidexecuteParser(PluginContent element, WikiContext context, Map params)
     Mark us as being a real weblog.
public  ListfindBlogEntries(PageManager mgr, String baseName, Date start, Date end)
     Attempts to locate all pages that correspond to the blog entry pattern.
public static  StringmakeEntryPage(String pageName, String date, String entryNum)
    
public static  StringmakeEntryPage(String pageName)
    
public static  StringmakeEntryPage(String pageName, String date)
    

Field Detail
ATTR_ISWEBLOG
final public static String ATTR_ISWEBLOG(Code)



DEFAULT_DATEFORMAT
final public static String DEFAULT_DATEFORMAT(Code)



DEFAULT_DAYS
final public static int DEFAULT_DAYS(Code)
How many days are considered by default. Default value is



DEFAULT_PAGEFORMAT
final public static String DEFAULT_PAGEFORMAT(Code)



PARAM_ALLOWCOMMENTS
final public static String PARAM_ALLOWCOMMENTS(Code)



PARAM_DAYS
final public static String PARAM_DAYS(Code)



PARAM_ENTRYFORMAT
final public static String PARAM_ENTRYFORMAT(Code)



PARAM_MAXENTRIES
final public static String PARAM_MAXENTRIES(Code)



PARAM_PAGE
final public static String PARAM_PAGE(Code)



PARAM_STARTDATE
final public static String PARAM_STARTDATE(Code)





Method Detail
execute
public String execute(WikiContext context, Map params) throws PluginException(Code)



executeParser
public void executeParser(PluginContent element, WikiContext context, Map params)(Code)
Mark us as being a real weblog.



findBlogEntries
public List findBlogEntries(PageManager mgr, String baseName, Date start, Date end) throws ProviderException(Code)
Attempts to locate all pages that correspond to the blog entry pattern. Will only consider the days on the dates; not the hours and minutes.
Parameters:
  mgr - A PageManager which is used to get the pages
Parameters:
  baseName - The basename (e.g. "Main" if you want "Main_blogentry_xxxx")
Parameters:
  start - The date which is the first to be considered
Parameters:
  end - The end date which is the last to be considered a list of pages with their FIRST revisions.
throws:
  ProviderException - If something goes wrong



makeEntryPage
public static String makeEntryPage(String pageName, String date, String entryNum)(Code)



makeEntryPage
public static String makeEntryPage(String pageName)(Code)



makeEntryPage
public static String makeEntryPage(String pageName, String date)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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