Interface BasicGroup
-
- All Superinterfaces:
Group
,SecurityEntity
,Serializable
- All Known Subinterfaces:
DynamicGroup
- All Known Implementing Classes:
BaseTorqueBasicGroup
,BaseTorqueDynamicGroup
,BasicGroupImpl
,DynamicGroupImpl
,TorqueAbstractBasicGroup
,TorqueAbstractDynamicGroup
,TorqueBasicGroup
,TorqueDynamicGroup
public interface BasicGroup extends Group
Represents the "basic" model where users are part of groups, but nothing else.- Version:
- $Id$
- Author:
- Eric Pugh
-
-
Method Summary
All Methods Instance Methods Abstract 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 interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
-
-
-
Method Detail
-
setUsers
void setUsers(UserSet userSet)
Set the users that are part of this group- Parameters:
userSet
- a set of users
-
getUsersAsSet
<T extends User> Set<T> getUsersAsSet()
Get the users that are part of this group as a Set- Type Parameters:
T
- User type- Returns:
- a set of users
-
setUsersAsSet
<T extends User> void setUsersAsSet(Set<T> users)
Set the users that are part of this group as a Set- Type Parameters:
T
- User type- Parameters:
users
- a set of users
-
removeUser
void removeUser(User user)
Remove a user from this group- Parameters:
user
- the user to remove
-
-