|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.survey.data.users.UserStorageStub
public class UserStorageStub
Nested Class Summary | |
---|---|
class |
UserStorageStub.DefaultUserStub
|
Field Summary | |
---|---|
protected UserAuthentication[] |
userAuthenticationsTechniquesToTry
|
Constructor Summary | |
---|---|
UserStorageStub(DataTableModel userTable)
|
|
UserStorageStub(DataTableModel userTable,
java.lang.String userIDColumn,
java.lang.String passwordColumn,
java.lang.String emailAddressColumn)
|
|
UserStorageStub(java.lang.String userIDColumn,
java.lang.String passwordColumn,
java.lang.String emailAddressColumn)
If you use this constructor rather than the other one, you MUST call setUserTable() with the table you've skipped here. |
Method Summary | |
---|---|
boolean |
deleteUser(User user)
|
java.util.List |
getAllEditableUsers()
|
protected java.lang.String |
getFirstNameColumn()
|
protected java.lang.String |
getLastNameColumn()
|
User |
getNewUser(java.lang.String userID)
Override this method if you have a subclass of User besides DefaultUserStub that has more information than it. |
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. |
protected User |
getUserFromRow(ForwardOnlyData row)
|
protected User |
makeUser(ForwardOnlyData row,
java.lang.String userID,
java.lang.String password,
java.lang.String emailAddress,
java.lang.String firstName,
java.lang.String lastName,
boolean isEditable)
Override this method if you have a subclass of User besides DefaultUserStub that has more information than it. |
protected User |
makeUser(java.lang.String userID)
Override this method if you have a subclass of User besides DefaultUserStub that has more information than it. |
boolean |
saveUser(User user)
|
protected void |
setFirstNameColumn(java.lang.String firstNameColumn)
|
protected void |
setLastNameColumn(java.lang.String lastNameColumn)
|
protected void |
setUsersTable(DataTableModel usersTable)
|
protected void |
setUsersTable(TableFormat tableFormat,
DataTableModel usersTable)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected UserAuthentication[] userAuthenticationsTechniquesToTry
Constructor Detail |
---|
public UserStorageStub(DataTableModel userTable, java.lang.String userIDColumn, java.lang.String passwordColumn, java.lang.String emailAddressColumn)
public UserStorageStub(java.lang.String userIDColumn, java.lang.String passwordColumn, java.lang.String emailAddressColumn)
userIDColumn
- passwordColumn
- emailAddressColumn
- public UserStorageStub(DataTableModel userTable)
Method Detail |
---|
protected void setUsersTable(DataTableModel usersTable)
protected void setUsersTable(TableFormat tableFormat, DataTableModel usersTable)
protected java.lang.String getFirstNameColumn()
protected void setFirstNameColumn(java.lang.String firstNameColumn)
protected java.lang.String getLastNameColumn()
protected void setLastNameColumn(java.lang.String lastNameColumn)
protected User makeUser(ForwardOnlyData row, java.lang.String userID, java.lang.String password, java.lang.String emailAddress, java.lang.String firstName, java.lang.String lastName, boolean isEditable)
firstName
- user's first namelastName
- user's last nameisEditable
- whether the user should be editable or notprotected User makeUser(java.lang.String userID)
userID
-
protected User getUserFromRow(ForwardOnlyData row)
public User getUser(java.lang.String userID)
UserStorage
getUser
in interface UserStorage
public User getUser(java.lang.String userID, java.lang.String password)
UserStorage
getUser
in interface UserStorage
public User getNewUser(java.lang.String userID)
getNewUser
in interface UserStorage
public java.util.List getAllEditableUsers()
getAllEditableUsers
in interface UserStorage
public boolean saveUser(User user)
saveUser
in interface UserStorage
public boolean deleteUser(User user)
deleteUser
in interface UserStorage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |