A C D E F G H I L M P R S U W 

A

ApplicationListener - Class in mailreader2
ServletContextListener that initializes and finalizes the persistent storage of User and Subscription information for the Struts Demonstration Application, using an in-memory database backed by an XML file.
ApplicationListener() - Constructor for class mailreader2.ApplicationListener
 
AuthenticationInterceptor - Class in mailreader2
 
AuthenticationInterceptor() - Constructor for class mailreader2.AuthenticationInterceptor
 

C

CANCEL - Static variable in class mailreader2.Constants
The token representing a "cancel" request.
cancel() - Method in class mailreader2.MailreaderSupport
Return CANCEL so apropriate result can be selected.
Constants - Class in mailreader2
Manifest constants for the MailReader application.
Constants() - Constructor for class mailreader2.Constants
 
contextDestroyed(ServletContextEvent) - Method in class mailreader2.ApplicationListener
Gracefully shut down this database, releasing any resources that were allocated at initialization.
contextInitialized(ServletContextEvent) - Method in class mailreader2.ApplicationListener
Initialize and load our initial database from persistent storage.
copySubscription(Subscription, Subscription) - Method in class mailreader2.MailreaderSupport
Convenience method to copy Subscription properties.
copySubscription(String) - Method in class mailreader2.MailreaderSupport
Create a new Subscription from the current Subscription object, making the new Subscription the current Subscription.
copyUser(User, User) - Method in class mailreader2.MailreaderSupport
Convenience method to copy User properties.
copyUser(String, String) - Method in class mailreader2.MailreaderSupport
Use the current User object to create a new User object, and make the new User object the authenticated user.
CREATE - Static variable in class mailreader2.Constants
The token representing a "create" task.
createInputSubscription() - Method in class mailreader2.MailreaderSupport
Provide a "temporary" User Subscription object that can be used to capture input values.
createInputUser() - Method in class mailreader2.MailreaderSupport
 
createSubscription(String) - Method in class mailreader2.MailreaderSupport
Provide new User Subscription object for the given host, or null if the host is not unique.
createUser(String, String) - Method in class mailreader2.MailreaderSupport
Verify input for creating a new user, create the user, and process the login.

D

DATABASE_KEY - Static variable in class mailreader2.ApplicationListener
Appication scope attribute key under which the in-memory version of our database is stored.
DATABASE_KEY - Static variable in class mailreader2.Constants
The application scope attribute under which our user database is stored.
DELETE - Static variable in class mailreader2.Constants
The token representing a "edit" task.
delete() - Method in class mailreader2.Subscription
Prepare to present a confirmation page before removing Subscription.
destroy() - Method in class mailreader2.AuthenticationInterceptor
 

E

EDIT - Static variable in class mailreader2.Constants
The token representing a "edit" task.
edit() - Method in class mailreader2.Subscription
Prepare to edit User Subscription.
ERROR_DATABASE_MISSING - Static variable in class mailreader2.Constants
A standard key from the message resources file, to test if it is available.
ERROR_DATABASE_NOT_LOADED - Static variable in class mailreader2.Constants
A static message in case database resource is not loaded.
ERROR_MESSAGES_NOT_LOADED - Static variable in class mailreader2.Constants
A static message in case message resource is not loaded.
execute() - Method in class mailreader2.Login
 
execute() - Method in class mailreader2.Logout
 
execute() - Method in class mailreader2.Registration
Insert or update a User object to the persistent store.
execute() - Method in class mailreader2.Welcome
 
EXPIRED_PASSWORD_EXCEPTION - Static variable in class mailreader2.Constants
A "magic" username to trigger an ExpiredPasswordException for testing.

F

find() - Method in class mailreader2.Subscription
Load User Subscription for the local Host property.
findSubscription(String) - Method in class mailreader2.MailreaderSupport
Obtain User Subscription object for the given host, or return null if not found.
findSubscription() - Method in class mailreader2.MailreaderSupport
Obtain uSER Subscription for the local Host property.
findUser(String, String) - Method in class mailreader2.MailreaderSupport
Obtain User object from database, or return null if the credentials are not found or invalid.

G

