org.olat.basesecurity
Class IdentityImpl

java.lang.Object
  extended by org.olat.core.commons.persistence.PersistentObject
      extended by org.olat.basesecurity.IdentityImpl
All Implemented Interfaces:
java.io.Serializable, CreateInfo, Identity, Persistable

public class IdentityImpl
extends PersistentObject
implements Identity, java.io.Serializable

Description:

Author:
Felix Jost
See Also:
Serialized Form

Field Summary
static int NAME_MAXLENGTH
          Maximum length of an identity's name.
 
Fields inherited from interface org.olat.core.id.Identity
STATUS_ACTIV, STATUS_DELETED, STATUS_LOGIN_DENIED, STATUS_PERMANENT, STATUS_VISIBLE_LIMIT
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares the usernames.
 java.util.Date getLastLogin()
           
 java.lang.String getName()
           
 java.lang.Integer getStatus()
          Status can be [activ|deleted|permanent].
 User getUser()
           
 int hashCode()
           
 void setLastLogin(java.util.Date newLastLogin)
          Set new last login value
 void setName(java.lang.String name)
          for hibernate only Sets the name.
 void setStatus(java.lang.Integer status)
          Set new status (aktiv,deleted,permanent) of identity.
 java.lang.String toString()
           
 
Methods inherited from class org.olat.core.commons.persistence.PersistentObject
equalsByPersistableKey, getCreationDate, getKey
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.id.CreateInfo
getCreationDate
 
Methods inherited from interface org.olat.core.id.Persistable
equalsByPersistableKey, getKey
 

Field Detail

NAME_MAXLENGTH

public static final int NAME_MAXLENGTH
Maximum length of an identity's name.

See Also:
Constant Field Values
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Identity
Returns:
String

getUser

public User getUser()
Specified by:
getUser in interface Identity
Returns:
User

getLastLogin

public java.util.Date getLastLogin()
Specified by:
getLastLogin in interface Identity
Returns:
lastLogin

setName

public void setName(java.lang.String name)
for hibernate only Sets the name.

Specified by:
setName in interface Identity
Parameters:
name - The name to set

setLastLogin

public void setLastLogin(java.util.Date newLastLogin)
Set new last login value

Specified by:
setLastLogin in interface Identity
Parameters:
newLastLogin - The new last login date

toString

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

getStatus

public java.lang.Integer getStatus()
Status can be [activ|deleted|permanent].

Specified by:
getStatus in interface Identity
Returns:
Returns the status.

setStatus

public void setStatus(java.lang.Integer status)
Description copied from interface: Identity
Set new status (aktiv,deleted,permanent) of identity.

Specified by:
setStatus in interface Identity
Parameters:
status - The status to set.

equals

public boolean equals(java.lang.Object obj)
Compares the usernames.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object