[jboss-dev-forums] [Design of JBoss Portal] - Re: a method to get admin roles in RoleModule

bdaw do-not-reply at jboss.com
Mon Feb 16 04:04:07 EST 2009


Luca,

Lets do;
1) 

Set UserModule.getAdminUsers()

that simply returns all user names from configuration:

  | <option>
  |       <name>adminUsers</name>
  |       <value>admin1</value>
  |       <value>admin2</value>
  |       <value>admin3</value>
  | </option> 
  | 
This a list of "root" users

2)

Set RoleModule.getAdminRoles()

that simply returns all role names from configuration:

  | <option>
  |       <name>adminRoles</name>
  |       <value>Admin1</value>
  |       <value>Admin2</value>
  |       <value>Admin3</value>
  | </option> 
  | 
This is like a list of roles that act similar to "wheel" in Linux

There is unused "defaultAdminRole" in configuration indeed, but it was actually ment to be used for something else. It can be removed.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210260#4210260

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210260



More information about the jboss-dev-forums mailing list