org.apache.shale.usecases.model.minimal
Class MinimalUser

java.lang.Object
  extended by org.apache.shale.usecases.model.minimal.MinimalUser
All Implemented Interfaces:
User

public class MinimalUser
extends Object
implements User

Minimal implementation of User with no persistence support.

$Id: MinimalUser.java 464373 2006-10-16 04:21:54Z rahul $


Constructor Summary
MinimalUser()
           
 
Method Summary
 int[] getCategories()
          Return the category identifiers of the message categories selected by this user.
 Date getCreated()
          Return the "initially created" timestamp for this user.
 String getEmailAddress()
          Return the email address of this user.
 String getFullName()
          Return the full name of this user.
 int getId()
          Return the primary key for this user.
 String getPassword()
          Return the password of this user.
 Date getUpdated()
          Return the "last updated" timestamp for this user.
 String getUsername()
          Return the username of this user.
 boolean isConfirmed()
          Return the flag indicating that this user's email address has been confirmed.
 void setCategories(int[] categories)
          Set the category identifiers of the message categories selected by this user.
 void setConfirmed(boolean confirmed)
          Set the flag indicating that this user's email address has been confirmed.
 void setCreated(Date created)
          Set the "initially created" timestamp for this user.
 void setEmailAddress(String emailAddress)
          Set the email address of this user.
 void setFullName(String fullName)
          Set the full name of this user.
 void setId(int id)
          Set the primary key for this user.
 void setPassword(String password)
          Set the password of this user.
 void setUpdated(Date updated)
          Set the "last updated" timestamp for this user.
 void setUsername(String username)
          Set the username of this user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinimalUser

public MinimalUser()
Method Detail

getCategories

public int[] getCategories()
Description copied from interface: User

Return the category identifiers of the message categories selected by this user.

Specified by:
getCategories in interface User

setCategories

public void setCategories(int[] categories)
Description copied from interface: User

Set the category identifiers of the message categories selected by this user.

Specified by:
setCategories in interface User
Parameters:
categories - The new category identifiers

isConfirmed

public boolean isConfirmed()
Description copied from interface: User

Return the flag indicating that this user's email address has been confirmed.

Specified by:
isConfirmed in interface User

setConfirmed

public void setConfirmed(boolean confirmed)
Description copied from interface: User

Set the flag indicating that this user's email address has been confirmed.

Specified by:
setConfirmed in interface User
Parameters:
confirmed - The new confirmed flag

getCreated

public Date getCreated()
Description copied from interface: User

Return the "initially created" timestamp for this user.

Specified by:
getCreated in interface User

setCreated

public void setCreated(Date created)
Description copied from interface: User

Set the "initially created" timestamp for this user.

Specified by:
setCreated in interface User
Parameters:
created - The new initially created timestamp

getEmailAddress

public String getEmailAddress()
Description copied from interface: User

Return the email address of this user.

Specified by:
getEmailAddress in interface User

setEmailAddress

public void setEmailAddress(String emailAddress)
Description copied from interface: User

Set the email address of this user.

Specified by:
setEmailAddress in interface User
Parameters:
emailAddress - The new email address

getFullName

public String getFullName()
Description copied from interface: User

Return the full name of this user.

Specified by:
getFullName in interface User

setFullName

public void setFullName(String fullName)
Description copied from interface: User

Set the full name of this user.

Specified by:
setFullName in interface User
Parameters:
fullName - The new full name

getId

public int getId()
Description copied from interface: User

Return the primary key for this user.

Specified by:
getId in interface User

setId

public void setId(int id)
Description copied from interface: User

Set the primary key for this user.

Specified by:
setId in interface User
Parameters:
id - The new primary key

getPassword

public String getPassword()
Description copied from interface: User

Return the password of this user.

Specified by:
getPassword in interface User

setPassword

public void setPassword(String password)
Description copied from interface: User

Set the password of this user.

Specified by:
setPassword in interface User
Parameters:
password - The new password

getUpdated

public Date getUpdated()
Description copied from interface: User

Return the "last updated" timestamp for this user.

Specified by:
getUpdated in interface User

setUpdated

public void setUpdated(Date updated)
Description copied from interface: User

Set the "last updated" timestamp for this user.

Specified by:
setUpdated in interface User
Parameters:
updated - The new last updated timestamp

getUsername

public String getUsername()
Description copied from interface: User

Return the username of this user.

Specified by:
getUsername in interface User

setUsername

public void setUsername(String username)
Description copied from interface: User

Set the username of this user.

Specified by:
setUsername in interface User
Parameters:
username - The new username


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.