Class BasicGroupImpl
java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
org.apache.fulcrum.security.model.basic.entity.impl.BasicGroupImpl
- All Implemented Interfaces:
Serializable,Group,SecurityEntity,BasicGroup
- Direct Known Subclasses:
DynamicGroupImpl
public class BasicGroupImpl extends SecurityEntityImpl implements BasicGroup
Represents the "basic" model where users are part of groups, but nothing
else.
- Version:
- $Id: BasicGroup.java 223057 2004-07-05 19:28:23Z epugh $
- Author:
- Eric Pugh
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BasicGroupImpl() -
Method Summary
Modifier and Type Method Description voidaddUser(User user)Add a user to this groupUserSet<?>getUsers()Get the users that are part of this group<T extends User>
Set<T>getUsersAsSet()Get the users that are part of this group as a SetvoidremoveUser(User user)Remove a user from this groupvoidsetUsers(UserSet userSet)Set the users that are part of this group<T extends User>
voidsetUsersAsSet(Set<T> users)Set the users that are part of this group as a SetMethods inherited from class org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
equals, getId, getName, hashCode, setId, setName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Constructor Details
-
BasicGroupImpl
public BasicGroupImpl()
-
-
Method Details
-
getUsers
Get the users that are part of this group- Specified by:
getUsersin interfaceBasicGroup- Returns:
- a set of users
-
setUsers
Set the users that are part of this group- Specified by:
setUsersin interfaceBasicGroup- Parameters:
userSet- a set of users
-
getUsersAsSet
Get the users that are part of this group as a Set- Specified by:
getUsersAsSetin interfaceBasicGroup- Type Parameters:
T- User type- Returns:
- a set of users
-
setUsersAsSet
Set the users that are part of this group as a Set- Specified by:
setUsersAsSetin interfaceBasicGroup- Type Parameters:
T- User type- Parameters:
users- a set of users
-
addUser
Add a user to this group- Specified by:
addUserin interfaceBasicGroup- Parameters:
user- the user to add
-
removeUser
Remove a user from this group- Specified by:
removeUserin interfaceBasicGroup- Parameters:
user- the user to remove
-