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:
  • Constructor Details

    • BasicGroupImpl

      public BasicGroupImpl()
  • Method Details

    • getUsers

      public UserSet<?> getUsers()
      Get the users that are part of this group
      Specified by:
      getUsers in interface BasicGroup
      Returns:
      a set of users
    • setUsers

      public void setUsers(UserSet userSet)
      Set the users that are part of this group
      Specified by:
      setUsers in interface BasicGroup
      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 interface BasicGroup
      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 interface BasicGroup
      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 interface BasicGroup
      Parameters:
      user - the user to add
    • removeUser

      public void removeUser(User user)
      Remove a user from this group
      Specified by:
      removeUser in interface BasicGroup
      Parameters:
      user - the user to remove