org.apache.lenya.ac
Interface GroupManager

All Superinterfaces:
ItemManager
All Known Implementing Classes:
FileGroupManager

public interface GroupManager
extends ItemManager

A group manager.

Version:
$Id: GroupManager.java 473841 2006-11-12 00:46:38Z gregor $

Method Summary
 void add(Group group)
          Add a group to this manager.
 Group getGroup(java.lang.String groupId)
          Get the group with the given group name.
 Group[] getGroups()
          Get all groups.
 void remove(Group group)
          Remove a group from this manager.
 
Methods inherited from interface org.apache.lenya.ac.ItemManager
addItemManagerListener, removeItemManagerListener
 

Method Detail

getGroups

Group[] getGroups()
Get all groups.

Returns:
an array of groups.

add

void add(Group group)
         throws AccessControlException
Add a group to this manager.

Parameters:
group - the group to be added.
Throws:
AccessControlException - when the group is already contained.

remove

void remove(Group group)
            throws AccessControlException
Remove a group from this manager.

Parameters:
group - the group to be removed.
Throws:
AccessControlException - when the group is not contained.

getGroup

Group getGroup(java.lang.String groupId)
Get the group with the given group name.

Parameters:
groupId - the id of the requested group.
Returns:
a Group or null if there is no group with the given name


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.