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


java.lang.Object
   org.apache.roller.pojos.PersistentObject
      org.apache.roller.pojos.WeblogEntryData

WeblogEntryData
public class WeblogEntryData extends PersistentObject implements Serializable(Code)
Represents a Weblog Entry.


Field Summary
final public static  StringDRAFT
    
final public static  StringPENDING
    
final public static  StringPUBLISHED
    
final public static  longserialVersionUID
    

Constructor Summary
public  WeblogEntryData()
    
public  WeblogEntryData(String id, WeblogCategoryData category, WebsiteData website, UserData creator, String title, String link, String text, String anchor, Timestamp pubTime, Timestamp updateTime, String status)
    
public  WeblogEntryData(WeblogEntryData otherData)
    

Method Summary
public  voidaddTag(String name)
     Roller lowercases all tags based on locale because there's not a 1:1 mapping between uppercase/lowercase characters across all languages.
protected  StringcreateAnchor()
    
public  StringcreateAnchorBase()
    
public  StringdisplayContent(String readMoreLink)
     Get the right transformed display content depending on the situation. If the readMoreLink is specified then we assume the caller wants to prefer summary over content and we include a "Read More" link at the end of the summary if it exists.
public  booleanequals(Object pOther)
    
public  StringfindEntryAttribute(String name)
    
public  StringformatPubTime(String pattern)
     Format the publish time of this weblog entry using the specified pattern.
public  StringformatUpdateTime(String pattern)
     Format the update time of this weblog entry using the specified pattern.
public  SetgetAddedTags()
    
public  BooleangetAllowComments()
     True if comments are allowed on this weblog entry.
public  StringgetAnchor()
    
public  ListgetCategories()
     Return collection of WeblogCategoryData objects of this entry.
public  WeblogCategoryDatagetCategory()
    
public  intgetCommentCount()
    
public  IntegergetCommentDays()
     Number of days after pubTime that comments should be allowed, or 0 for no limit.
public  ListgetComments()
    
public  ListgetComments(boolean ignoreSpam, boolean approvedOnly)
    
public  StringgetCommentsLink()
     Get relative URL to comments page.
public  booleangetCommentsStillAllowed()
     True if comments are still allowed on this entry considering the allowComments and commentDays fields as well as the website and site-wide configs.
public  StringgetContentSrc()
     Get URL for out-of-line content.
public  StringgetContentType()
    
public  UserDatagetCreator()
    
public  StringgetDisplayContent()
     Get the right transformed display content.
public  StringgetDisplayTitle()
     Return the Title of this post, or the first 255 characters of the entry's text.
public  SetgetEntryAttributes()
     Map attributes as set because XDoclet 1.2b4 map support is broken.
public  StringgetId()
    
public  StringgetLink()
     Some weblog entries are about one specific link.
public  StringgetLocale()
     The locale string that defines the i18n approach for this entry.
public  StringgetPermaLink()
     Returns entry permalink, relative to Roller context.
public  StringgetPermalink()
     Returns absolute entry permalink.
public  BooleangetPinnedToMain()
     True if story should be pinned to the top of the Roller site main blog.
public  StringgetPlugins()
     Comma-delimited list of this entry's Plugins.
public  ListgetPluginsList()
    
public  TimestampgetPubTime()
    

Publish time is the time that an entry is to be (or was) made available for viewing by newsfeed readers and visitors to the Roller site.

Roller stores time using the timeZone of the server itself.

public  ListgetReferers()
    
public  SetgetRemovedTags()
    
public  BooleangetRightToLeft()
     True if this entry should be rendered right to left.
public  StringgetRss09xDescription()
    
public  StringgetRss09xDescription(int maxLength)
    
public  StringgetStatus()
    
public  StringgetSummary()
     Get summary for weblog entry (maps to RSS description and Atom summary).
public  SetgetTags()
    
public  StringgetTagsAsString()
    
public  StringgetText()
     Get content text for weblog entry (maps to RSS content:encoded and Atom content).
public  StringgetTitle()
    
public  StringgetTransformedSummary()
     Get entry summary, transformed by plugins enabled for entry.
public  StringgetTransformedText()
     Get entry text, transformed by plugins enabled for entry.
public  TimestampgetUpdateTime()
    

Update time is the last time that an weblog entry was saved in the Roller weblog editor or via web services API (XML-RPC or Atom).

Roller stores time using the timeZone of the server itself.

public  WebsiteDatagetWebsite()
    
public  booleanhasWritePermissions(UserData user)
     Determine if the specified user has permissions to edit this entry.
public  inthashCode()
    
public  booleanisDraft()
    
public  booleanisPending()
    
public  booleanisPublished()
    