getApplication() - Method in class mailreader2.MailreaderSupport
Provide application context.
getDatabase() - Method in class mailreader2.MailreaderSupport
Provide reference to UserDatabase, or null if the database is not available.
getHost() - Method in class mailreader2.MailreaderSupport
Provide tSubscription host.
getPassword() - Method in class mailreader2.MailreaderSupport
Provide User password
getPassword2() - Method in class mailreader2.MailreaderSupport
Provide the User password confirmation.
getPathname() - Method in class mailreader2.ApplicationListener
Return the application resource path to the database.
getSession() - Method in class mailreader2.MailreaderSupport
Provide session context.
getSubscription() - Method in class mailreader2.MailreaderSupport
Obtain the cached Subscription object, if any.
getSubscriptionHost() - Method in class mailreader2.MailreaderSupport
Provide MailServer Host for current User Subscription.
getTask() - Method in class mailreader2.MailreaderSupport
Provide worklow task.
getToken() - Method in class mailreader2.MailreaderSupport
Provide Token.
getTypes() - Method in class mailreader2.Subscription
Provide the list of MailServer types.
getUser() - Method in class mailreader2.MailreaderSupport
Provide reference to User object for authenticated user.
getUsername() - Method in class mailreader2.MailreaderSupport
Provide User username.

H

HOST - Static variable in class mailreader2.Constants
The token representing the "Host" property.

I

init() - Method in class mailreader2.AuthenticationInterceptor
 
input() - Method in class mailreader2.Registration
Retrieve User object to edit or null if User does not exist.
input() - Method in class mailreader2.Subscription
Setup a temporary User Subscription object to capture input values.
intercept(ActionInvocation) - Method in class mailreader2.AuthenticationInterceptor
 

L

log - Variable in class mailreader2.MailreaderSupport
Log instance for this application.
LOG_DATABASE_SAVE_ERROR - Static variable in class mailreader2.Constants
Message to log if saving a user fails.
Login - Class in mailreader2
Validate a user login.
Login() - Constructor for class mailreader2.Login
 
Logout - Class in mailreader2
Log user out of the current session.
Logout() - Constructor for class mailreader2.Logout
 

M

mailreader2 - package mailreader2
 
MailreaderSupport - Class in mailreader2
Base Action for MailreaderSupport application.
MailreaderSupport() - Constructor for class mailreader2.MailreaderSupport
 

P

PACKAGE - Static variable in class mailreader2.Constants
The package name for this application.
PASSWORD_MISMATCH_FIELD - Static variable in class mailreader2.Constants
Name of field to associate with authentification errors.
prepare() - Method in class mailreader2.Subscription
Setup the MailerServer types and set the local Host property from the User Subscription (if any).
PROTOCOLS_KEY - Static variable in class mailreader2.ApplicationListener
Application scope attribute key under which the valid selection items for the protocol property is stored.

R

Registration - Class in mailreader2
Insert or update a User object to the persistent store.
Registration() - Constructor for class mailreader2.Registration
 
removeSubscription() - Method in class mailreader2.MailreaderSupport
Delete the current Subscription object from the database.

S

save() - Method in class mailreader2.Registration
Insert or update a Registration.
save() - Method in class mailreader2.Subscription
Examine the Task property and DELETE, CREATE, or save the User Subscription, as appropriate.
saveUser() - Method in class mailreader2.MailreaderSupport
Persist the User object, including subscriptions, to the database.
setApplication(Map) - Method in class mailreader2.MailreaderSupport
Store a new application context.
setDatabase(UserDatabase) - Method in class mailreader2.MailreaderSupport
Store a new reference to UserDatabase
setHost(String) - Method in class mailreader2.MailreaderSupport
Store new Subscription host.
setPassword(String) - Method in class mailreader2.MailreaderSupport
Store new User Password
setPassword2(String) - Method in class mailreader2.MailreaderSupport
Store a new User password confirmation.
setPathname(String) - Method in class mailreader2.ApplicationListener
Set the application resource path to the database.
setSession(Map) - Method in class mailreader2.MailreaderSupport
Store a new session context.
setSubscription(Subscription) - Method in class mailreader2.MailreaderSupport
Store new User Subscription.
setTask(String) - Method in class mailreader2.MailreaderSupport
Store new workflow task.
setToken(String) - Method in class mailreader2.MailreaderSupport
Store new Token.
setUser(User) - Method in class mailreader2.MailreaderSupport
Store new reference to User Object.
setUsername(String) - Method in class mailreader2.MailreaderSupport
Store new User username
Subscription - Class in mailreader2
Provide an Edit method for retrieving an existing subscription, and a Save method for updating or inserting a subscription.
Subscription() - Constructor for class mailreader2.Subscription
 
SUBSCRIPTION_KEY - Static variable in class mailreader2.Constants
The session scope attribute under which the Subscription object currently selected by our logged-in User is stored.

U

USER_KEY - Static variable in class mailreader2.Constants
The session scope attribute under which the User object for the currently logged in user is stored.

W

Welcome - Class in mailreader2
Verify that essential resources are available.
Welcome() - Constructor for class mailreader2.Welcome
 
A C D E F G H I L M P R S U W 

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.