|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.om.BaseObject
org.apache.turbine.om.security.SecurityObject
This class represents a generic object used in the Access Control Lists.
Field Summary |
Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
Constructor Summary | |
SecurityObject()
Constructs a new SecurityObject |
|
SecurityObject(java.lang.String name)
Constructs a new SecurityObject with the specified name. |
Method Summary | |
int |
compareTo(java.lang.Object obj)
Used for ordering SecurityObjects. |
java.lang.Object |
getAttribute(java.lang.String name)
Retrieves the value of specific attribute of this object. |
java.util.Map |
getAttributes()
Returns a Map containing this object's attributes. |
int |
getId()
Unused. |
java.lang.Integer |
getIdAsObj()
Unused. |
java.lang.String |
getName()
Returns the name of this object. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets the value of specific attribute of this object. |
void |
setAttributes(java.util.Map attributes)
Replaces this object's attributes with the specified Map. |
void |
setId(int id)
Unused. |
void |
setName(java.lang.String name)
Sets the name of this object. |
java.lang.String |
toString()
Returns a textual representation of this object, consisted by it's name and attributes. |
Methods inherited from class org.apache.torque.om.BaseObject |
equals, equals, getByName, getByPeerName, getByPosition, getLog, getPrimaryKey, hashCode, isModified, isNew, log, resetModified, save, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SecurityObject()
public SecurityObject(java.lang.String name)
name
- The name of the new object.Method Detail |
public java.util.Map getAttributes()
public void setAttributes(java.util.Map attributes)
attributes
- The new attributes of the object.public java.lang.Object getAttribute(java.lang.String name)
name
- the name of the attribute
public void setAttribute(java.lang.String name, java.lang.Object value)
name
- the name of the attributevalue
- the value of the attributepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the object.public int getId()
public java.lang.Integer getIdAsObj()
public void setId(int id)
id
- The id of the User.public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- The Object to compare to.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |