• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic