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

SimpleGroup (JBoss Seam API Documentation) - JBoss Seam 1.1.6 API 英文版文档


org.jboss.seam.security
Class SimpleGroup

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

public class SimpleGroup
extends Object
implements Group, Serializable

Implementation of the Group interface, used for holding roles etc.

Author:
Shane Bryzak
See Also:
Serialized Form

Constructor Summary
SimpleGroup(String name)
           
 
Method Summary
 boolean addMember(Principal user)
           
 boolean equals(Object obj)
           
 String getName()
           
 int hashCode()
           
 boolean isMember(Principal member)
           
 Enumeration<? extends Principal> members()
           
 boolean removeMember(Principal user)
           
 
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

SimpleGroup

public SimpleGroup(String name)
Method Detail

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