|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface User
This object represents the current user. Each user must have a unique
identifier (per SecurityHandler).
For session replication, the implementation should be Serializable.
| Method Summary | |
|---|---|
Object |
getAttribute(String key)
Get information about the user. |
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. |
void |
removeAttribute(String key)
Remove an information about the user. |
void |
setAttribute(String key,
Object value)
Set an information about the user. |
| Method Detail |
|---|
String getId()
void setAttribute(String key,
Object value)
Serializable.
key - The key identifying the information.value - The value of the information.void removeAttribute(String key)
key - The key identifying the information.Object getAttribute(String key)
key - The key identifying the information.
Iterator getAttributeNames()
boolean isUserInRole(String role)
ApplicationUtil instead.
role - The role to test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||