org.apache.lenya.ac.impl
Class AbstractItem

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

public abstract class AbstractItem
extends java.lang.Object
implements Item

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 473841 2006-11-12 00:46:38Z gregor $

Constructor Summary
AbstractItem()
          Ctor.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
           
 java.lang.String getDescription()
          Returns the description of this object.
 java.lang.String getId()
          Returns the ID.
 java.lang.String getName()
          Returns the name of this object.
 int hashCode()
           
static boolean isValidId(java.lang.String id)
          Checks if a string is a valid ID.
 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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.lenya.ac.Item
configure, setConfigurationDirectory
 

Constructor Detail

AbstractItem

public AbstractItem()
Ctor.

Method Detail

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 Item
Returns:
The ID.

getDescription

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

Specified by:
getDescription in interface Item
Returns:
A string.

setDescription

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

Specified by:
setDescription in interface 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 Item
Returns:
A String.

setName

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

Specified by:
setName in interface Item
Parameters:
name - the new full name

isValidId

public static boolean isValidId(java.lang.String id)
Checks if a string is a valid ID.

Parameters:
id - The string to test.
Returns:
A boolean value.

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()


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