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