Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.roller.presentation.weblog
Class WeblogEntryDataEx  view WeblogEntryDataEx download WeblogEntryDataEx.java

java.lang.Object
  extended byWeblogEntryData
      extended byorg.roller.presentation.weblog.WeblogEntryDataEx

public class WeblogEntryDataEx
extends WeblogEntryData

Extends WeblogEntryData so that it can be really useful in Macros.


Field Summary
private  javax.servlet.http.HttpServletRequest mRequest
           
private  org.apache.velocity.VelocityContext mVelocityContext
           
 
Constructor Summary
WeblogEntryDataEx(WeblogEntryData wd, javax.servlet.http.HttpServletRequest req)
          Constructor for WeblogEntryDataEx that will not support getText.
WeblogEntryDataEx(WeblogEntryData wd, org.apache.velocity.VelocityContext vcontext, javax.servlet.http.HttpServletRequest req)
          Constructor for WeblogEntryDataEx.
 
Method Summary
 java.lang.String formatPubTime(java.lang.String pattern)
           
 java.lang.String formatUpdateTime(java.lang.String pattern)
           
 java.lang.String getPermaLink()
           
 java.lang.String getText()
          Returns weblog entry text after passing it through Velocity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mVelocityContext

private org.apache.velocity.VelocityContext mVelocityContext

mRequest

private javax.servlet.http.HttpServletRequest mRequest
Constructor Detail

WeblogEntryDataEx

public WeblogEntryDataEx(WeblogEntryData wd,
                         org.apache.velocity.VelocityContext vcontext,
                         javax.servlet.http.HttpServletRequest req)
Constructor for WeblogEntryDataEx.


WeblogEntryDataEx

public WeblogEntryDataEx(WeblogEntryData wd,
                         javax.servlet.http.HttpServletRequest req)
Constructor for WeblogEntryDataEx that will not support getText.

Method Detail

getText

public java.lang.String getText()
Returns weblog entry text after passing it through Velocity. If an error occurs, the exception will be returned instead.


getPermaLink

public java.lang.String getPermaLink()

formatPubTime

public java.lang.String formatPubTime(java.lang.String pattern)

formatUpdateTime

public java.lang.String formatUpdateTime(java.lang.String pattern)