public  voidputEntryAttribute(String name, String value)
    
public  voidremoveEntryAttribute(String name)
    
public  voidremoveTag(String name)
    
public  voidsetAllowComments(Boolean allowComments)
     True if comments are allowed on this weblog entry.
public  voidsetAnchor(String anchor)
    
public  voidsetCategories(List cats)
    
public  voidsetCategory(WeblogCategoryData category)
    
public  voidsetCategoryId(String id)
     Set weblog category via weblog category ID.
public  voidsetCommentCount(int ignored)
    
public  voidsetCommentDays(Integer commentDays)
     Number of days after pubTime that comments should be allowed, or 0 for no limit.
public  voidsetCommentsLink(String ignored)
    
public  voidsetCommentsStillAllowed(boolean ignored)
    
public  voidsetContentSrc(String contentSrc)
     Set URL for out-of-line content.
public  voidsetContentType(String contentType)
    
public  voidsetCreator(UserData creator)
    
public  voidsetCreatorId(String creatorId)
    
public  voidsetData(PersistentObject otherData)
    
public  voidsetDisplayContent(String ignored)
    
public  voidsetDisplayTitle(String string)
     A no-op.
public  voidsetDraft(boolean value)
    
public  voidsetEntryAttributes(Set attSet)
    
public  voidsetId(String id)
    
public  voidsetLink(String link)
    
public  voidsetLocale(String locale)
    
public  voidsetPending(boolean value)
    
public  voidsetPermaLink(String string)
     A no-op.
public  voidsetPermalink(String string)
     A no-op.
public  voidsetPinnedToMain(Boolean pinnedToMain)
     True if story should be pinned to the top of the Roller site main blog.
public  voidsetPlugins(String string)
    
public  voidsetPubTime(Timestamp pubTime)
    
public  voidsetPublished(boolean value)
    
public  voidsetRightToLeft(Boolean rightToLeft)
     True if this entry should be rendered right to left.
public  voidsetRss09xDescription(String string)
     A no-op.
public  voidsetStatus(String status)
    
public  voidsetSummary(String summary)
     Set summary for weblog entry (maps to RSS description and Atom summary).
public  voidsetTagsAsString(String tags)
    
public  voidsetText(String text)
     Set content text for weblog entry (maps to RSS content:encoded and Atom content).
public  voidsetTitle(String title)
    
public  voidsetTransformedSummary(String t)
     No-op to please XDoclet.
public  voidsetTransformedText(String t)
     No-op to please XDoclet.
public  voidsetUpdateTime(Timestamp updateTime)
    
public  voidsetWebsite(WebsiteData website)
    
public  StringtoString()
    
public  voidupdateTags(List tags)
    

Field Detail
DRAFT
final public static String DRAFT(Code)



PENDING
final public static String PENDING(Code)



PUBLISHED
final public static String PUBLISHED(Code)



serialVersionUID
final public static long serialVersionUID(Code)




Constructor Detail
WeblogEntryData
public WeblogEntryData()(Code)



WeblogEntryData
public WeblogEntryData(String id, WeblogCategoryData category, WebsiteData website, UserData creator, String title, String link, String text, String anchor, Timestamp pubTime, Timestamp updateTime, String status)(Code)



WeblogEntryData
public WeblogEntryData(WeblogEntryData otherData)(Code)




Method Detail
addTag
public void addTag(String name) throws RollerException(Code)
Roller lowercases all tags based on locale because there's not a 1:1 mapping between uppercase/lowercase characters across all languages.
Parameters:
  name -
throws:
  RollerException -



createAnchor
protected String createAnchor() throws RollerException(Code)
Create anchor for weblog entry, based on title or text



createAnchorBase
public String createAnchorBase()(Code)
Create anchor for weblog entry, based on title or text



displayContent
public String displayContent(String readMoreLink)(Code)
Get the right transformed display content depending on the situation. If the readMoreLink is specified then we assume the caller wants to prefer summary over content and we include a "Read More" link at the end of the summary if it exists. Otherwise, if the readMoreLink is empty or null then we assume the caller prefers content over summary.



equals
public boolean equals(Object pOther)(Code)



findEntryAttribute
public String findEntryAttribute(String name)(Code)
Would be named getEntryAttribute, but that would set off XDoclet



formatPubTime
public String formatPubTime(String pattern)(Code)
Format the publish time of this weblog entry using the specified pattern. See java.text.SimpleDateFormat for more information on this format.
See Also:   java.text.SimpleDateFormat Publish time formatted according to pattern.



formatUpdateTime
public String formatUpdateTime(String pattern)(Code)
Format the update time of this weblog entry using the specified pattern. See java.text.SimpleDateFormat for more information on this format.
See Also:   java.text.SimpleDateFormat Update time formatted according to pattern.



