wood burning stoves*
The moose likes JForum and the fly likes Integration API: create user / create forum / create thread / auto-login user Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Integration API: create user / create forum / create thread / auto-login user" Watch "Integration API: create user / create forum / create thread / auto-login user" New topic
Author

Integration API: create user / create forum / create thread / auto-login user

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hello,

I am currently working on the forum section of a site I'm helping to develop. Currently, we use phpBB - however the problem that I need to solve is that there doesn't seem to be an easy way to make it talk to our java-based application. Specifically, this is what we need to be able to do:

1. When a user creates a profile on our site - also programmatically create a matching profile in your forum

2. When a user logs into our site - also programmatically log the user into your forum

3. When we create certain articles in our site, we want to programmatically create threads to match those articles and also programmatically get 'handles' to these newly created threads so that we can easily link to them

4. If a user's status changes in our system (suspended, inactive, deleted, etc) - we want to also be able to programmatically change that user's status in your forum. Also, if we assign certain admin privileges to a user in our system - we'd like to also assign similar
admin privileges in your system programmatically.

5. We want to have a method for creating some forums in a 'general' discussion forums area, and some forums that can only be reached if a link is provided (this is not crucial though)

In my view - either a Java API (more preferable) or web-service API would work for this. After going through some of the threads, I got the feeling that these things are possible in your forum project - but I couldn't find a clear answer for what I was looking for.. :?: .. Is there currently a way to do these things with your forum project?

Thank you for your time & help
- Gary Bogachkov

[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm currently working on a plugin / api support, on a different branch, but there is no release date so far.

For many situations, you can use the regular actions for the job. In JForum 2.1.5, it may look like



Now you can create a new instance of some action, like net.jforum.view.admin.ForumAction.java, and call methods like insertSave() and etc...

Of course that you probably will have to add a new constructor to the action, that receives the request and context objects, or call via the Command pattern, as it is done in JForum.java

I know that's kinda a hack, but it works just fine until a real api is published.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
It looks like you are (were) working on JForum API. Your post dated back to 24/02/2006, so I was wondering whether you were able to make a progress of some sort.


I was thinking of XML API to JForum, to enable an external application fully control the forum i.e. create topics/posts and retrieve them. There must be some other important actions which should be exposed through this new XML API which I can not foresee at the moment.



I�۪d be very thankful for any thoughts at that direction.

[originally posted on jforum.net by ikatkov]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I have a lot of work done but did not finished it yet.

All that API modifcation, among with Hibernate and Lucene support, will result in JForum 3.0.

As there is only me currently as developer, I have to choose one or another task as priority. And, that, currently, is supporting the current version.

Besides the Java API, a REST interface is the best option, in my opinion.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Don't get me started about those stupid light bulbs.
 
subject: Integration API: create user / create forum / create thread / auto-login user