cmu.survey.data.users
Class UserStorageStub.DefaultUserStub

java.lang.Object
  extended by cmu.survey.data.users.UserStub
      extended by cmu.survey.data.users.UserStorageStub.DefaultUserStub
All Implemented Interfaces:
User
Enclosing class:
UserStorageStub

public class UserStorageStub.DefaultUserStub
extends UserStub


Field Summary
 
Fields inherited from class cmu.survey.data.users.UserStub
emailAddress, firstName, isEditable, isNew, lastName, password, uniqueID, userAuthenticationTechniquesToTry, userID
 
Constructor Summary
UserStorageStub.DefaultUserStub(boolean isNew)
           
UserStorageStub.DefaultUserStub(java.lang.String userID)
           
UserStorageStub.DefaultUserStub(java.lang.String userID, java.lang.String password, java.lang.String emailAddress, java.lang.String firstName, java.lang.String lastName)
           
UserStorageStub.DefaultUserStub(java.lang.String userID, java.lang.String password, java.lang.String emailAddress, java.lang.String firstName, java.lang.String lastName, boolean isEditable)
           
 
Method Summary
protected  UserAuthentication[] getUserAuthenticationTechniquesToTry()
          Subclasses may override this to force a set of UserAuthentications to be used.
 boolean isEditable()
           
 void setEditable(boolean editable)
           
 java.lang.String toString()
           
 
Methods inherited from class cmu.survey.data.users.UserStub
canSetPassword, canSetUserID, getDataBits, getEmailAddress, getFirstName, getLastName, getOtherPropertiesKeySet, getOtherProperty, getUserID, hasBeenModified, isNew, isOtherPropertyEditable, passwordMatches, setEmailAddress, setFirstName, setLastName, setNew, setOtherProperty, setPassword, setUserID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserStorageStub.DefaultUserStub

public UserStorageStub.DefaultUserStub(boolean isNew)

UserStorageStub.DefaultUserStub

public UserStorageStub.DefaultUserStub(java.lang.String userID)

UserStorageStub.DefaultUserStub

public UserStorageStub.DefaultUserStub(java.lang.String userID,
                                       java.lang.String password,
                                       java.lang.String emailAddress,
                                       java.lang.String firstName,
                                       java.lang.String lastName)

UserStorageStub.DefaultUserStub

public UserStorageStub.DefaultUserStub(java.lang.String userID,
                                       java.lang.String password,
                                       java.lang.String emailAddress,
                                       java.lang.String firstName,
                                       java.lang.String lastName,
                                       boolean isEditable)
Method Detail

isEditable

public boolean isEditable()
Specified by:
isEditable in interface User
Overrides:
isEditable in class UserStub

setEditable

public void setEditable(boolean editable)

getUserAuthenticationTechniquesToTry

protected UserAuthentication[] getUserAuthenticationTechniquesToTry()
Description copied from class: UserStub
Subclasses may override this to force a set of UserAuthentications to be used.

Overrides:
getUserAuthenticationTechniquesToTry in class UserStub
Returns:

toString

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