Dave:

I am very new to Roller and its APIs. Can you provide me some more details
as how to detect if some action has occurred in Roller (blog creation, post
creation). If it would be possible for you to elaborate on general concepts
involved in such implementation.

Thanks,
Shakti

-----Original Message-----
From: Dave [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2008 9:53 AM
To: [email protected]
Subject: Re: Roller plugin development

On Mon, Aug 11, 2008 at 8:36 AM, Shakti Purohit
<[EMAIL PROTECTED]> wrote:
> I went through the java API doc of Roller. I am into developing a plugin
for
> Roller which will fetch existing content (WeblogEntries, comments, tags)
> from the Roller. I think this task is very much doable using APIs
provided.
> My only concern: does there exist any plugin framework on Roller by which
I
> can make plugin a part of Roller environment? I mean does Roller provide
any
> admin based UI by which I can upload my plugins? If not please provide the
> way to load the plugin.

There are a variety of ways to plugin to Roller, but there is no
Plugin Manager.

Typically what you need to do is:
- Implement an interface in Java
- Jar up your classes, put them in the Roller classpath (WEB-INF/lib)
- Override some properties in roller-custom.properties to hook in your
classes

There is a list of plugin types on here:

I'd be glad to answer questions about any of them here on the mailing list.


> Secondly, how can I detect data creation, deletion and update on Roller? I
> did not find anything like listeners on Rollers, listeners being listening
> to create update and delete events. Please suggest how to implement this
> functionality (event listeners like functions)?

We don't have any types of listeners for events like that, so your
best be is probably to plugin your own manager. For example, you could
create MyJPAWeblogEntryManager which extends
JPAWeblogEntryManagerImpl. The override the methods you need to, call
super where appropriate -- and then hook in your new implementation
via JPAWebloggerModule.

Not at great situation right now, eh?

Personally, I think better plugin infrastructure should be the #1
priority for Roller.

- Dave


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

Reply via email to