ForumsPortletInPortal22DevelopementStatus

Forums Portlet developement status in portal 2.2

 

Forums Portlet is currently available within 2.2.1RC1 portal version and from 2.2 cvs branch.

It is deployable and usable but few security workarounds were implemented.

 

Forums permisions can be set using portal user roles.

 

This roles are hardcoded in forums code:

  • ForumsAdmin - All permissions granted

  • ForumsModerator - ModerateForum, AddPollInPost, EditPollInPost, +AddAttachmentInPost, DeletePostInForum, EditPostInForum permissions + listed in roles below

  • ForumsPolls - AddPollInPost permission

  • ForumsAttachments - AddAttachmentInPost permission

  • ForumsUser - AddPostInForum, VotePollInPost - permission (regular forums user...)

 

This roles can be easilly linked with portal user roles. In forums portlet.xml file you can find following section:

 

-


<security-role-ref>
   <role-name>ForumsAdmin</role-name>
   <role-link>Admin</role-link>
</security-role-ref>
<security-role-ref>
   <role-name>ForumsModerator</role-name>
   <role-link>Admin</role-link>
</security-role-ref>
<security-role-ref>
   <role-name>ForumsAttachments</role-name>
   <role-link>Admin</role-link>
</security-role-ref>
<security-role-ref>
   <role-name>ForumsPolls</role-name>
   <role-link>Admin</role-link>
</security-role-ref>
<security-role-ref>
   <role-name>ForumsUser</role-name>
   <role-link>User</role-link>
</security-role-ref>

-


 

So with <role-link> tag you can easily bind Forums roles with existing portal roles to tune permissions level