org.apache.lenya.ac.impl
Class AbstractGroupable

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

public abstract class AbstractGroupable
extends AbstractItem
implements Groupable, Accreditable

Abstract implementation for group members.

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

Constructor Summary
AbstractGroupable()
           
 
Method Summary
 void addedToGroup(Group group)
          Notifies this Groupable of being added to a group.
 Accreditable[] getAccreditables()
          Returns the set of accreditables of this accreditable.
 Group[] getGroups()
          Returns all groups that contain this Groupable.
 void removedFromGroup(Group group)
          Notifies this Groupable of being removed from a group.
 void removeFromAllGroups()
          Removes this groupable from all its groups.
 
Methods inherited from class org.apache.lenya.ac.impl.AbstractItem
equals, getDescription, getId, getName, hashCode, isValidId, setDescription, setId, setName, toString
 
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, setConfigurationDirectory
 

Constructor Detail

AbstractGroupable

public AbstractGroupable()
Method Detail

addedToGroup

public void addedToGroup(Group group)
Description copied from interface: Groupable
Notifies this Groupable of being added to a group.

Specified by:
addedToGroup in interface Groupable
Parameters:
group - The group.
See Also:
Groupable.addedToGroup(org.apache.lenya.ac.Group)

removedFromGroup

public void removedFromGroup(Group group)
Description copied from interface: Groupable
Notifies this Groupable of being removed from a group.

Specified by:
removedFromGroup in interface Groupable
Parameters:
group - The group.
See Also:
Groupable.removedFromGroup(org.apache.lenya.ac.Group)

getGroups

public Group[] getGroups()
Description copied from interface: Groupable
Returns all groups that contain this Groupable.

Specified by:
getGroups in interface Groupable
Returns:
A Group array.
See Also:
Groupable.getGroups()

removeFromAllGroups

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

Specified by:
removeFromAllGroups in interface Groupable

getAccreditables

public Accreditable[] getAccreditables()
Description copied from interface: Accreditable
Returns the set of accreditables of this accreditable. The set contains the accreditable itself and all collections it belongs to.

Specified by:
getAccreditables in interface Accreditable
Returns:
An array of accreditables.
See Also:
Accreditable.getAccreditables()


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