wood burning stoves*
The moose likes JForum and the fly likes User mangement for Jforum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "User mangement for Jforum" Watch "User mangement for Jforum" New topic
Author

User mangement for Jforum

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
 
Don't get me started about those stupid light bulbs.
 
subject: User mangement for Jforum