当前页面:
在线文档首页 >
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
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
Role
public Role(String name)
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