org.apache.lenya.ac
Interface GroupManager

All Superinterfaces:
ItemManager

public interface GroupManager
extends ItemManager

A group manager.

Version:
$Id: GroupManager.java 473861 2006-11-12 03:51:14Z gregor $

Method Summary
 Group add(java.lang.String id)
          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, getAccreditableManager, removeItemManagerListener
 

Method Detail

getGroups

Group[] getGroups()
Get all groups.

Returns:
an array of groups.

add

Group add(java.lang.String id)
          throws AccessControlException
Add a group to this manager.

Parameters:
id - the ID of the group to be added.
Returns:
A group.
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-2006 Apache Software Foundation. All Rights Reserved.