public class User extends UserBase implements AccessToken
Persistent User object.
Description: A registered user of the database.
| 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 |
root| Constructor and Description |
|---|
User()
Constructor
for a
Persistent User object. |
User(String login,
String password,
String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getId_unsafe, getId, getIdField, getLogin_unsafe, getLogin, getLoginField, getName_unsafe, getName, getNameField, getPassword_unsafe, getPasswordField, getPoemDatabaseTables, getUserGroupMembershipList, getUserGroupMemberships, getUserTable, setId_unsafe, setId, setId, setLogin_unsafe, setLogin, setName_unsafe, setName, setPassword_unsafeassertCanCreate, assertCanCreate, assertCanDelete, assertCanDelete, assertCanRead, assertCanRead, assertCanWrite, assertCanWrite, delete_unsafe, delete, delete, deleteAndCommit, deleteAndCommit, displayString, displayString, displayString, dump, dump, duplicated, duplicatedFloating, equals, existenceLock, fieldsOfColumns, getChildren, getCooked, getCookedString, getDatabase, getDetailDisplayFields, getField, getFields, getPrimaryDisplayField, getRaw, getRawString, getReadable, getRecordDisplayFields, getSearchCriterionFields, getSummaryDisplayFields, getTable, getTroid, hashCode, invalidate, isDirty, makePersistent, postEdit, postInsert, postModify, postWrite, preEdit, setCooked, setDirty, setRaw, setRawString, statusExistent, statusNonexistent, troidmarkValidpublic User()
Persistent User object.
Description: A registered user of the database.
See org.melati.poem.prepro.TableDef#generateMainJavapublic boolean givesCapability(Capability capability)
givesCapability in interface AccessTokencapability - the capability to checkAccessToken.givesCapability(org.melati.poem.Capability)public String getPassword() throws AccessPoemException
user Persistent.
Field description:
The user's password
Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethodsgetPassword in class UserBasePassword for this
user PersistentAccessPoemException - 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
Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethodssetPassword in class UserBasecooked - a validated intAccessPoemException - 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()
Copyright © 2000–2021 PanEris. All rights reserved.