| org.apache.turbine.om.security.SecurityObject
All known Subclasses: org.apache.turbine.om.security.TurbineRole, org.apache.turbine.om.security.TurbineUser, org.apache.turbine.om.security.TurbineGroup, org.apache.turbine.om.security.TurbinePermission,
Method Summary | |
public int | compareTo(Object obj) Used for ordering SecurityObjects.
Parameters: obj - The Object to compare to. | public Object | getAttribute(String name) Retrieves the value of specific attribute of this object. | public Map | getAttributes() Returns a Map containing this object's attributes. | public int | getId() Unused. | public Integer | getIdAsObj() Unused. | public String | getName() Returns the name of this object. | public void | setAttribute(String name, Object value) Sets the value of specific attribute of this object. | public void | setAttributes(Map attributes) Replaces this object's attributes with the specified Map. | public void | setId(int id) Unused. | public void | setName(String name) Sets the name of this object. | public String | toString() Returns a textual representation of this object, consisted by
it's name and attributes. |
SecurityObject | public SecurityObject()(Code) | | Constructs a new SecurityObject
|
SecurityObject | public SecurityObject(String name)(Code) | | Constructs a new SecurityObject with the specified name.
Parameters: name - The name of the new object. |
compareTo | public int compareTo(Object obj)(Code) | | Used for ordering SecurityObjects.
Parameters: obj - The Object to compare to. -1 if the name of the other object is lexically greater than thisgroup, 1 if it is lexically lesser, 0 if they are equal. |
getAttribute | public Object getAttribute(String name)(Code) | | Retrieves the value of specific attribute of this object.
Parameters: name - the name of the attribute the value of the attribute |
getAttributes | public Map getAttributes()(Code) | | Returns a Map containing this object's attributes.
the object's attributes. |
getId | public int getId()(Code) | | Unused. There is an ID column in the
database scheme but it doesn't seem
to be used.
0 |
getIdAsObj | public Integer getIdAsObj()(Code) | | Unused. There is an ID column in the
database scheme but it doesn't seem
to be used.
null |
getName | public String getName()(Code) | | Returns the name of this object.
The name of the object. |
setAttribute | public void setAttribute(String name, Object value)(Code) | | Sets the value of specific attribute of this object.
Parameters: name - the name of the attribute Parameters: value - the value of the attribute |
setAttributes | public void setAttributes(Map attributes)(Code) | | Replaces this object's attributes with the specified Map.
Parameters: attributes - The new attributes of the object. |
setId | public void setId(int id)(Code) | | Unused. There is an ID column in the
database scheme but it doesn't seem
to be used.
Parameters: id - The id of the User. |
setName | public void setName(String name)(Code) | | Sets the name of this object.
Parameters: name - The name of the object. |
toString | public String toString()(Code) | | Returns a textual representation of this object, consisted by
it's name and attributes.
a textual representation of this group. |
|
|