A B C D E F G I L M N R S T U W

A

addBlab(BlabInterface) - Method in class blather.model.BlatherUser
 
addBlab(BlabInterface) - Method in interface blather.model.BlatherUserInterface
Creates a new blab for this user.
addFriend(BlatherUserInterface) - Method in class blather.model.BlatherUser
 
addFriend(BlatherUserInterface) - Method in interface blather.model.BlatherUserInterface
Adds a new friend, so that this BlatherUser will be tracking the blabs of newFriend.
addUser(BlatherUserInterface) - Method in class blather.model.UserDB
Adds the given user to the user database.
AppController - Class in blather.controller
 
AppController(UserDB, SessionDB) - Constructor for class blather.controller.AppController
Creates a new AppController with the given user and session databases.
AppControllerInterface - Interface in blather.controller
 
arbitrary() - Static method in class blather.model.SimpleDate
 

B

Blab - Class in blather.model
This class models an individual blather post, or "blab." A blab has some content (e.g.
Blab(String, String) - Constructor for class blather.model.Blab
Creates a new blab with the given content and username, with the current time as its creation time.
blabCount() - Method in class blather.model.BlatherUser
 
blabCount() - Method in interface blather.model.BlatherUserInterface
Returns the number of blabs this user has posted.
BlabInterface - Interface in blather.model
 
BlabUtil - Class in blather.util
Provides utility code to help with Blabs.
BlabUtil() - Constructor for class blather.util.BlabUtil
 
blather.controller - package blather.controller
 
blather.exceptions - package blather.exceptions
 
blather.model - package blather.model
 
blather.util - package blather.util
 
blather.view - package blather.view
 
BlatherUser - Class in blather.model
BlatherUser models a user of the Blather application.
BlatherUser(String, String, EmailAddressInterface) - Constructor for class blather.model.BlatherUser
Creates a new BlatherUser with the given username, password, and address.
BlatherUserInterface - Interface in blather.model
 
BlatherView - Interface in blather.view
 
BogusParameterException - Exception in blather.exceptions
The BogusParameterException provides a mechanism for the controller to signal to the view that some parameter it supplied is invalid.
BogusParameterException(String) - Constructor for exception blather.exceptions.BogusParameterException
Constructs a new BogusParameterException with a given explanation.

C

changeEmail(String) - Method in class blather.controller.UserController
 
changeEmail(String) - Method in interface blather.controller.UserControllerInterface
Changes this user's profile email address.
checkPassword(String) - Method in class blather.model.BlatherUser
 
checkPassword(String) - Method in interface blather.model.BlatherUserInterface
Returns true if the given password is correct for this BlatherUser, false otherwise.
compareTo(Object) - Method in class blather.model.SimpleDate
 

D

dateToString() - Method in class blather.model.SimpleDate
Returns a string representation of the date.
DBPersistence - Class in blather.util
 
DBPersistence() - Constructor for class blather.util.DBPersistence
 
DBPersistenceException - Exception in blather.util
This represents an exceptional condition in dealing with database persistence -- that is, loading the database or saving it to a file.
DBPersistenceException(String) - Constructor for exception blather.util.DBPersistenceException
 
DEFAULT_FILENAME - Static variable in interface blather.controller.AppControllerInterface
 

E

EmailAddress - Class in blather.model
This class models an email address.
EmailAddress(String) - Constructor for class blather.model.EmailAddress
Creates a new EmailAddress from the given String, which must be a valid email address, as defined by EmailAddress.isValid(String).
EmailAddressInterface - Interface in blather.model
 

F

friendCount() - Method in class blather.model.BlatherUser
 
friendCount() - Method in interface blather.model.BlatherUserInterface
Returns the number of BlatherUsers this user has befriended.

G

getAllBlabs() - Method in class blather.controller.UserController
 
getAllBlabs() - Method in interface blather.controller.UserControllerInterface
Returns an array consisting of all of this user's blabs, sorted in reverse chronological order.
getAllBlabs() - Method in class blather.model.BlatherUser
 
getAllBlabs() - Method in interface blather.model.BlatherUserInterface
Returns a copy of the array of all Blabs authored by this user.
getAllFriendBlabs() - Method in class blather.controller.UserController
 
getAllFriendBlabs() - Method in interface blather.controller.UserControllerInterface
Returns an array consisting of all of this user's friends' blabs, sorted in reverse chronological order.
getBlab(int) - Method in class blather.model.BlatherUser
 
getBlab(int) - Method in interface blather.model.BlatherUserInterface
Returns this user's blab with the given identifier.
getContent() - Method in class blather.model.Blab
 
getContent() - Method in interface blather.model.BlabInterface
Returns the content of this blab.
getDate() - Method in class blather.model.Blab
 
getDate() - Method in interface blather.model.BlabInterface
Returns the creation date of this blab.
getDay() - Method in class blather.model.SimpleDate
 
getDisplayEmail() - Method in class blather.model.EmailAddress
 
getDisplayEmail() - Method in interface blather.model.EmailAddressInterface
Returns the "displayable form" of the responder's email address.
getEmail() - Method in class blather.controller.UserController
 
getEmail() - Method in interface blather.controller.UserControllerInterface
If this UserController's session ID is valid, return a string representation of this user's full email address.
getEmail() - Method in class blather.model.BlatherUser
 
getEmail() - Method in interface blather.model.BlatherUserInterface
Returns this BlatherUser's email address
getEmail() - Method in class blather.model.EmailAddress
 
getEmail() - Method in interface blather.model.EmailAddressInterface
Returns the address, as a String.
getFriend(int) - Method in class blather.model.BlatherUser
 
getFriend(int) - Method in interface blather.model.BlatherUserInterface
Returns a BlatherUser corresponding to this user's friend with friend identifier id.
getFriends() - Method in class blather.controller.UserController
 
getFriends() - Method in interface blather.controller.UserControllerInterface
Returns an array of this user's friends.
getHour() - Method in class blather.model.SimpleDate
 
getMinute() - Method in class blather.model.SimpleDate
 
getMonth() - Method in class blather.model.SimpleDate
 
getSomeBlabs(int) - Method in class blather.controller.UserController
 
getSomeBlabs(int) - Method in interface blather.controller.UserControllerInterface
Returns an array consisting of some of this user's blabs, sorted in reverse chronological order.
getSomeFriendBlabs(int) - Method in class blather.controller.UserController
 
getSomeFriendBlabs(int) - Method in interface blather.controller.UserControllerInterface
Returns an array consisting of some of this user's friends' blabs, sorted in reverse chronological order.
getUser(String, String) - Method in class blather.controller.AppController
 
getUser(String, String) - Method in interface blather.controller.AppControllerInterface
Returns a newly-allocated UserController for the given username.
getUser(String) - Method in class blather.model.UserDB
Returns the user with the given username.
getUserList() - Method in class blather.controller.AppController
 
getUserList() - Method in interface blather.controller.AppControllerInterface
Returns a list of all valid user names in the user database.
getUsername() - Method in class blather.controller.UserController
 
getUsername() - Method in interface blather.controller.UserControllerInterface
Returns this user's username.
getUserName() - Method in class blather.model.Blab
 
getUserName() - Method in interface blather.model.BlabInterface
Returns the name of the user who posted this blab.
getUsername() - Method in class blather.model.BlatherUser
 
getUsername() - Method in interface blather.model.BlatherUserInterface
Returns this BlatherUser's username (that is, his or her display name).
getYear() - Method in class blather.model.SimpleDate
 

I

isSessionValid(String) - Method in class blather.model.SessionDB
Returns true if sessionKey corresponds to a valid session, false otherwise.
isValid(String) - Static method in class blather.model.EmailAddress
Determines whether or not a given String corresponds to a valid email address.
isValid() - Method in class blather.model.SimpleDate
Returns true if this SimpleDate is valid -- that is, does this SimpleDate correspond to a legitimate date in the Gregorian calendar? -- and false otherwise.

L

listUserNames() - Method in class blather.model.UserDB
Returns an array of all user names in the system.
load() - Method in class blather.controller.AppController
 
load() - Method in interface blather.controller.AppControllerInterface
Loads a user database from the default filename.
loadFromFile(String) - Method in class blather.controller.AppController
 
loadFromFile(String) - Method in interface blather.controller.AppControllerInterface
Loads a user database from the given filename.
login(String, String) - Method in class blather.controller.AppController
 
login(String, String) - Method in interface blather.controller.AppControllerInterface
Logs the given user in to the session database
login(BlatherUserInterface) - Method in class blather.model.SessionDB
 
logout(String) - Method in class blather.controller.AppController
 
logout(String) - Method in interface blather.controller.AppControllerInterface
Logs out the user with the given session ID.
logout(String) - Method in class blather.model.SessionDB
Removes the session with the given key from the database, logging this user out.

M

main(String[]) - Static method in class blather.model.SimpleDate
 

N

newBlab(String) - Method in class blather.controller.UserController
 
newBlab(String) - Method in interface blather.controller.UserControllerInterface
Creates a new blab for this user with the given content, with a timestamp of now, and adds this blab to the list of user blabs.
newFriend(String) - Method in class blather.controller.UserController
 
newFriend(String) - Method in interface blather.controller.UserControllerInterface
Adds a friend to the list of users that this user is tracking.
newUser(String, String, String) - Method in class blather.controller.AppController
 
newUser(String, String, String) - Method in interface blather.controller.AppControllerInterface
Creates a new user with the specified username, password, and email address.
now() - Static method in class blather.model.SimpleDate
Creates a new SimpleDate object corresponding to the current time, in the Central time zone.
now(String) - Static method in class blather.model.SimpleDate
Creates a new SimpleDate object corresponding to the current time, in the specified time zone.

R

readFromFile(String) - Static method in class blather.util.DBPersistence
 
run() - Method in interface blather.view.BlatherView
Runs this application.

S

save() - Method in class blather.controller.AppController
 
save() - Method in interface blather.controller.AppControllerInterface
Saves the user database to the default filename.
saveToFile(String) - Method in class blather.controller.AppController
 
saveToFile(String) - Method in interface blather.controller.AppControllerInterface
Saves the user database to the given filename.
serialVersionUID - Static variable in interface blather.model.BlatherUserInterface
 
serialVersionUID - Static variable in interface blather.model.EmailAddressInterface
 
serialVersionUID - Static variable in class blather.model.SimpleDate
 
serialVersionUID - Static variable in class blather.model.UserDB
 
SessionDB - Class in blather.model
SessionDB models a database of all current user sessions.
SessionDB() - Constructor for class blather.model.SessionDB
 
setAppController(AppControllerInterface) - Method in interface blather.view.BlatherView
Links an AppController to this view.
setDay(int) - Method in class blather.model.SimpleDate
 
setEmail(EmailAddressInterface) - Method in class blather.model.BlatherUser
 
setEmail(EmailAddressInterface) - Method in interface blather.model.BlatherUserInterface
Updates this BlatherUser's email address.
setEmail(String) - Method in class blather.model.EmailAddress
 
setEmail(String) - Method in interface blather.model.EmailAddressInterface
Sets this email address to the given String.
setHour(int) - Method in class blather.model.SimpleDate
 
setMinute(int) - Method in class blather.model.SimpleDate
 
setMonth(int) - Method in class blather.model.SimpleDate
 
setYear(int) - Method in class blather.model.SimpleDate
 
SimpleDate - Class in blather.model
SimpleDate is a very simple representation of a calendar date and time.
SimpleDate(int, int, int, int, int) - Constructor for class blather.model.SimpleDate
Constructs a SimpleDate with the given time values.
sort(BlabInterface[]) - Static method in class blather.util.BlabUtil
Sorts an array of Blabs by post date, from earliest to latest.

T

timeToString() - Method in class blather.model.SimpleDate
Returns a string representation of the time.
toString() - Method in class blather.model.EmailAddress
 
toString() - Method in interface blather.model.EmailAddressInterface
Returns a String representation of this email address.
toString() - Method in class blather.model.SimpleDate
Returns a string representation of the date and time.

U

UserController - Class in blather.controller
UserController provides a mechanism to access and update details of an individual Blather user.
UserController(BlatherUserInterface, String, UserDB, SessionDB) - Constructor for class blather.controller.UserController
Creates a new UserController with the given BlatherUser and the given session ID.
UserControllerInterface - Interface in blather.controller
 
UserDB - Class in blather.model
The UserDB maintains a database of users.
UserDB() - Constructor for class blather.model.UserDB
 
userExists(String) - Method in class blather.controller.AppController
 
userExists(String) - Method in interface blather.controller.AppControllerInterface
Returns true if the given username is valid, false otherwise.
userExists(String) - Method in class blather.model.UserDB
Returns true if the user with the given name exists.
userForSession(String) - Method in class blather.model.SessionDB
Returns the BlatherUser associated with a given session key.

W

writeToFile(UserDB, String) - Static method in class blather.util.DBPersistence
 

A B C D E F G I L M N R S T U W