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
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a user to this groupUserSet
<?> getUsers()
Get the users that are part of this groupGet the users that are part of this group as a Setvoid
removeUser
(User user) Remove a user from this groupvoid
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, 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 Details
-
BasicGroupImpl
public BasicGroupImpl()
-
-
Method Details
-
getUsers
Get the users that are part of this group- Specified by:
getUsers
in interfaceBasicGroup
- Returns:
- a set of users
-
setUsers
Set the users that are part of this group- Specified by:
setUsers
in interfaceBasicGroup
- Parameters:
userSet
- a set of users
-
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
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
Add a user to this group- Specified by:
addUser
in interfaceBasicGroup
- Parameters:
user
- the user to add
-
removeUser
Remove a user from this group- Specified by:
removeUser
in interfaceBasicGroup
- Parameters:
user
- the user to remove
-