org.jboss.seam.security
Class Role

java.lang.Object
  extended by org.jboss.seam.security.SimplePrincipal
      extended by org.jboss.seam.security.Role
All Implemented Interfaces:
Serializable, Principal

public class Role
extends SimplePrincipal

Represents a user role. A conditional role is a special type of role that is assigned to a user based on the contextual state of a permission check.

Author:
Shane Bryzak
See Also:
Serialized Form

Constructor Summary
Role(String name)
           
Role(String name, boolean conditional)
           
 
Method Summary
 boolean isConditional()
           
 
Methods inherited from class org.jboss.seam.security.SimplePrincipal
equals, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Role

public Role(String name)

Role

public Role(String name,
            boolean conditional)
Method Detail

isConditional

public boolean isConditional()