org.jboss.security.identity.plugins
Class SimpleRole

java.lang.Object
  extended by org.jboss.security.identity.plugins.SimpleRole
All Implemented Interfaces:
Serializable, Cloneable, org.jboss.security.identity.Role
Direct Known Subclasses:
SimpleRoleGroup

public class SimpleRole
extends Object
implements org.jboss.security.identity.Role, Cloneable

Simple Role

Since:
Nov 16, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com
See Also:
Serialized Form

Field Summary
static String ANYBODY
           
static org.jboss.security.identity.Role ANYBODY_ROLE
           
 
Constructor Summary
SimpleRole(String roleName)
           
SimpleRole(String roleName, org.jboss.security.identity.Role parent)
           
 
Method Summary
protected  Object clone()
           
 boolean containsAll(org.jboss.security.identity.Role anotherRole)
           
 org.jboss.security.identity.Role getParent()
           
 String getRoleName()
           
 org.jboss.security.identity.RoleType getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANYBODY

public static final String ANYBODY
See Also:
Constant Field Values

ANYBODY_ROLE

public static final org.jboss.security.identity.Role ANYBODY_ROLE
Constructor Detail

SimpleRole

public SimpleRole(String roleName)

SimpleRole

public SimpleRole(String roleName,
                  org.jboss.security.identity.Role parent)
Method Detail

getRoleName

public String getRoleName()
Specified by:
getRoleName in interface org.jboss.security.identity.Role

getType

public org.jboss.security.identity.RoleType getType()
Specified by:
getType in interface org.jboss.security.identity.Role

containsAll

public boolean containsAll(org.jboss.security.identity.Role anotherRole)
Specified by:
containsAll in interface org.jboss.security.identity.Role
See Also:
Role#contains(Role)

getParent

public org.jboss.security.identity.Role getParent()
Specified by:
getParent in interface org.jboss.security.identity.Role

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss Inc.. All Rights Reserved.