edu.whoi.ursa.argoDatabase.entity
Class User

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.entity.User

@Entity
public class User
extends java.lang.Object


Nested Class Summary
static class User.UserTable
           
 
Field Summary
private  java.lang.Boolean approved
           
private static java.util.Map<java.lang.Integer,java.lang.String> cachedUserIdNameMap
           
private  java.lang.String email
           
private  java.lang.String fname
           
private  java.lang.Integer id
           
private  java.util.Calendar lastLogin
           
private  java.lang.String lname
           
private  java.lang.String pass
           
private  java.util.Calendar passExp
           
private  java.lang.String uname
           
 
Constructor Summary
User()
           
 
Method Summary
static org.w3c.dom.Element createChangePasswordForm(org.w3c.dom.Element element)
          print change password form to element
static org.w3c.dom.Element createNewUserForm(org.w3c.dom.Element element)
          print new user form to element
 java.lang.Boolean getApproved()
           
 java.lang.String getEmail()
           
 java.lang.String getFname()
           
 java.lang.Integer getId()
           
 java.util.Calendar getLastLogin()
           
 java.lang.String getLname()
           
 java.lang.String getName()
           
static java.lang.String getName(java.lang.Integer id)
          get user name by id
 java.lang.String getPass()
           
 java.util.Calendar getPassExp()
           
 java.lang.String getUname()
           
 java.lang.Boolean isPasswordExpired()
          check if user password has expired.
 void setApproved(java.lang.Boolean approved)
           
 void setEmail(java.lang.String email)
           
 void setFname(java.lang.String fname)
           
 void setId(java.lang.Integer id)
           
 void setLastLogin(java.util.Calendar lastLogin)
           
 void setLname(java.lang.String lname)
           
 void setPass(java.lang.String pass)
           
 void setPassExp(java.util.Calendar passExp)
           
 void setUname(java.lang.String uname)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cachedUserIdNameMap

private static final java.util.Map<java.lang.Integer,java.lang.String> cachedUserIdNameMap

id

private java.lang.Integer id

uname

private java.lang.String uname

fname

private java.lang.String fname

lname

private java.lang.String lname

pass

private java.lang.String pass

email

private java.lang.String email

passExp

private java.util.Calendar passExp

lastLogin

private java.util.Calendar lastLogin

approved

private java.lang.Boolean approved
Constructor Detail

User

public User()
Method Detail

createChangePasswordForm

public static org.w3c.dom.Element createChangePasswordForm(org.w3c.dom.Element element)
print change password form to element

Parameters:
element -
Returns:

createNewUserForm

public static org.w3c.dom.Element createNewUserForm(org.w3c.dom.Element element)
print new user form to element

Parameters:
element -
Returns:

getName

public static java.lang.String getName(java.lang.Integer id)
get user name by id

Parameters:
id -
Returns:

getApproved

public java.lang.Boolean getApproved()
Returns:
the approved

setApproved

public void setApproved(java.lang.Boolean approved)
Parameters:
approved - the approved to set

getEmail

public java.lang.String getEmail()
Returns:
the email

getFname

public java.lang.String getFname()
Returns:
the fname

getId

public java.lang.Integer getId()
Returns:
the id

getLastLogin

public java.util.Calendar getLastLogin()
Returns:
the lastLogin

getLname

public java.lang.String getLname()
Returns:
the lname

getName

public java.lang.String getName()
Returns:
the name

getPass

public java.lang.String getPass()
Returns:
the pass

getPassExp

public java.util.Calendar getPassExp()
Returns:
the passExp

getUname

public java.lang.String getUname()
Returns:
the uname

isPasswordExpired

public java.lang.Boolean isPasswordExpired()
check if user password has expired.

Returns:
true if password has expired or is not set. false otherwise

setEmail

public void setEmail(java.lang.String email)
              throws ADBException
Parameters:
email - the email to set
Throws:
ADBException

setFname

public void setFname(java.lang.String fname)
              throws ADBException
Parameters:
fname - the fname to set
Throws:
ADBException

setId

public void setId(java.lang.Integer id)
Parameters:
id - the id to set

setLastLogin

public void setLastLogin(java.util.Calendar lastLogin)
Parameters:
lastLogin - the lastLogin to set

setLname

public void setLname(java.lang.String lname)
              throws ADBException
Parameters:
lname - the lname to set
Throws:
ADBException

setPass

public void setPass(java.lang.String pass)
             throws ADBException
Parameters:
pass - the pass to set
Throws:
ADBException

setPassExp

public void setPassExp(java.util.Calendar passExp)
Parameters:
passExp - the passExp to set

setUname

public void setUname(java.lang.String uname)
              throws ADBException
Parameters:
uname - the uname to set
Throws:
ADBException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object