|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.poem.transaction.Transactioned
org.melati.poem.JdbcPersistent
org.melati.poem.generated.UserBase
org.melati.poem.User
public class User
A registered user.
Melati POEM generated, programmer modified stub
for a Persistent User object.
Description: A registered user of the database.
Field summary for SQL table User
| ||
|---|---|---|
| Name | Type | Description |
| id | Integer | The Table Row Object ID |
| name | String | The user's real name |
| login | String | The user's login name |
| password | String | The user's password |
| Field Summary |
|---|
| Fields inherited from class org.melati.poem.generated.UserBase |
|---|
id, login, name, password |
| Fields inherited from class org.melati.poem.transaction.Transactioned |
|---|
valid |
| Fields inherited from interface org.melati.poem.AccessToken |
|---|
root |
| Constructor Summary | |
|---|---|
User()
Constructor for a Persistent User object. |
|
User(String login,
String password,
String name)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getPassword()
Will throw a ReadPasswordAccessPoemException unless the access token associated with the running thread is the User object itself or provides the readPasswords capability. |
boolean |
givesCapability(Capability capability)
|
boolean |
isAdministrator()
|
boolean |
isGuest()
|
void |
setPassword(String cooked)
Sets the Password value, with checking, for this
User Persistent. |
String |
toString()
A string briefly describing the object for diagnostic purposes. |
| Methods inherited from class org.melati.poem.generated.UserBase |
|---|
getId_unsafe, getId, getIdField, getLogin_unsafe, getLogin, getLoginField, getName_unsafe, getName, getNameField, getPassword_unsafe, getPasswordField, getPoemDatabaseTables, getUserTable, setId_unsafe, setId, setId, setLogin_unsafe, setLogin, setName_unsafe, setName, setPassword_unsafe |
| Methods inherited from class org.melati.poem.transaction.Transactioned |
|---|
markValid, reset, setTransactionPool, transactionPool, unSee |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public User()
Persistent User object.
Description: A registered user of the database.
public User(String login,
String password,
String name)
login - user's login namepassword - user's passwordname - user's name| Method Detail |
|---|
public boolean givesCapability(Capability capability)
givesCapability in interface AccessTokencapability - the capability to check
AccessToken.givesCapability(org.melati.poem.Capability)
public String getPassword()
throws AccessPoemException
User Persistent.
Field description:
The user's password
getPassword in class UserBasePassword for this
User Persistent
AccessPoemException - if the current AccessToken
does not confer write access rightsUserBase.getPassword()
public void setPassword(String cooked)
throws AccessPoemException
Password value, with checking, for this
User Persistent.
Field description:
The user's password
setPassword in class UserBasecooked - a validated int
AccessPoemException - if the current AccessToken
does not confer write access rightsUserBase.setPassword(java.lang.String)public String toString()
toString in class JdbcPersistentObject.toString()public boolean isGuest()
public boolean isAdministrator()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||