[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1976) Add org.jboss.seam.security.Identity.getRoleNames()

jarkko Lietolahti (JIRA) jira-events at lists.jboss.org
Wed Sep 26 20:15:41 EDT 2007


Add org.jboss.seam.security.Identity.getRoleNames()
---------------------------------------------------

                 Key: JBSEAM-1976
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1976
             Project: JBoss Seam
          Issue Type: Patch
          Components: Security
    Affects Versions: 1.2.1.GA
            Reporter: jarkko Lietolahti


Add new method (e.g.) getRoleNames which returns a list of role names (or either Group.classes).

This is because I need to check if the current user has any roles at all. And currently I need to write:

Set roles = Identity.instance().getSubject().getPrincipals(Group.class);
if (roles.isEmpty()) {
      return null; // user without any roles
}


And I'd like to be able to write:

Identity.instance().getRoleNames().isEmpty();



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list