org.blojsom.blog
Class FileBackedBlogComment

java.lang.Object
  extended byorg.blojsom.blog.BlogComment
      extended byorg.blojsom.blog.FileBackedBlogComment
All Implemented Interfaces:
java.io.Serializable

public class FileBackedBlogComment
extends BlogComment

FileBackedBlogComment

Since:
blojsom 2.26
Version:
$Id: FileBackedBlogComment.java,v 1.4 2006/01/04 16:59:53 czarneckid Exp $
Author:
David Czarnecki
See Also:
Serialized Form

Field Summary
protected  java.io.File _source
           
 
Fields inherited from class org.blojsom.blog.BlogComment
_author, _authorEmail, _authorURL, _blogEntry, _comment, _commentDate, _commentDateLong, _id, _metaData
 
Constructor Summary
FileBackedBlogComment()
          Default constructor
 
Method Summary
 void delete(BlogUser blogUser)
          Delete the blog comment
 java.io.File getSource()
          Retrieve the source file for this comment
 void load(BlogUser blogUser)
          Load the blog comment
 void save(BlogUser blogUser)
          Save the blog comment
 void setSource(java.io.File source)
          Set the source file for this comment
 
Methods inherited from class org.blojsom.blog.BlogComment
getAuthor, getAuthorEmail, getAuthorURL, getBlogEntry, getComment, getCommentDate, getCommentDateLong, getDateAsFormat, getDateAsFormat, getEscapedComment, getId, getISO8601Date, getMetaData, getRFC822Date, setAuthor, setAuthorEmail, setAuthorURL, setBlogEntry, setComment, setCommentDate, setCommentDateLong, setId, setMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_source

protected transient java.io.File _source
Constructor Detail

FileBackedBlogComment

public FileBackedBlogComment()
Default constructor

Method Detail

getSource

public java.io.File getSource()
Retrieve the source file for this comment

Returns:
File backing this comment

setSource

public void setSource(java.io.File source)
Set the source file for this comment

Parameters:
source - File backing this comment

load

public void load(BlogUser blogUser)
          throws BlojsomException
Load the blog comment

Specified by:
load in class BlogComment
Parameters:
blogUser - BlogUser
Throws:
BlojsomException
Since:
blojsom 2.26

save

public void save(BlogUser blogUser)
          throws BlojsomException
Save the blog comment

Specified by:
save in class BlogComment
Parameters:
blogUser - BlogUser
Throws:
BlojsomException
Since:
blojsom 2.26

delete

public void delete(BlogUser blogUser)
            throws BlojsomException
Delete the blog comment

Specified by:
delete in class BlogComment
Parameters:
blogUser - BlogUser
Throws:
BlojsomException
Since:
blojsom 2.26