DJDoc v.1.0.0b-1

net.sf.djdoc.bo
Class UserEntity

java.lang.Object
  extended by net.sf.djdoc.bo.UserVO
      extended by net.sf.djdoc.bo.UserEntity
All Implemented Interfaces:
BusinessObject, User

public class UserEntity
extends UserVO
implements BusinessObject

The UserEntity is a persistence capable (via Hibernate) class.


Constructor Summary
UserEntity()
           
 
Method Summary
static UserEntity findByName(java.lang.String name)
          "Finder" method for retrieving a user by his name.
 int getId()
          Getter method for this UserEntity's internal ID.
 java.lang.String getPassword()
          Getter method for this UserEntity's password.
 void setId(int id)
          Setter method for this UserEntity's internal ID.
 void setPassword(java.lang.String password)
          Setter method for this UserEntity's password.
 
Methods inherited from class net.sf.djdoc.bo.UserVO
getName, getViewPref, setName, setViewPref, toggleViewPref
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserEntity

public UserEntity()
Method Detail

findByName

public static UserEntity findByName(java.lang.String name)
"Finder" method for retrieving a user by his name.

Parameters:
name - The name of the user to be retrieved.
Returns:
The UserEntity object with the given name

getId

public int getId()
Getter method for this UserEntity's internal ID.

Specified by:
getId in interface BusinessObject
Returns:
The internal ID of this UserEntity

setId

public void setId(int id)
Setter method for this UserEntity's internal ID.

Parameters:
id - The internal ID of this UserEntity

getPassword

public java.lang.String getPassword()
Getter method for this UserEntity's password. The password itself is not used by the DJDoc web application, but providing this attribute causes a corresponding column to be created in the database during the schema creation by Hibernate. This allows to configure the container to use the same database for authentication (if ContainerBasedUserStrategy is used).

Returns:
The password of this UserEntity

setPassword

public void setPassword(java.lang.String password)
Setter method for this UserEntity's password.

Parameters:
password - The password of this UserEntity

DJDoc v.1.0.0b-1