• 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

About API

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of API are available to manipulate the forum data? Could you give a brief on this?


[originally posted on jforum.net by swadhina]
 
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
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 jforum.net by monroe]
 
Hoo hoo hoo! Looks like we got a live one! Here, wave this tiny ad at it:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic