public abstract class AbstractUser extends TransferableObject implements User
CHANGED_TS, COMMENT, CREATED_TS, EMAIL, FORE_NAME, GID, IS_ADMIN, IS_LOCKED, LANGUAGE, LAST_NAME, LOGIN_NAME, PASSWORD, UID, userDocType
Constructor and Description |
---|
AbstractUser(int uid,
int gid,
Language lang,
java.lang.String loginName,
java.lang.String foreName,
java.lang.String lastName,
java.lang.String email,
boolean isAdmin,
boolean isLocked,
java.lang.String password,
java.sql.Timestamp createdTs,
java.sql.Timestamp changedTs,
java.lang.String comment) |
Modifier and Type | Method and Description |
---|---|
AbstractUser |
clone() |
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o)
Must compare based on unique userName
|
java.sql.Timestamp |
getChangedTimestamp() |
java.lang.String |
getComment()
Returns an optional comment for this user.
|
java.sql.Timestamp |
getCreatedTimestamp() |
java.lang.String |
getEmailAddress()
Returns the user's email address.
|
java.lang.String |
getForeName()
Returns the user's forename.
|
int |
getGID()
Specifies an optional group for the user.
|
Language |
getLanguage()
Returns the
Language of this user. |
java.lang.String |
getLastName()
Returns the user's lastname.
|
java.lang.String |
getLoginName()
Returns the user's unique login name.
|
java.lang.String |
getPassword()
Returns the users password as stored on server side.
|
java.awt.Color |
getRenderColor() |
javax.swing.Icon |
getRenderIcon() |
java.lang.String |
getRenderText() |
int |
getUID()
Returns a unique ID for this user.
|
UserId |
getUserId()
Returns a shortcut identifier for this User Object
|
int |
hashCode() |
boolean |
isAdmin()
The user is defined to be the admin user if the userType is 0
|
boolean |
isLocked()
The user is allowed to log in.
|
void |
setAdmin(boolean isAdmin) |
void |
setChangedTimestamp(java.sql.Timestamp changedTs) |
void |
setComment(java.lang.String comment) |
void |
setCreatedTimestamp(java.sql.Timestamp createdTs) |
void |
setEmailAddress(java.lang.String email) |
void |
setForeName(java.lang.String foreName) |
void |
setGID(int userType)
Specifies an optional group for the user.
|
void |
setLanguage(Language language) |
void |
setLastName(java.lang.String lastName) |
void |
setLocked(boolean isLocked) |
void |
setLoginName(java.lang.String userName)
Sets the user's unique login name.
|
void |
setPassword(java.lang.String password) |
void |
setUID(int uid)
Note that once set the UID will never change.
|
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
copy
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
toDumpString, toString
public AbstractUser(int uid, int gid, Language lang, java.lang.String loginName, java.lang.String foreName, java.lang.String lastName, java.lang.String email, boolean isAdmin, boolean isLocked, java.lang.String password, java.sql.Timestamp createdTs, java.sql.Timestamp changedTs, java.lang.String comment)
public Language getLanguage()
User
Language
of this user.
This is the language used for the GUI after Login.getLanguage
in interface User
public void setLanguage(Language language)
setLanguage
in interface User
public javax.swing.Icon getRenderIcon()
getRenderIcon
in interface Renderable
public java.awt.Color getRenderColor()
getRenderColor
in interface Renderable
public java.lang.String getRenderText()
getRenderText
in interface Renderable
public java.sql.Timestamp getChangedTimestamp()
getChangedTimestamp
in interface User
public void setChangedTimestamp(java.sql.Timestamp changedTs)
setChangedTimestamp
in interface User
public java.sql.Timestamp getCreatedTimestamp()
getCreatedTimestamp
in interface User
public void setCreatedTimestamp(java.sql.Timestamp createdTs)
setCreatedTimestamp
in interface User
public boolean isAdmin()
User
public boolean isLocked()
User
public java.lang.String getForeName()
User
getForeName
in interface User
public java.lang.String getLastName()
User
getLastName
in interface User
public java.lang.String getEmailAddress()
User
getEmailAddress
in interface User
public void setEmailAddress(java.lang.String email)
setEmailAddress
in interface User
public java.lang.String getComment()
User
getComment
in interface User
public int getGID()
User
public void setGID(int userType)
User
public java.lang.String getPassword()
User
getPassword
in interface User
public void setPassword(java.lang.String password)
setPassword
in interface User
public int getUID()
User
public void setUID(int uid)
User
setUID
in interface User
User.getUID()
public java.lang.String getLoginName()
User
getLoginName
in interface User
public void setLoginName(java.lang.String userName)
User
setLoginName
in interface User
public void setForeName(java.lang.String foreName)
setForeName
in interface User
public void setLastName(java.lang.String lastName)
setLastName
in interface User
public void setComment(java.lang.String comment)
setComment
in interface User
public UserId getUserId()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public int hashCode()
hashCode
in class java.lang.Object
public AbstractUser clone()
clone
in interface User
clone
in class TransferableObject
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
Copyright © 2013 EsprIT-Systems. All Rights Reserved.