org.apache.lenya.ac
Interface Group

All Superinterfaces:
Accreditable, Identifiable, Item, org.apache.avalon.framework.logger.LogEnabled

public interface Group
extends Identifiable, Item

A group.

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

Method Summary
 void add(Groupable member)
          Adds a member to this group.
 boolean contains(Groupable member)
          Returns if this group contains this member.
 void delete()
          Delete a group.
 Groupable[] getMembers()
          Returns the members of this group.
 void remove(Groupable member)
          Removes a member from this group.
 void removeAllMembers()
          Removes all members from this group.
 void save()
          Saves this group.
 
Methods inherited from interface org.apache.lenya.ac.Accreditable
getAccreditables
 
Methods inherited from interface org.apache.lenya.ac.Item
configure, getDescription, getId, getItemManager, getName, setDescription, setName
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Method Detail

getMembers

Groupable[] getMembers()
Returns the members of this group.

Returns:
An array of Groupables.

add

void add(Groupable member)
Adds a member to this group.

Parameters:
member - The member to add.

remove

void remove(Groupable member)
Removes a member from this group.

Parameters:
member - The member to remove.

removeAllMembers

void removeAllMembers()
Removes all members from this group.


contains

boolean contains(Groupable member)
Returns if this group contains this member.

Parameters:
member - The member to check.
Returns:
A boolean value.

delete

void delete()
            throws AccessControlException
Delete a group.

Throws:
AccessControlException - if the delete failed

save

void save()
          throws AccessControlException
Saves this group.

Throws:
AccessControlException - when saving failed.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.