net.sourceforge.blogentis.plugins.impl
Class PostViewExtensionPointImpl

java.lang.Object
  extended bynet.sourceforge.blogentis.plugins.AbstractExtensionPoint
      extended bynet.sourceforge.blogentis.plugins.AbstractBlogExtensionPoint
          extended bynet.sourceforge.blogentis.plugins.impl.PostViewExtensionPointImpl
All Implemented Interfaces:
IBlogExtensionPoint, IExtensionPoint, IPostViewExtensionPoint

public class PostViewExtensionPointImpl
extends AbstractBlogExtensionPoint
implements IPostViewExtensionPoint

Author:
abas

Field Summary
 
Fields inherited from class net.sourceforge.blogentis.plugins.AbstractBlogExtensionPoint
blog, preferences
 
Fields inherited from class net.sourceforge.blogentis.plugins.AbstractExtensionPoint
extensions, plugin
 
Constructor Summary
PostViewExtensionPointImpl(IPlugin plugin, Blog blog)
           
 
Method Summary
 java.util.List doPostViewExtensions(BlogRunData data, java.util.List posts)
          Apply doPostViewExtensions to a whole List of Posts.
 Post doPostViewExtensions(BlogRunData data, Post post)
          Invoke the extensions to prepare this post for viewing.
 java.lang.Class getExtensionClass()
          Get the class or interface that extensions for this extension point have to implement.
 java.lang.String getName()
          Get the user-visible name of this extension point.
 
Methods inherited from class net.sourceforge.blogentis.plugins.AbstractBlogExtensionPoint
getBlog, getPreferences
 
Methods inherited from class net.sourceforge.blogentis.plugins.AbstractExtensionPoint
addExtension, getExtensions, getPlugin, removeExtension, removeExtensions
 
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.IBlogExtensionPoint
getBlog
 
Methods inherited from interface net.sourceforge.blogentis.plugins.IExtensionPoint
addExtension, getExtensions, getPlugin, removeExtension, removeExtensions
 

Constructor Detail

PostViewExtensionPointImpl

public PostViewExtensionPointImpl(IPlugin plugin,
                                  Blog blog)
Parameters:
plugin -
blog -
Method Detail

getName

public java.lang.String getName()
Description copied from interface: IExtensionPoint
Get the user-visible name of this extension point.

Specified by:
getName in interface IExtensionPoint
Returns:
the name of this extension point.

getExtensionClass

public java.lang.Class getExtensionClass()
Description copied from interface: IExtensionPoint
Get the class or interface that extensions for this extension point have to implement.

Specified by:
getExtensionClass in interface IExtensionPoint
Returns:
this extension points' appropriate base class or inteface.

doPostViewExtensions

public Post doPostViewExtensions(BlogRunData data,
                                 Post post)
Invoke the extensions to prepare this post for viewing.

Specified by:
doPostViewExtensions in interface IPostViewExtensionPoint
Parameters:
data - the RunData of the current request.
post - the post to be prepared.
Returns:
the actual post that will be viewed.

doPostViewExtensions

public java.util.List doPostViewExtensions(BlogRunData data,
                                           java.util.List posts)
Apply doPostViewExtensions to a whole List of Posts.

Specified by:
doPostViewExtensions in interface IPostViewExtensionPoint
Parameters:
data - the RunData of the current request
posts - a List of Posts to which the doPostViewExtensions() should be applied.
Returns:
a new List containing the results of the invocations in the same order as the original list.


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