getAddedTags
public Set getAddedTags()(Code)



getAllowComments
public Boolean getAllowComments()(Code)
True if comments are allowed on this weblog entry.



getAnchor
public String getAnchor()(Code)



getCategories
public List getCategories()(Code)
Return collection of WeblogCategoryData objects of this entry. Added for symetry with PlanetEntryData object.



getCategory
public WeblogCategoryData getCategory()(Code)



getCommentCount
public int getCommentCount()(Code)



getCommentDays
public Integer getCommentDays()(Code)
Number of days after pubTime that comments should be allowed, or 0 for no limit.



getComments
public List getComments()(Code)



getComments
public List getComments(boolean ignoreSpam, boolean approvedOnly)(Code)



getCommentsLink
public String getCommentsLink()(Code)
Get relative URL to comments page.



getCommentsStillAllowed
public boolean getCommentsStillAllowed()(Code)
True if comments are still allowed on this entry considering the allowComments and commentDays fields as well as the website and site-wide configs.



getContentSrc
public String getContentSrc()(Code)
Get URL for out-of-line content.



getContentType
public String getContentType()(Code)
Get content type (text, html, xhtml or a MIME content type)



getCreator
public UserData getCreator()(Code)



getDisplayContent
public String getDisplayContent()(Code)
Get the right transformed display content.



getDisplayTitle
public String getDisplayTitle()(Code)
Return the Title of this post, or the first 255 characters of the entry's text. String



getEntryAttributes
public Set getEntryAttributes()(Code)
Map attributes as set because XDoclet 1.2b4 map support is broken.



getId
public String getId()(Code)



getLink
public String getLink()(Code)
Some weblog entries are about one specific link. Returns the link.



getLocale
public String getLocale()(Code)
The locale string that defines the i18n approach for this entry.



getPermaLink
public String getPermaLink()(Code)
Returns entry permalink, relative to Roller context.



getPermalink
public String getPermalink()(Code)
Returns absolute entry permalink.



getPinnedToMain
public Boolean getPinnedToMain()(Code)
True if story should be pinned to the top of the Roller site main blog. Returns the pinned.



getPlugins
public String getPlugins()(Code)
Comma-delimited list of this entry's Plugins.



getPluginsList
public List getPluginsList()(Code)
Convenience method to transform mPlugins to a List



getPubTime
public Timestamp getPubTime()(Code)

Publish time is the time that an entry is to be (or was) made available for viewing by newsfeed readers and visitors to the Roller site.

Roller stores time using the timeZone of the server itself. When times are displayed in a user's weblog they must be translated to the user's timeZone.

NOTE: Times are stored using the SQL TIMESTAMP datatype, which on MySQL has only a one-second resolution.




getReferers
public List getReferers()(Code)



getRemovedTags
public Set getRemovedTags()(Code)



getRightToLeft
public Boolean getRightToLeft()(Code)
True if this entry should be rendered right to left.



getRss09xDescription
public String getRss09xDescription()(Code)
Return RSS 09x style description (escaped HTML version of entry text)



getRss09xDescription
public String getRss09xDescription(int maxLength)(Code)
Return RSS 09x style description (escaped HTML version of entry text)



getStatus
public String getStatus()(Code)



getSummary
public String getSummary()(Code)
Get summary for weblog entry (maps to RSS description and Atom summary).



getTags
public Set getTags()(Code)



getTagsAsString
public String getTagsAsString()(Code)



getText
public String getText()(Code)
Get content text for weblog entry (maps to RSS content:encoded and Atom content).



getTitle
public String getTitle()(Code)



getTransformedSummary
public String getTransformedSummary()(Code)
Get entry summary, transformed by plugins enabled for entry.



getTransformedText
public String getTransformedText()(Code)
Get entry text, transformed by plugins enabled for entry.



getUpdateTime
public Timestamp getUpdateTime()(Code)

Update time is the last time that an weblog entry was saved in the Roller weblog editor or via web services API (XML-RPC or Atom).

Roller stores time using the timeZone of the server itself. When times are displayed in a user's weblog they must be translated to the user's timeZone.

NOTE: Times are stored using the SQL TIMESTAMP datatype, which on MySQL has only a one-second resolution.




getWebsite
public WebsiteData getWebsite()(Code)



hasWritePermissions
public boolean hasWritePermissions(UserData user) throws RollerException(Code)
Determine if the specified user has permissions to edit this entry.



hashCode
public int hashCode()(Code)



isDraft
public boolean isDraft()(Code)
Convenience method for checking status



isPending
public boolean isPending()(Code)
Convenience method for checking status



