Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

User mangement for Jforum

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am very new to using the Jforum application. I am using Jforum in my JSF application using iframe in one of my page.
I have certain issue


1) The Jforum runs as seprate application with JSF application. Can we merge the both of them to run as single application.

2) We have created different forum which could be accessed by all users (i.e can view all the topics). But each user has to be member for that forum to post and topics. Is it possible...
[originally posted on jforum.net by yashoonath]
 
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
Re: 1) -

Yes you can merge the applications as long as there are no directory/jar conflicts. Just over lay the Jforum application on your's and merge the web.xml files so that both servlets defs, etc are in this file.

One issue to think about is long term maintainability. Doing it this way means that as new versions of jForum come out, you will have to repeat this process (and make sure you clean out all the old jForum info).

Re: 2)

Just control this via group access rights. E.g., the "general" group could have read-only rights and a "forum" group can have read/post rights. Everyone is part of the general group and a limit set of users can be in the "forum" group.
[originally posted on jforum.net by monroe]
 
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
Hi monroe ,

Thanks a lot for ur reply ... it really did help ...
What I am doing currently now is created different categories in the forum and I want provide permissions according to the categories.
The suggestion what u given means that i need to create groups for each categories and assign permissions to groups. Currently I am having only two groups. We are using SSO ( with cookies ) for authentication which enables to insert data into jforum_users table and also inserts into jforum_user_groups table. Now I want know that since we had any two groups and defaultUserGroup key is set to 1 in SystemGlobals.properties file. So it insert value as 1 for each user.

I want to insert different group id for each user and one user can belong to different groups. I want to know which class i need to extend to do this stuff.

Yashoo
[originally posted on jforum.net by yashoonath]
 
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
A lot of that depends on your specific needs and security requirements. E.g., people change groups all the time in your application and you need jForum to know about this in real time... or a slight delay is OK.

Can you identify and create the jforum groups ahead of time are you trying to do this on the fly as groups are created in your application?

A simple case would be:

1) The groups with correct rights can be created via jForum admin screen.

2) Have a process that can match your user names to jforum's user id numbers and insert the correct records into the jForum_user_groups table. Not that this may not be recognized by jForum until the user logs out and back on.

A more complex case would be:

1) Create your own GroupDAO (and some others) implementation that look up group membership from your application in real time.

Bottom line is that you will need to roll up your sleeves and dig into the jForum code (it's not that hard to understand...) to solve your application specific need.
[originally posted on jforum.net by monroe]
 
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
Hi monroe,

Thanks a lot for ur suggestions... will definetly need to dig into the jforum code... which i had already started... Again thanks for spending ur valuable time...

Yashoo
[originally posted on jforum.net by yashoonath]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic