org.blojsom.blog
Class FileBackedPingback

java.lang.Object
  extended byorg.blojsom.blog.Trackback
      extended byorg.blojsom.blog.Pingback
          extended byorg.blojsom.blog.FileBackedPingback
All Implemented Interfaces:
java.io.Serializable

public class FileBackedPingback
extends Pingback

FileBackedPingback

Since:
blojsom 2.26
Version:
$Id: FileBackedPingback.java,v 1.6 2006/03/02 16:58:49 czarneckid Exp $
Author:
David Czarnecki
See Also:
Serialized Form

Field Summary
protected  java.io.File _source
           
protected static int PINGBACK_ACCESS_DENIED_CODE
           
protected static int PINGBACK_ALREADY_REGISTERED_CODE
           
protected static int PINGBACK_GENERIC_FAULT_CODE
           
protected static int PINGBACK_NO_LINK_TO_TARGET_URI_CODE
           
protected static int PINGBACK_SOURCE_URI_NON_EXISTENT_CODE
           
protected static int PINGBACK_TARGET_URI_NON_EXISTENT_CODE
           
protected static int PINGBACK_TARGET_URI_NOT_ENABLED_CODE
           
protected static int PINGBACK_UPSTREAM_SERVER_ERROR_CODE
           
 
Fields inherited from class org.blojsom.blog.Trackback
_blogEntry, _blogName, _excerpt, _id, _metaData, _title, _trackbackDate, _trackbackDateLong, _url
 
Constructor Summary
FileBackedPingback()
          Default constructor
FileBackedPingback(java.lang.String title, java.lang.String excerpt, java.lang.String url, java.lang.String blogName)
          Pingback constructor to take a title, excerpt, url, and blog name
 
Method Summary
 void delete(BlogUser blogUser)
          Delete the pingback
 java.io.File getSource()
          Retrieve the source file for this pingback
 void load(BlogUser blogUser)
          Load the pingback
 void save(BlogUser blogUser)
          Save the pingback
 void setSource(java.io.File source)
          Set the source file for this pingback
 
Methods inherited from class org.blojsom.blog.Trackback
getBlogEntry, getBlogName, getDateAsFormat, getDateAsFormat, getExcerpt, getId, getMetaData, getTitle, getTrackbackDate, getTrackbackDateLong, getUrl, setBlogEntry, setBlogName, setExcerpt, setId, setMetaData, setTitle, setTrackbackDate, setTrackbackDateLong, setUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PINGBACK_GENERIC_FAULT_CODE

protected static final int PINGBACK_GENERIC_FAULT_CODE
See Also:
Constant Field Values

PINGBACK_SOURCE_URI_NON_EXISTENT_CODE

protected static final int PINGBACK_SOURCE_URI_NON_EXISTENT_CODE
See Also:
Constant Field Values

PINGBACK_NO_LINK_TO_TARGET_URI_CODE

protected static final int PINGBACK_NO_LINK_TO_TARGET_URI_CODE
See Also:
Constant Field Values

PINGBACK_TARGET_URI_NON_EXISTENT_CODE

protected static final int PINGBACK_TARGET_URI_NON_EXISTENT_CODE
See Also:
Constant Field Values

PINGBACK_TARGET_URI_NOT_ENABLED_CODE

protected static final int PINGBACK_TARGET_URI_NOT_ENABLED_CODE
See Also:
Constant Field Values

PINGBACK_ALREADY_REGISTERED_CODE

protected static final int PINGBACK_ALREADY_REGISTERED_CODE
See Also:
Constant Field Values

PINGBACK_ACCESS_DENIED_CODE

protected static final int PINGBACK_ACCESS_DENIED_CODE
See Also:
Constant Field Values

PINGBACK_UPSTREAM_SERVER_ERROR_CODE

protected static final int PINGBACK_UPSTREAM_SERVER_ERROR_CODE
See Also:
Constant Field Values

_source

protected transient java.io.File _source
Constructor Detail

FileBackedPingback

public FileBackedPingback()
Default constructor


FileBackedPingback

public FileBackedPingback(java.lang.String title,
                          java.lang.String excerpt,
                          java.lang.String url,
                          java.lang.String blogName)
Pingback constructor to take a title, excerpt, url, and blog name

Parameters:
title - Title of the pingback
excerpt - Excerpt from the pingback
url - Url for the pingback
blogName - Blog name of the pingback
Method Detail

getSource

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

Returns:
File backing this pingback

setSource

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

Parameters:
source - File backing this pingback

load

public void load(BlogUser blogUser)
          throws BlojsomException
Load the pingback

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

save

public void save(BlogUser blogUser)
          throws BlojsomException
Save the pingback

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

delete

public void delete(BlogUser blogUser)
            throws BlojsomException
Delete the pingback

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