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 booleanaddMember(Principal user)booleanisMember(Principal member)Enumeration<? extends Principal>members()booleanremoveMember(Principal user)StringtoString()-
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:
removeMemberin interfaceGroup
-
toString
public String toString()
- Specified by:
toStringin interfacePrincipal- Overrides:
toStringin classSimplePrincipal
-
-