org.strutsme.wishlist.common.dto
Class UserDtoImpl

java.lang.Object
  extended by org.strutsme.common.serialization.SerializationBase
      extended by org.strutsme.wishlist.common.dto.BaseDtoImpl
          extended by org.strutsme.wishlist.common.dto.UserDtoImpl

public final class UserDtoImpl
extends BaseDtoImpl

used as a wrapperclass for org.strutsme.server.persistence.dto.UserDto in the Servermodule.

Author:
lbusmann

Constructor Summary
UserDtoImpl()
           
 
Method Summary
 void copyValuesToBean(SafeHashtable map)
          Update all properties of this bean from the given map. mwolff: checklipse warning is ok here.
 void copyValuesToMap(SafeHashtable map)
          Copy all properties from this bean into the given map. Also it has to set the version under the Constants.VERSION key. mwolff: checklipse warning is ok here.
 java.lang.String getEmail()
          gets the emailAddress of the user.
 java.lang.String getFamilyName()
          gets the familyname.
 java.lang.String getFirstName()
          the firstname of the user.
 java.lang.String getPassword()
          gets the password for the user.
 java.lang.String getPhone()
          gets the phonenumber of the user.
 java.lang.String getUsername()
          gets the username of the user.
 void setEmail(java.lang.String email)
          sets the emailAddress of the user.
 void setFamilyName(java.lang.String familyName)
          sets the familyName of the user.
 void setFirstName(java.lang.String firstName)
          the firstname of the user.
 void setPassword(java.lang.String password)
          sets the password for the user.
 void setPhone(java.lang.String phone)
          sets the phonenumber for the user.
 void setUsername(java.lang.String username)
          sets the username.
 
Methods inherited from class org.strutsme.wishlist.common.dto.BaseDtoImpl
getCreatedAt, getId, setCreatedAt, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDtoImpl

public UserDtoImpl()
Method Detail

copyValuesToBean

public void copyValuesToBean(SafeHashtable map)
                      throws SerializationException
Update all properties of this bean from the given map. mwolff: checklipse warning is ok here.

Overrides:
copyValuesToBean in class BaseDtoImpl
Parameters:
map - the SafeHashtable with the values of the properties
Throws:
SerializationException - in the case of a wrong serialization version

copyValuesToMap

public void copyValuesToMap(SafeHashtable map)
                     throws SerializationException
Copy all properties from this bean into the given map. Also it has to set the version under the Constants.VERSION key. mwolff: checklipse warning is ok here.

Overrides:
copyValuesToMap in class BaseDtoImpl
Parameters:
map - the target SafeHashtable to be filled
Throws:
SerializationException - in the case of a wrong serialization version

getEmail

public java.lang.String getEmail()
gets the emailAddress of the user.

Returns:
the emailaddress of the user

setEmail

public void setEmail(java.lang.String email)
sets the emailAddress of the user.

Parameters:
email - sets the emailAddress of the user

getFamilyName

public java.lang.String getFamilyName()
gets the familyname.

Returns:
the familyname

setFamilyName

public void setFamilyName(java.lang.String familyName)
sets the familyName of the user.

Parameters:
familyName - the familyName to set

getFirstName

public java.lang.String getFirstName()
the firstname of the user.

Returns:
the firstname of the user

setFirstName

public void setFirstName(java.lang.String firstName)
the firstname of the user.

Parameters:
firstName - the firstName to set

getPassword

public java.lang.String getPassword()
gets the password for the user.

Returns:
the password of the user

setPassword

public void setPassword(java.lang.String password)
sets the password for the user.

Parameters:
password - the password to set

getPhone

public java.lang.String getPhone()
gets the phonenumber of the user.

Returns:
the users phonenumber

setPhone

public void setPhone(java.lang.String phone)
sets the phonenumber for the user.

Parameters:
phone - the phonenumber to set

getUsername

public java.lang.String getUsername()
gets the username of the user.

Returns:
the username

setUsername

public void setUsername(java.lang.String username)
sets the username.

Parameters:
username - the username to set