cmu.survey.data.users
Interface UserStorage

All Known Implementing Classes:
UserStorageStub

public interface UserStorage


Method Summary
 boolean deleteUser(User user)
           
 java.util.List getAllEditableUsers()
           
 User getNewUser(java.lang.String userID)
          This function returns a blank, default user.
 User getUser(java.lang.String userID)
          Get any possible user that matches this userID.
 User getUser(java.lang.String userID, java.lang.String password)
          Get any possible user that matches this userID and password.
 boolean saveUser(User user)
           
 

Method Detail

getUser

User getUser(java.lang.String userID)
Get any possible user that matches this userID. If there are abstract matches to users (i.e. other ways to authenticate a user), this returns a user that will match those authentication techniques when User.passwordMatches(String) is called.
Any other options are set to the default for users authenticated through that technique.

Parameters:
userID -
Returns:

getUser

User getUser(java.lang.String userID,
             java.lang.String password)
Get any possible user that matches this userID and password. Returns null if the userID/password is not correct.

Parameters:
userID -
Returns:

getNewUser

User getNewUser(java.lang.String userID)
This function returns a blank, default user. Any other options are set to the default for new users.

Returns:

getAllEditableUsers

java.util.List getAllEditableUsers()

saveUser

boolean saveUser(User user)

deleteUser

boolean deleteUser(User user)