|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.ac.impl.AbstractItem
public abstract class AbstractItem
Abstract superclass for all access control objects that can be managed by an
ItemManager
. It is only used for code reuse.
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 |
---|
public AbstractItem()
Method Detail |
---|
protected void setId(java.lang.String string)
string
- The ID.public java.lang.String getId()
getId
in interface Item
public java.lang.String getDescription()
getDescription
in interface Item
public void setDescription(java.lang.String description)
setDescription
in interface Item
description
- A string.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String getName()
getName
in interface Item
String
.public void setName(java.lang.String name)
setName
in interface Item
name
- the new full namepublic static boolean isValidId(java.lang.String id)
id
- The string to test.
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |