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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUser(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 Setvoid
removeUser(User user)
Remove a user from this groupvoid
setUsers(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 Set-
Methods inherited from class org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
equals, getId, getName, hashCode, setId, setName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
-
-
-
Constructor Detail
-
BasicGroupImpl
public BasicGroupImpl()
-
-
Method Detail
-
getUsers
public UserSet<?> getUsers()
Get the users that are part of this group- Specified by:
getUsers
in interfaceBasicGroup
- Returns:
- a set of users
-
setUsers
public void setUsers(UserSet userSet)
Set the users that are part of this group- Specified by:
setUsers
in interfaceBasicGroup
- Parameters:
userSet
- a set of users
-
getUsersAsSet
public <T extends User> Set<T> getUsersAsSet()
Get the users that are part of this group as a Set- Specified by:
getUsersAsSet
in interfaceBasicGroup
- Type Parameters:
T
- User type- Returns:
- a set of users
-
setUsersAsSet
public <T extends User> void setUsersAsSet(Set<T> users)
Set the users that are part of this group as a Set- Specified by:
setUsersAsSet
in interfaceBasicGroup
- Type Parameters:
T
- User type- Parameters:
users
- a set of users
-
addUser
public void addUser(User user)
Add a user to this group- Specified by:
addUser
in interfaceBasicGroup
- Parameters:
user
- the user to add
-
removeUser
public void removeUser(User user)
Remove a user from this group- Specified by:
removeUser
in interfaceBasicGroup
- Parameters:
user
- the user to remove
-
-