|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alltimeflashdreamer.mailwebform.JSPBean
Title: JSPBean
Description: This simple bean is designed to provide the constant and
dynamic values used in the various JSP files. To be able to serve the
various different JSP sites appropriately, the class contains a series of
constructors that are designed to get the parameters used by the follower
site(s).
Field Summary |
Constructor Summary | |
|
JSPBean()
(inactive) |
(package private) |
JSPBean(boolean bAccountWasNewlyCreated,
String[] sProviders)
Constructor simply stores the given boolean value, ready to be used on the main JSP site. |
(package private) |
JSPBean(MailWebFormException mwfe)
Constructor simply stores the fully rendered error message that consists of the error message of the given exception itself as well as those of the cascaded root cause(s), if any, ready to be shown on the error JSP site. |
(package private) |
JSPBean(String sProviderName,
GlobalProperties globalProperties,
MailFormProviderList mailFormProviders)
Constructor simply stores the given values, ready to be used on the one of the add/edit/edit-system-provider JSP sites. |
(package private) |
JSPBean(String sProviderName,
String sAdminUserName)
Constructor simply stores the given string. |
Method Summary | |
String |
getAdminUserName()
Returns the user name of the admin account, if set in the relative constructor, or null. |
String |
getChangeTitle(boolean bPasswordOnly)
Returns the title to be shown on the change password/credentials pages of the admin tool. |
String |
getEditTitle()
Returns the title to be shown on the edit pages of the admin tool. |
String |
getErrorMessage()
Returns the error message, as received in the constructor, or an empty string, if not provided. |
String |
getErrorTitle()
Returns the title to be shown on the error page of the admin tool. |
GlobalProperties |
getGlobalProperties()
Returns the Properties implementation holding the application's global settings. |
String |
getLoginTitle()
Returns the title to be shown on the login page of the admin tool. |
MailFormProvider |
getMailFormProvider(String sProviderName)
Returns the specified provider instance or null, if the provider list hasn't been passed in the constructor or the specified provider name is not registered. |
MailFormProviderList |
getMailFormProviders()
Returns the mail form provider list implementation. |
String |
getMainTitle()
Returns the title to be shown on the main page of the admin tool. |
String[] |
getProviderList()
Returns the list of providers, as received in the constructor, or an empty list, if another constructor was called. |
String |
getProviderName()
Returns the name of the currently active provider or an empty string, if not set or a new one is to be created. |
boolean |
isAdmin(HttpServletRequest request)
Returns whether the currently logged in user is the admin user or not. |
boolean |
isChangingAdminCredentials()
Returns whether the user is currently changing the admin credentials or not. |
boolean |
isNewlyCreatedAccount()
Returns whether the account was newly created or not. |
boolean |
isNewProvider()
Returns whether currently a new provider is set up, i.e. whether a provider name is defined in here or not. |
boolean |
isSystemProvider()
Returns whether currently the system provider's settings are edited or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSPBean()
JSPBean(MailWebFormException mwfe)
mwfe
- the error to be renderedJSPBean(String sProviderName, String sAdminUserName)
sProviderName
- the name of the current provider (empty string in
case of the adding of a new one)sAdminUserName
- the user name of the admin account or nullJSPBean(boolean bAccountWasNewlyCreated, String[] sProviders)
bAccountWasNewlyCreated
- whether the account was newly created and
the related message box shall be shown or notsProviders
- the list of providers to be shown in the select boxJSPBean(String sProviderName, GlobalProperties globalProperties, MailFormProviderList mailFormProviders)
sProviderName
- the name of the current provider (empty string in
case of the adding of a new one)globalProperties
- the list of the global app propertiesmailFormProviders
- the provider list, holding the references to
the various providers and their propertiesMethod Detail |
public MailFormProvider getMailFormProvider(String sProviderName)
sProviderName
- the name of the provider to be returned
public String getErrorMessage()
public boolean isNewlyCreatedAccount()
public String getLoginTitle()
public String getErrorTitle()
public String getMainTitle()
public String getEditTitle()
public String getChangeTitle(boolean bPasswordOnly)
bPasswordOnly
- whether only the password shall be changed or not
(i.e. the whole [admin] credentials)
public String[] getProviderList()
public String getProviderName()
public boolean isNewProvider()
public boolean isSystemProvider()
public GlobalProperties getGlobalProperties()
public MailFormProviderList getMailFormProviders()
public boolean isAdmin(HttpServletRequest request)
request
- where to read the current-user session property from
public boolean isChangingAdminCredentials()
public String getAdminUserName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |