|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.util.JwmaSettings
Class implementing a wrapper for jwma's settings.
Field Summary | |
static java.lang.String |
DATA_DIR
|
static java.lang.String |
ERROR_DESCRIPTION_FILE
Defines the name of jwma's user visible error messages file. |
static java.lang.String |
ETC_DIR
|
static java.lang.String |
I18N_DIR
|
static java.lang.String |
LOG_DIR
Defines a name of the static jwma direcory architecture. |
Constructor Summary | |
protected |
JwmaSettings(java.lang.String path)
Constructs a new JwmaSettings instance. |
Method Summary | |
static JwmaSettings |
createJwmaSettings(java.lang.String path)
Creates a JwmaSettings instance. |
java.lang.String |
getAccountCreationView()
Returns a String representing a JwmaKernel view constant, denoting the view to be presented on account creation. |
java.lang.String |
getAdminControllerAlias()
Returns a String representing the admin controller alias. |
java.lang.String |
getAdminErrorView()
Returns a String representing the admin error view filename/URL ending. |
java.lang.String |
getAdminLoginView()
Returns a String representing the admin login view filename/URL ending. |
java.lang.String |
getAdminMenuView()
Returns a String representing the admin menu view filename/URL ending. |
java.lang.String |
getAdminPreferencesView()
Returns a String representing the admin preferences view filename/URL ending. |
java.lang.String |
getAdminSettingsView()
Returns a String representing the admin settings view filename/URL ending. |
java.lang.String |
getAdminStatusView()
Returns a String representing the admin status view filename/URL ending. |
java.lang.String[] |
getAdminUsernames()
Returns a String representing a list of usernames that have administrative rights. |
java.lang.String[] |
getCategories()
|
java.lang.String |
getComposeView()
Returns a String representing the compose view filename/URL ending. |
java.lang.String |
getContactEditView()
Returns a String representing the contact edit view filename/URL ending. |
java.lang.String |
getContactGroupEditView()
Returns a String representing the contact group edit view filename/URL ending. |
java.lang.String |
getContactGroupView()
Returns a String representing the contact group view filename/URL ending. |
java.lang.String |
getContactManagementPluginClassName()
|
java.lang.String |
getContactsControllerAlias()
Returns a String representing the contacts controller alias. |
java.lang.String |
getContactsView()
Returns a String representing the contacts view filename/URL ending. |
java.lang.String |
getContactView()
Returns a String representing the contact view filename/URL ending. |
java.lang.String |
getControllerPrefix()
Returns a String representing the prefix for the controllers. |
java.lang.String |
getDefaultMessageProcessingPipe()
Returns a String representing the name of the default message processing pipe. |
java.lang.String |
getDump()
Returns a String representing the settings file's path. |
java.lang.String |
getErrorView()
Returns a String representing the error view filename/URL ending. |
java.lang.String |
getFirsttimeView()
Returns a String representing the firsttime view filename/URL ending. |
java.lang.String |
getFolderView()
Returns a String representing the folder view filename/URL ending. |
java.lang.String[] |
getLanguageList()
|
java.lang.String |
getLoginView()
Returns a String representing the login view filename/URL ending. |
java.lang.String |
getLogoutView()
Returns a String representing the logout view filename/URL ending. |
java.lang.String |
getLogPropertiesFilename()
Returns a String representing filename of the log4j properties file. |
java.lang.String |
getMailboxView()
Returns a String representing the mailbox view filename/URL ending. |
java.lang.String |
getMailingControllerAlias()
Returns a String representing the mailing controller alias. |
java.lang.String |
getMailTransportHost()
Returns a String representing the MTA's hostname. |
int |
getMailTransportLimit()
Returns an int representing the maximum size in kB's allowed for a message to be transported. |
int |
getMailTransportPort()
Returns an int representing the port the MTA is running on. |
java.lang.String |
getMailTransportProtocol()
Returns a String representing the mail transport protocol name. |
java.lang.String |
getMainControllerAlias()
Returns a String representing the main controller alias. |
java.lang.String |
getMappingFilename()
Returns a String representing filename of the mapping file used for XML serialization. |
java.lang.String |
getMessageView()
Returns a String representing the message view filename/URL ending. |
java.lang.String |
getPath()
Returns a String representing the settings file's path. |
boolean |
getPostOfficeAllowOverride()
Tests if overriding the system's set postoffice is allowed. |
java.lang.String |
getPostOfficeHost()
Returns a String representing the postoffice's hostname. |
int |
getPostOfficePort()
Returns an int representing the port the postoffice is running on. |
java.lang.String |
getPostOfficeProtocol()
Returns a String representing the post office protocol name. |
java.lang.String |
getPostOfficeSecureSocketFactory()
Returns a String representing the fully qualified class name of the secure socket factory to be used for secure connections to the postoffice. |
java.lang.String |
getPostOfficeType()
Returns a String representing the postoffice's type. |
java.lang.String |
getPreferencesView()
Returns a String representing the preferences view filename/URL ending. |
java.lang.String |
getPrefPersistencePluginClassName()
END i18n related |
java.lang.String |
getRandomAppendPluginClassName()
|
java.lang.String |
getSystemLanguage()
i18n related |
java.lang.String |
getTemplateFilename()
Returns a String representing filename of the site's settings template file. |
java.lang.String |
getTextProcFilename()
Returns a String representing filename of the text processing properties. |
java.lang.String |
getViewPrefix()
Returns a String representing the prefix for the views. |
boolean |
isAccountCreationEnabled()
Tests if creation of accounts is enabled. |
boolean |
isAdminEnabled()
Tests if accessing the system's administration is enabled. |
boolean |
isMailTransportAuthenticated()
Tests if the connection to the MTA should be authenticated. |
boolean |
isPostOfficeSecure()
Tests if the connection to the postoffice should be secure. |
void |
load()
Loads the properties file containing jwma's settings. |
void |
save()
Saves the properties file containing jwma's settings. |
void |
setAccountCreationEnabled(boolean enabled)
Sets the flag that controls if the automatic creation of accounts is enabled. |
void |
setAccountCreationView(java.lang.String view)
Sets the view key constant of the view to be presented to the user on account creation. |
void |
setAdminControllerAlias(java.lang.String alias)
Sets the alias for the admin controller. |
void |
setAdminEnabled(boolean enabled)
Sets the flag that controls if the system's adminstration is enabled. |
void |
setAdminErrorView(java.lang.String name)
Sets the filename/URL ending for the admin error view. |
void |
setAdminLoginView(java.lang.String name)
Sets the filename/URL ending for the admin login view. |
void |
setAdminMenuView(java.lang.String name)
Sets the filename/URL ending for the admin menu view. |
void |
setAdminPreferencesView(java.lang.String name)
Sets the filename/URL ending for the admin preferences view. |
void |
setAdminSettingsView(java.lang.String name)
Sets the filename/URL ending for the admin settings view. |
void |
setAdminStatusView(java.lang.String name)
Sets the filename/URL ending for the admin status view. |
void |
setAdminUsernames(java.lang.String[] admins)
Sets the admin's usernames. |
void |
setCategories(java.lang.String[] cats)
|
void |
setComposeView(java.lang.String name)
Sets the filename/URL ending for the compose view. |
void |
setContactEditView(java.lang.String name)
Sets the filename/URL ending for the contact edit view. |
void |
setContactGroupEditView(java.lang.String name)
Sets the filename/URL ending for the contact group edit view. |
void |
setContactGroupView(java.lang.String name)
Sets the filename/URL ending for the contact group view. |
void |
setContactManagementPluginClassName(java.lang.String classname)
|
void |
setContactsControllerAlias(java.lang.String alias)
Sets the alias for the contacts controller. |
void |
setContactsView(java.lang.String name)
Sets the filename/URL ending for the contacts view. |
void |
setContactView(java.lang.String name)
Sets the filename/URL ending for the contact view. |
void |
setControllerPrefix(java.lang.String prefix)
Sets the prefix for the controllers. |
void |
setDefaultMessageProcessingPipe(java.lang.String name)
Returns a String representing the name of the default message processing pipe. |
void |
setErrorView(java.lang.String name)
Sets the filename/URL ending for the error view. |
void |
setFirsttimeView(java.lang.String name)
Sets the filename/URL ending for the firsttime view. |
void |
setFolderView(java.lang.String name)
Sets the filename/URL ending for the folder view. |
void |
setLanguageList(java.lang.String[] languages)
|
void |
setLoginView(java.lang.String name)
Sets the filename/URL ending for the login view. |
void |
setLogoutView(java.lang.String name)
Sets the filename/URL ending for the logout view. |
void |
setLogPropertiesFilename(java.lang.String name)
Sets the the filename of the log4j properties file. |
void |
setMailboxView(java.lang.String name)
Sets the filename/URL ending for the mailbox view. |
void |
setMailingControllerAlias(java.lang.String alias)
Sets the alias for the mailing controller. |
void |
setMailTransportAuthenticated(boolean auth)
Sets the flag that controls if connections to the MTA should be authenticated. |
void |
setMailTransportHost(java.lang.String host)
Sets the host name of the MTA. |
void |
setMailTransportLimit(int size)
Sets the transport size limitation. |
void |
setMailTransportPort(int num)
Sets the port the MTA is running on. |
void |
setMailTransportProtocol(java.lang.String protocol)
Sets the name of the mail transport protocol. |
void |
setMainControllerAlias(java.lang.String alias)
Sets the alias for the main controller. |
void |
setMappingFilename(java.lang.String name)
Sets the the filename of the mapping file used for XML serialization. |
void |
setMessageView(java.lang.String name)
Sets the filename/URL ending for the message view. |
void |
setPostOfficeAllowOverride(boolean allowoverride)
Sets the flag that controls if overriding the system's set postoffice is allowed or not. |
void |
setPostOfficeHost(java.lang.String host)
Sets the host name of the postoffice. |
void |
setPostOfficePort(int num)
Sets the port the postoffice is running on. |
void |
setPostOfficeProtocol(java.lang.String protocol)
Sets the name of the postoffice protocol. |
void |
setPostOfficeSecure(boolean b)
Sets the flag that controls if connections to the MTA should be secure. |
void |
setPostOfficeType(java.lang.String type)
Sets the type of the postoffice. |
void |
setPostSecureFactory(java.lang.String factory)
Sets the fully qualified class name of the secure socket factory to be used for secure connections to the postoffice. |
void |
setPreferencesView(java.lang.String name)
Sets the filename/URL ending for the preferences view. |
void |
setPrefPersistencePluginClassName(java.lang.String classname)
|
void |
setRandomAppendPluginClassName(java.lang.String classname)
|
void |
setSystemLanguage(java.lang.String language)
|
void |
setTemplateFilename(java.lang.String name)
Sets the the filename of the site's settings template file. |
void |
setTextProcFilename(java.lang.String name)
Sets the filename of the text processing properties. |
void |
setViewPrefix(java.lang.String prefix)
Sets the prefix for the views. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOG_DIR
public static final java.lang.String ETC_DIR
public static final java.lang.String DATA_DIR
public static final java.lang.String I18N_DIR
public static final java.lang.String ERROR_DESCRIPTION_FILE
Constructor Detail |
protected JwmaSettings(java.lang.String path)
path
- the full path of the persistent settings file.Method Detail |
public boolean isAccountCreationEnabled()
public void setAccountCreationEnabled(boolean enabled)
public java.lang.String getAccountCreationView()
public void setAccountCreationView(java.lang.String view)
view
- the view key as String.public java.lang.String[] getAdminUsernames()
public void setAdminUsernames(java.lang.String[] admins)
admins
- the admin's usernames as String[].public boolean isAdminEnabled()
public void setAdminEnabled(boolean enabled)
public java.lang.String getControllerPrefix()
public void setControllerPrefix(java.lang.String prefix)
prefix
- the prefix for the controllers as String.public java.lang.String getMainControllerAlias()
public void setMainControllerAlias(java.lang.String alias)
alias
- the alias for the main controller as String.public java.lang.String getMailingControllerAlias()
public void setMailingControllerAlias(java.lang.String alias)
alias
- the alias for the mailing controller as String.public java.lang.String getAdminControllerAlias()
public void setAdminControllerAlias(java.lang.String alias)
alias
- the alias for the admin controller as String.public java.lang.String getContactsControllerAlias()
public void setContactsControllerAlias(java.lang.String alias)
alias
- the alias for the contacts controller as String.public java.lang.String getPostOfficeProtocol()
public void setPostOfficeProtocol(java.lang.String protocol)
protocol
- the name of the postoffice protocol as String.public java.lang.String getPostOfficeHost()
public void setPostOfficeHost(java.lang.String host)
host
- the hostname of the postoffice as String.public int getPostOfficePort()
public void setPostOfficePort(int num)
public java.lang.String getPostOfficeType()
public void setPostOfficeType(java.lang.String type)
type
- the type of the postoffice as String.public boolean getPostOfficeAllowOverride()
public void setPostOfficeAllowOverride(boolean allowoverride)
public boolean isPostOfficeSecure()
public void setPostOfficeSecure(boolean b)
public java.lang.String getPostOfficeSecureSocketFactory()
public void setPostSecureFactory(java.lang.String factory)
public java.lang.String getMailTransportProtocol()
public void setMailTransportProtocol(java.lang.String protocol)
protocol
- the name of the mail transport protocol
as String.public java.lang.String getMailTransportHost()
public void setMailTransportHost(java.lang.String host)
host
- the hostname of the MTA as String.public int getMailTransportPort()
public void setMailTransportPort(int num)
public boolean isMailTransportAuthenticated()
public void setMailTransportAuthenticated(boolean auth)
public int getMailTransportLimit()
public void setMailTransportLimit(int size)
size
- the number of kB's a message can reach at maximum
as int.public java.lang.String getMappingFilename()
public void setMappingFilename(java.lang.String name)
There should not be any path appended to this filename, because the path is constructed from different settings.
name
- the filename of the mapping file as String.public java.lang.String getTemplateFilename()
This file represents a serialized JwmaPreferences instance that is used for cloning new user's settings.
public void setTemplateFilename(java.lang.String name)
This file represents a serialized JwmaPreferences instance that is used for cloning new user's settings. There should not be any path appended to this filename, because the path is constructed from different settings.
name
- the filename of the site's settings template file
as String.public java.lang.String getLogPropertiesFilename()
public void setLogPropertiesFilename(java.lang.String name)
name
- the filename of the log4j properties as String.public java.lang.String getTextProcFilename()
public void setTextProcFilename(java.lang.String name)
public java.lang.String getDefaultMessageProcessingPipe()
public void setDefaultMessageProcessingPipe(java.lang.String name)
public java.lang.String getViewPrefix()
public void setViewPrefix(java.lang.String prefix)
prefix
- the prefix for the views as String.public java.lang.String getErrorView()
public void setErrorView(java.lang.String name)
name
- the error view filename/URL ending as String.public java.lang.String getLoginView()
public void setLoginView(java.lang.String name)
name
- the login view filename/URL ending as String.public java.lang.String getLogoutView()
public void setLogoutView(java.lang.String name)
name
- the logout view filename/URL ending as String.public java.lang.String getFolderView()
public void setFolderView(java.lang.String name)
name
- the folder view filename/URL ending as String.public java.lang.String getMailboxView()
public void setMailboxView(java.lang.String name)
name
- the mailbox view filename/URL ending as String.public java.lang.String getMessageView()
public void setMessageView(java.lang.String name)
name
- the message view filename/URL ending as String.public java.lang.String getComposeView()
public void setComposeView(java.lang.String name)
name
- the compose view filename/URL ending as String.public java.lang.String getPreferencesView()
public void setPreferencesView(java.lang.String name)
name
- the preferences view filename/URL ending as String.public java.lang.String getFirsttimeView()
public void setFirsttimeView(java.lang.String name)
name
- the firsttime view filename/URL ending as String.public java.lang.String getContactsView()
public void setContactsView(java.lang.String name)
name
- the contacts view filename/URL ending as String.public java.lang.String getContactView()
public void setContactView(java.lang.String name)
name
- the contact view filename/URL ending as String.public java.lang.String getContactEditView()
public void setContactEditView(java.lang.String name)
name
- the contact edit view filename/URL ending as String.public java.lang.String getContactGroupView()
public void setContactGroupView(java.lang.String name)
name
- the contact group view filename/URL ending as String.public java.lang.String getContactGroupEditView()
public void setContactGroupEditView(java.lang.String name)
name
- the contact group edit view filename/URL ending as String.public java.lang.String getAdminPreferencesView()
public void setAdminPreferencesView(java.lang.String name)
name
- the preferences view filename/URL ending as String.public java.lang.String getAdminSettingsView()
public void setAdminSettingsView(java.lang.String name)
name
- the admin settings view filename/URL ending as String.public java.lang.String getAdminLoginView()
public void setAdminLoginView(java.lang.String name)
name
- the admin login view filename/URL ending as String.public java.lang.String getAdminStatusView()
public void setAdminStatusView(java.lang.String name)
name
- the admin status view filename/URL ending as String.public java.lang.String getAdminMenuView()
public void setAdminMenuView(java.lang.String name)
name
- the admin menu view filename/URL ending as String.public java.lang.String getAdminErrorView()
public void setAdminErrorView(java.lang.String name)
name
- the admin error view filename/URL ending as String.public java.lang.String getSystemLanguage()
public void setSystemLanguage(java.lang.String language)
public java.lang.String[] getLanguageList()
public void setLanguageList(java.lang.String[] languages)
public java.lang.String getPrefPersistencePluginClassName()
public void setPrefPersistencePluginClassName(java.lang.String classname)
public java.lang.String getContactManagementPluginClassName()
public void setContactManagementPluginClassName(java.lang.String classname)
public java.lang.String getRandomAppendPluginClassName()
public void setRandomAppendPluginClassName(java.lang.String classname)
public java.lang.String[] getCategories()
public void setCategories(java.lang.String[] cats)
public void load() throws JwmaException
JwmaException
public void save() throws JwmaException
JwmaException
public java.lang.String getPath()
public java.lang.String getDump()
public static JwmaSettings createJwmaSettings(java.lang.String path) throws JwmaException
Requires the path to the directory where jwma's files and folders reside. For the WAR the path should represent the "WEB-INF" directory.
path
- the path to the directory where jwma's files
and folders reside.
JwmaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |