net.sourceforge.blogentis.storage
Class AbstractStorageExtension

java.lang.Object
  extended bynet.sourceforge.blogentis.plugins.AbstractExtension
      extended bynet.sourceforge.blogentis.plugins.AbstractBlogExtension
          extended bynet.sourceforge.blogentis.storage.AbstractStorageExtension
All Implemented Interfaces:
IBlogExtension, IExtension, IStorageExtension

public abstract class AbstractStorageExtension
extends AbstractBlogExtension
implements IStorageExtension

Extensions implementing IStorageExtensions should extend this class, overriding any methods as necessary.

Author:
abas

Field Summary
 
Fields inherited from class net.sourceforge.blogentis.plugins.AbstractBlogExtension
blog, preferences
 
Constructor Summary
protected AbstractStorageExtension(IPlugin plugin, Blog blog)
           
 
Method Summary
 void postRetrieveContent(java.lang.String originalPath, org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors, org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor, org.apache.slide.content.NodeRevisionContent revisionContent)
          Method that will be called after retrieving content from the store.
 void postStoreContent(java.lang.String originalPath, org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors, org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor, org.apache.slide.content.NodeRevisionContent revisionContent)
           
 void preRemoveContent(java.lang.String originalPath, org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors, org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor)
          Method that will be called immediately before the resource will be removed.
 void preRetrieveContent(java.lang.String originalPath, org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors, org.apache.slide.content.NodeRevisionNumber revisionNumber, org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor)
           
 void preStoreContent(java.lang.String originalPath, org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors, org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor, org.apache.slide.content.NodeRevisionContent revisionContent)
           
 
Methods inherited from class net.sourceforge.blogentis.plugins.AbstractBlogExtension
getPreferences, setPreferences
 
Methods inherited from class net.sourceforge.blogentis.plugins.AbstractExtension
getPlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.blogentis.plugins.IBlogExtension
getPreferences, setPreferences
 
Methods inherited from interface net.sourceforge.blogentis.plugins.IExtension
getName, getPlugin
 

Constructor Detail

AbstractStorageExtension

protected AbstractStorageExtension(IPlugin plugin,
                                   Blog blog)
Method Detail

preStoreContent

public void preStoreContent(java.lang.String originalPath,
                            org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors,
                            org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor,
                            org.apache.slide.content.NodeRevisionContent revisionContent)
Specified by:
preStoreContent in interface IStorageExtension
Parameters:
originalPath - the original path of the resource about to be stored.
revisionDescriptors -
revisionDescriptor -
revisionContent -

postStoreContent

public void postStoreContent(java.lang.String originalPath,
                             org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors,
                             org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor,
                             org.apache.slide.content.NodeRevisionContent revisionContent)
Specified by:
postStoreContent in interface IStorageExtension
Parameters:
originalPath -
revisionDescriptors -
revisionDescriptor -
revisionContent -

preRetrieveContent

public void preRetrieveContent(java.lang.String originalPath,
                               org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors,
                               org.apache.slide.content.NodeRevisionNumber revisionNumber,
                               org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor)
Specified by:
preRetrieveContent in interface IStorageExtension
Parameters:
originalPath -
revisionDescriptors -
revisionNumber -
revisionDescriptor -

postRetrieveContent

public void postRetrieveContent(java.lang.String originalPath,
                                org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors,
                                org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor,
                                org.apache.slide.content.NodeRevisionContent revisionContent)
Description copied from interface: IStorageExtension
Method that will be called after retrieving content from the store.

Specified by:
postRetrieveContent in interface IStorageExtension
Parameters:
originalPath - the original path of the resource
revisionDescriptors -
revisionDescriptor -
revisionContent - the actual modifiable content.

preRemoveContent

public void preRemoveContent(java.lang.String originalPath,
                             org.apache.slide.content.NodeRevisionDescriptors revisionDescriptors,
                             org.apache.slide.content.NodeRevisionDescriptor revisionDescriptor)
Description copied from interface: IStorageExtension
Method that will be called immediately before the resource will be removed.

Specified by:
preRemoveContent in interface IStorageExtension
Parameters:
originalPath - the original path of the resource about to be removed. may be null.
revisionDescriptors - may be null
revisionDescriptor - may be null


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.