This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JForum and the fly likes About API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "About API" Watch "About API" New topic

About API

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
What kind of API are available to manipulate the forum data? Could you give a brief on this?

[originally posted on by swadhina]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
With 2.0, there is a set of Data Access Object interfaces with implimentations (all the *dao* packages). These are responsible for translating between application entity object and the database. The documentation is the code for there.

With 3.0 the plan is to use Hybernate as the DB interface.

Another thing to consider is that in jForum, there is persistent "DB" data and there is cached for performance (Repostitory) information. The DAO does not update the cache and vice versa. This is generally done in the task specific code.

There is no general API for creating posts, etc, from the code. But it's not that hard to use something like the Apache Common HTTPClient package to do this. You will probably want to look that the SSO implimentation to make it possible for your application to connect with the correct user security.

[originally posted on by monroe]
wood burning stoves
subject: About API
It's not a secret anymore!