ibrokerkit.ibrokerstore.store.impl.db
Class DbUser

java.lang.Object
  extended by ibrokerkit.ibrokerstore.store.impl.AbstractUser
      extended by ibrokerkit.ibrokerstore.store.impl.db.DbUser
All Implemented Interfaces:
DbObject, User, java.io.Serializable, java.lang.Comparable<User>

public class DbUser
extends AbstractUser
implements DbObject

See Also:
Serialized Form

Method Summary
static java.util.List<DbUser> All(org.hibernate.Session session)
           
static java.util.List<DbUser> ByEmail(org.hibernate.Session session, java.lang.String email)
           
static DbUser ByIdentifier(org.hibernate.Session session, java.lang.String identifier)
           
static DbUser ByIdentifierAndPass(org.hibernate.Session session, java.lang.String identifier, java.lang.String pass)
           
static DbUser ByName(org.hibernate.Session session, java.lang.String name)
           
static DbUser ByRecovery(org.hibernate.Session session, java.lang.String recovery)
           
static java.lang.Long Count(org.hibernate.Session session)
           
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          Get arbitrary key/value pairs.
 java.lang.String getEmail()
          Get the e-mail address of this user.
 java.lang.Long getId()
          Get the internal ID of this user.
 java.lang.String getIdentifier()
          Get the main identifier of this user.
 java.lang.String getName()
          Get the name of this user.
 java.lang.Boolean getOpenid()
          Get a flag whether a user is an OpenID user.
 java.lang.String getPass()
          Get the hashed password of this user.
 java.lang.String getRecovery()
          Get the recovery code of this user.
 java.sql.Timestamp getTimestamp()
          Get the internal timestamp of this user.
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
          Set arbitrary key/value pairs.
 void setEmail(java.lang.String email)
          Set the e-mail address of this user.
 void setIdentifier(java.lang.String identifier)
          Set the main identifier of this user.
 void setName(java.lang.String name)
          Set the name of this user.
 void setOpenid(java.lang.Boolean openid)
          Set a flag whether a user is an OpenID user.
 void setPass(java.lang.String pass)
          Set the hashed password of this user
 void setRecovery(java.lang.String recovery)
          Set the recovery code of this user.
 
Methods inherited from class ibrokerkit.ibrokerstore.store.impl.AbstractUser
compareTo, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public java.lang.Long getId()
Description copied from interface: User
Get the internal ID of this user.

Specified by:
getId in interface User
Returns:
ID.

getTimestamp

public java.sql.Timestamp getTimestamp()
Description copied from interface: User
Get the internal timestamp of this user.

Specified by:
getTimestamp in interface User
Returns:
Timestamp.

getEmail

public java.lang.String getEmail()
Description copied from interface: User
Get the e-mail address of this user. This can be used for looking up a user if they forget the password.

Specified by:
getEmail in interface User
Returns:
Email.

setEmail

public void setEmail(java.lang.String email)
Description copied from interface: User
Set the e-mail address of this user. This can be used for looking up a user if they forget the password.

Specified by:
setEmail in interface User
Parameters:
email - Email.

getIdentifier

public java.lang.String getIdentifier()
Description copied from interface: User
Get the main identifier of this user. This is normally the first i-name they register.

Specified by:
getIdentifier in interface User
Returns:
Identifier.

setIdentifier

public void setIdentifier(java.lang.String identifier)
Description copied from interface: User
Set the main identifier of this user. This is normally the first i-name they register.

Specified by:
setIdentifier in interface User
Parameters:
identifier - Identifier.

getName

public java.lang.String getName()
Description copied from interface: User
Get the name of this user. This is not used by ibrokerKit internally.

Specified by:
getName in interface User
Returns:
Name.

setName

public void setName(java.lang.String name)
Description copied from interface: User
Set the name of this user. This is not used by ibrokerKit internally.

Specified by:
setName in interface User
Parameters:
name - Name.

getPass

public java.lang.String getPass()
Description copied from interface: User
Get the hashed password of this user.

Specified by:
getPass in interface User
Returns:
Pass.

setPass

public void setPass(java.lang.String pass)
Description copied from interface: User
Set the hashed password of this user

Specified by:
setPass in interface User
Parameters:
pass - Pass.

getRecovery

public java.lang.String getRecovery()
Description copied from interface: User
Get the recovery code of this user. This can be used for resetting the password.

Specified by:
getRecovery in interface User
Returns:
Recovery.

setRecovery

public void setRecovery(java.lang.String recovery)
Description copied from interface: User
Set the recovery code of this user. This can be used for resetting the password.

Specified by:
setRecovery in interface User
Parameters:
recovery - Recovery.

getOpenid

public java.lang.Boolean getOpenid()
Description copied from interface: User
Get a flag whether a user is an OpenID user.

Specified by:
getOpenid in interface User
Returns:
Openid.

setOpenid

public void setOpenid(java.lang.Boolean openid)
Description copied from interface: User
Set a flag whether a user is an OpenID user.

Specified by:
setOpenid in interface User
Parameters:
openid - Openid.

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Description copied from interface: User
Get arbitrary key/value pairs. These attributes are not used internally.

Specified by:
getAttributes in interface User
Returns:
Attributes.

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Description copied from interface: User
Set arbitrary key/value pairs. These attributes are not used internally.

Specified by:
setAttributes in interface User
Parameters:
attributes - Attributes.

All

public static java.util.List<DbUser> All(org.hibernate.Session session)

ByIdentifier

public static DbUser ByIdentifier(org.hibernate.Session session,
                                  java.lang.String identifier)

ByName

public static DbUser ByName(org.hibernate.Session session,
                            java.lang.String name)

ByEmail

public static java.util.List<DbUser> ByEmail(org.hibernate.Session session,
                                             java.lang.String email)

ByRecovery

public static DbUser ByRecovery(org.hibernate.Session session,
                                java.lang.String recovery)

ByIdentifierAndPass

public static DbUser ByIdentifierAndPass(org.hibernate.Session session,
                                         java.lang.String identifier,
                                         java.lang.String pass)

Count

public static java.lang.Long Count(org.hibernate.Session session)


Copyright © 2009. All Rights Reserved.