isPublished
public boolean isPublished()(Code)
Convenience method for checking status



putEntryAttribute
public void putEntryAttribute(String name, String value) throws Exception(Code)



removeEntryAttribute
public void removeEntryAttribute(String name) throws RollerException(Code)



removeTag
public void removeTag(String name) throws RollerException(Code)



setAllowComments
public void setAllowComments(Boolean allowComments)(Code)
True if comments are allowed on this weblog entry.



setAnchor
public void setAnchor(String anchor)(Code)



setCategories
public void setCategories(List cats)(Code)
No-op method to please XDoclet



setCategory
public void setCategory(WeblogCategoryData category)(Code)



setCategoryId
public void setCategoryId(String id) throws RollerException(Code)
Set weblog category via weblog category ID.
Parameters:
  id - Weblog category ID.



setCommentCount
public void setCommentCount(int ignored)(Code)
No-op to please XDoclet



setCommentDays
public void setCommentDays(Integer commentDays)(Code)
Number of days after pubTime that comments should be allowed, or 0 for no limit.



setCommentsLink
public void setCommentsLink(String ignored)(Code)
to please XDoclet



setCommentsStillAllowed
public void setCommentsStillAllowed(boolean ignored)(Code)



setContentSrc
public void setContentSrc(String contentSrc)(Code)
Set URL for out-of-line content.



setContentType
public void setContentType(String contentType)(Code)
Set content type (text, html, xhtml or a MIME content type)



setCreator
public void setCreator(UserData creator)(Code)



setCreatorId
public void setCreatorId(String creatorId) throws RollerException(Code)
Set creator by user id (for use in form's copyTo method)
Parameters:
  creatorId -



setData
public void setData(PersistentObject otherData)(Code)
Setter is needed in RollerImpl.storePersistentObject()



setDisplayContent
public void setDisplayContent(String ignored)(Code)
No-op method to please XDoclet



setDisplayTitle
public void setDisplayTitle(String string)(Code)
A no-op. TODO: fix formbean generation so this is not needed.
Parameters:
  string -



setDraft
public void setDraft(boolean value)(Code)
no-op: needed only to satisfy XDoclet, use setStatus() instead



setEntryAttributes
public void setEntryAttributes(Set attSet)(Code)



setId
public void setId(String id)(Code)



setLink
public void setLink(String link)(Code)

Parameters:
  link - The link to set.



setLocale
public void setLocale(String locale)(Code)



setPending
public void setPending(boolean value)(Code)
no-op: needed only to satisfy XDoclet, use setStatus() instead



setPermaLink
public void setPermaLink(String string)(Code)
A no-op. TODO: fix formbean generation so this is not needed.



setPermalink
public void setPermalink(String string)(Code)
A no-op. TODO: fix formbean generation so this is not needed.



setPinnedToMain
public void setPinnedToMain(Boolean pinnedToMain)(Code)
True if story should be pinned to the top of the Roller site main blog.
Parameters:
  pinnedToMain - The pinned to set.



setPlugins
public void setPlugins(String string)(Code)



setPubTime
public void setPubTime(Timestamp pubTime)(Code)



setPublished
public void setPublished(boolean value)(Code)
no-op: needed only to satisfy XDoclet, use setStatus() instead



setRightToLeft
public void setRightToLeft(Boolean rightToLeft)(Code)
True if this entry should be rendered right to left.



setRss09xDescription
public void setRss09xDescription(String string)(Code)
A no-op. TODO: fix formbean generation so this is not needed.
Parameters:
  string -



setStatus
public void setStatus(String status)(Code)



setSummary
public void setSummary(String summary)(Code)
Set summary for weblog entry (maps to RSS description and Atom summary).



setTagsAsString
public void setTagsAsString(String tags) throws RollerException(Code)



setText
public void setText(String text)(Code)
Set content text for weblog entry (maps to RSS content:encoded and Atom content).



setTitle
public void setTitle(String title)(Code)



setTransformedSummary
public void setTransformedSummary(String t)(Code)
No-op to please XDoclet.



setTransformedText
public void setTransformedText(String t)(Code)
No-op to please XDoclet.



setUpdateTime
public void setUpdateTime(Timestamp updateTime)(Code)



setWebsite
public void setWebsite(WebsiteData website)(Code)



toString
public String toString()(Code)



updateTags
public void updateTags(List tags) throws RollerException(Code)



Methods inherited from org.apache.roller.pojos.PersistentObject
public boolean equals(Object o)(Code)(Java Doc)
abstract public String getId()(Code)(Java Doc)
abstract public void setData(PersistentObject obj)(Code)(Java Doc)
abstract public void setId(String id)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.