| org.apache.cocoon.auth.User
All known Subclasses: org.apache.cocoon.auth.StandardUser,
Method Summary | |
Object | getAttribute(String key) Get information about the user.
Parameters: key - The key identifying the information. | Iterator | getAttributeNames() Return all available names. | String | getId() Return the unique id of this user. | boolean | isUserInRole(String role) Check if the user is in a given role.
This method can't check for a role handled by the servlet engine,
it only handles indendently specified roles.
Therefore, it is advisable to not call this method directly, but
use the provided methods from the
ApplicationUtil instead.
Parameters: role - The role to test. | void | removeAttribute(String key) Remove an information about the user. | void | setAttribute(String key, Object value) Set an information about the user. |
getAttribute | Object getAttribute(String key)(Code) | | Get information about the user.
Parameters: key - The key identifying the information. The value or null. |
getAttributeNames | Iterator getAttributeNames()(Code) | | Return all available names.
An Iterator for the names (Strings). |
getId | String getId()(Code) | | Return the unique id of this user.
The identifier. |
isUserInRole | boolean isUserInRole(String role)(Code) | | Check if the user is in a given role.
This method can't check for a role handled by the servlet engine,
it only handles indendently specified roles.
Therefore, it is advisable to not call this method directly, but
use the provided methods from the
ApplicationUtil instead.
Parameters: role - The role to test. Returns true if the user has the role, otherwise false. |
removeAttribute | void removeAttribute(String key)(Code) | | Remove an information about the user.
Parameters: key - The key identifying the information. |
setAttribute | void setAttribute(String key, Object value)(Code) | | Set an information about the user.
For session replication the value of the attribute should
be
java.io.Serializable .
Parameters: key - The key identifying the information. Parameters: value - The value of the information. |
|
|