Interface BasicUser
-
- All Superinterfaces:
SecurityEntity
,Serializable
,User
- All Known Subinterfaces:
DynamicUser
- All Known Implementing Classes:
BaseTorqueBasicUser
,BaseTorqueDynamicUser
,BasicUserImpl
,DynamicUserImpl
,TorqueAbstractBasicUser
,TorqueAbstractDynamicUser
,TorqueBasicUser
,TorqueDynamicUser
public interface BasicUser extends User
Represents the "basic" model where users can be part of multiple groups directly, with no roles or permissions.- Version:
- $Id$
- Author:
- Eric Pugh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addGroup(Group group)
Add the group to the list of groupsGroupSet
getGroups()
Get the groups this user is part of<T extends Group>
Set<T>getGroupsAsSet()
Get the groups this user is part of as a Setvoid
removeGroup(Group group)
Remove the group from the list of groupsvoid
setGroups(GroupSet groups)
Set the groups this user is part of<T extends Group>
voidsetGroupsAsSet(Set<T> groups)
Set the groups this user is part of as a Set-
Methods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Methods inherited from interface org.apache.fulcrum.security.entity.User
getPassword, setPassword
-
-
-
-
Method Detail
-
setGroups
void setGroups(GroupSet groups)
Set the groups this user is part of- Parameters:
groups
- the set of groups
-
removeGroup
void removeGroup(Group group)
Remove the group from the list of groups- Parameters:
group
- the group to remove
-
addGroup
void addGroup(Group group)
Add the group to the list of groups- Parameters:
group
- the group to add
-
setGroupsAsSet
<T extends Group> void setGroupsAsSet(Set<T> groups)
Set the groups this user is part of as a Set- Parameters:
groups
- the set of groups
-
getGroupsAsSet
<T extends Group> Set<T> getGroupsAsSet()
Get the groups this user is part of as a Set- Returns:
- a set of groups
-
-