站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.0 API 英文版文档

Role (JBoss Seam API Documentation) - JBoss Seam 1.1.0 API 英文版文档


org.jboss.seam.security
Class Role

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

public class Role
extends Object
implements Group, Serializable

A Role implementation. Roles can contain other roles.

Author:
Shane Bryzak
See Also:
Serialized Form

Constructor Summary
Role(String name)
           
 
Method Summary
 boolean addMember(Principal user)
           
 boolean addPermission(Permission permission)
           
 boolean equals(Object obj)
           
 String getName()
           
 int hashCode()
           
 boolean hasPermission(Permission permission)
           
 boolean isMember(Principal member)
           
 Enumeration<? extends Principal> members()
           
 boolean removeMember(Principal user)
           
 boolean removePermission(Permission permission)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 

Constructor Detail

Role

public Role(String name)
Method Detail

addPermission

public boolean addPermission(Permission permission)

hasPermission

public boolean hasPermission(Permission permission)

removePermission

public boolean removePermission(Permission permission)

addMember

public boolean addMember(Principal user)
Specified by:
addMember in interface Group

isMember

public boolean isMember(Principal member)
Specified by:
isMember in interface Group

members

public Enumeration<? extends Principal> members()
Specified by:
members in interface Group

removeMember

public boolean removeMember(Principal user)
Specified by:
removeMember in interface Group

getName

public String getName()
Specified by:
getName in interface Principal

equals

public boolean equals(Object obj)
Specified by:
equals in interface Principal
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object