Package org.teiid.spring.identity
Class SimpleGroup
- java.lang.Object
-
- org.teiid.spring.identity.SimplePrincipal
-
- org.teiid.spring.identity.SimpleGroup
-
- All Implemented Interfaces:
Serializable
,Group
,Principal
public class SimpleGroup extends SimplePrincipal implements Group
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleGroup(String name)
Creates a new group with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addMember(Principal user)
boolean
isMember(Principal member)
Enumeration<? extends Principal>
members()
boolean
removeMember(Principal user)
String
toString()
-
Methods inherited from class org.teiid.spring.identity.SimplePrincipal
equals, getName, hashCode
-
-
-
-
Constructor Detail
-
SimpleGroup
public SimpleGroup(String name)
Creates a new group with the given name.- Parameters:
name
- Group name.
-
-
Method Detail
-
members
public Enumeration<? extends Principal> members()
-
removeMember
public boolean removeMember(Principal user)
- Specified by:
removeMember
in interfaceGroup
-
toString
public String toString()
- Specified by:
toString
in interfacePrincipal
- Overrides:
toString
in classSimplePrincipal
-
-