org.apache.lenya.ac.impl
Class AbstractGroupable

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.ac.impl.AbstractItem
          extended by org.apache.lenya.ac.impl.AbstractGroupable
All Implemented Interfaces:
java.lang.Comparable, org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.ac.Accreditable, org.apache.lenya.ac.Groupable, org.apache.lenya.ac.Item
Direct Known Subclasses:
AbstractIPRange, AbstractUser

public abstract class AbstractGroupable
extends AbstractItem
implements org.apache.lenya.ac.Groupable, org.apache.lenya.ac.Accreditable

Abstract implementation for group members.

Version:
$Id: AbstractGroupable.java 499783 2007-01-25 13:33:38Z andreas $

Constructor Summary
AbstractGroupable(org.apache.lenya.ac.ItemManager itemManager, org.apache.avalon.framework.logger.Logger logger)
          Ctor.
 
Method Summary
 void addedToGroup(org.apache.lenya.ac.Group group)
           
 org.apache.lenya.ac.Accreditable[] getAccreditables()
           
 org.apache.lenya.ac.Group[] getGroups()
           
 void removedFromGroup(org.apache.lenya.ac.Group group)
           
 void removeFromAllGroups()
          Removes this groupable from all its groups.
 
Methods inherited from class org.apache.lenya.ac.impl.AbstractItem
compareTo, equals, getAccreditableManager, getDescription, getId, getItemManager, getName, hashCode, setDescription, setId, setName, toString
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.lenya.ac.Item
configure
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Constructor Detail

AbstractGroupable

public AbstractGroupable(org.apache.lenya.ac.ItemManager itemManager,
                         org.apache.avalon.framework.logger.Logger logger)
Ctor.

Parameters:
itemManager - The item manager.
logger - The logger.
Method Detail

addedToGroup

public void addedToGroup(org.apache.lenya.ac.Group group)
Specified by:
addedToGroup in interface org.apache.lenya.ac.Groupable
See Also:
Groupable.addedToGroup(org.apache.lenya.ac.Group)

removedFromGroup

public void removedFromGroup(org.apache.lenya.ac.Group group)
Specified by:
removedFromGroup in interface org.apache.lenya.ac.Groupable
See Also:
Groupable.removedFromGroup(org.apache.lenya.ac.Group)

getGroups

public org.apache.lenya.ac.Group[] getGroups()
Specified by:
getGroups in interface org.apache.lenya.ac.Groupable
See Also:
Groupable.getGroups()

removeFromAllGroups

public void removeFromAllGroups()
Removes this groupable from all its groups.

Specified by:
removeFromAllGroups in interface org.apache.lenya.ac.Groupable

getAccreditables

public org.apache.lenya.ac.Accreditable[] getAccreditables()
Specified by:
getAccreditables in interface org.apache.lenya.ac.Accreditable
See Also:
Accreditable.getAccreditables()


Copyright $ Apache Software Foundation. All Rights Reserved.