cmu.survey.data.users
Interface User

All Known Implementing Classes:
UserStorageStub.DefaultUserStub, UserStub

public interface User


Method Summary
 boolean canSetPassword()
           
 boolean canSetUserID()
           
 java.lang.String getEmailAddress()
           
 java.lang.String getFirstName()
           
 java.lang.String getLastName()
           
 java.util.List getOtherPropertiesKeySet()
          Returns a List with string names for any other properties, editable or not, that this thing has.
 java.lang.Object getOtherProperty(java.lang.String key)
          Will throw an IllegalArgumentException if there is no such key.
 java.lang.String getUserID()
           
 boolean isEditable()
           
 boolean isOtherPropertyEditable(java.lang.String key)
          Will throw an IllegalArgumentException if there is no such key.
 boolean passwordMatches(java.lang.String string)
           
 void setEmailAddress(java.lang.String string)
           
 void setFirstName(java.lang.String string)
           
 void setLastName(java.lang.String string)
           
 void setOtherProperty(java.lang.String key, java.lang.Object o)
          Will throw an IllegalArgumentException if there is no such key.
 void setPassword(java.lang.String string)
           
 void setUserID(java.lang.String string)
           
 

Method Detail

getEmailAddress

java.lang.String getEmailAddress()
Returns:

getFirstName

java.lang.String getFirstName()
Returns:

getLastName

java.lang.String getLastName()
Returns:

getUserID

java.lang.String getUserID()
Returns:

setEmailAddress

void setEmailAddress(java.lang.String string)
Parameters:
string -

setFirstName

void setFirstName(java.lang.String string)
Parameters:
string -

setLastName

void setLastName(java.lang.String string)
Parameters:
string -

canSetPassword

boolean canSetPassword()

setPassword

void setPassword(java.lang.String string)
Parameters:
string -

passwordMatches

boolean passwordMatches(java.lang.String string)

canSetUserID

boolean canSetUserID()

setUserID

void setUserID(java.lang.String string)
Parameters:
string -

isEditable

boolean isEditable()

getOtherPropertiesKeySet

java.util.List getOtherPropertiesKeySet()
Returns a List with string names for any other properties, editable or not, that this thing has. This can be used for a graphical editor of these users. Return null if there are no other properties.

Returns:

getOtherProperty

java.lang.Object getOtherProperty(java.lang.String key)
Will throw an IllegalArgumentException if there is no such key.

Parameters:
key -
Returns:

setOtherProperty

void setOtherProperty(java.lang.String key,
                      java.lang.Object o)
Will throw an IllegalArgumentException if there is no such key.

Parameters:
key -

isOtherPropertyEditable

boolean isOtherPropertyEditable(java.lang.String key)
Will throw an IllegalArgumentException if there is no such key.

Parameters:
key -
Returns: