org.apache.lenya.ac.impl
Class AbstractItem

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

public abstract class AbstractItem
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.lenya.ac.Item, java.lang.Comparable

Abstract superclass for all access control objects that can be managed by an ItemManager. It is only used for code reuse.

Version:
$Id: AbstractItem.java 499016 2007-01-23 13:18:39Z andreas $

Constructor Summary
AbstractItem(org.apache.lenya.ac.ItemManager itemManager, org.apache.avalon.framework.logger.Logger logger)
          Ctor.
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object otherObject)
           
 org.apache.lenya.ac.AccreditableManager getAccreditableManager()
           
 java.lang.String getDescription()
          Returns the description of this object.
 java.lang.String getId()
          Returns the ID.
 org.apache.lenya.ac.ItemManager getItemManager()
           
 java.lang.String getName()
          Returns the name of this object.
 int hashCode()
           
 void setDescription(java.lang.String _description)
          Sets the description of this object.
protected  void setId(java.lang.String string)
          Sets the ID.
 void setName(java.lang.String _name)
          Set the full name
 java.lang.String 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

AbstractItem

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

Parameters:
itemManager - The item manager this item belongs to.
logger - The logger.
Method Detail

getAccreditableManager

public org.apache.lenya.ac.AccreditableManager getAccreditableManager()
Returns:
The accreditable manager.

setId

protected void setId(java.lang.String string)
Sets the ID.

Parameters:
string - The ID.

getId

public java.lang.String getId()
Returns the ID.

Specified by:
getId in interface org.apache.lenya.ac.Item
Returns:
The ID.

getDescription

public java.lang.String getDescription()
Returns the description of this object.

Specified by:
getDescription in interface org.apache.lenya.ac.Item
Returns:
A string.

setDescription

public void setDescription(java.lang.String _description)
Sets the description of this object.

Specified by:
setDescription in interface org.apache.lenya.ac.Item
Parameters:
_description - A string.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getName

public java.lang.String getName()
Returns the name of this object.

Specified by:
getName in interface org.apache.lenya.ac.Item
Returns:
A String.

setName

public void setName(java.lang.String _name)
Set the full name

Specified by:
setName in interface org.apache.lenya.ac.Item
Parameters:
_name - the new full name

equals

public boolean equals(java.lang.Object otherObject)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)

getItemManager

public org.apache.lenya.ac.ItemManager getItemManager()
Specified by:
getItemManager in interface org.apache.lenya.ac.Item


Copyright © $ Apache Software Foundation. All Rights Reserved.