|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.JwmaKernel
A kernel that represents a hub for internal "globally" used jwma functions & data (system settings). This class implements the singleton pattern, which means there is only one instance throughout run-time.
Field Summary | |
static java.lang.String |
ACCOUNT_CREATION_VIEW
Defines the abstract account creation view. |
static java.lang.String |
ADMIN_ERROR_VIEW
Defines the abstract admin error view. |
static java.lang.String |
ADMIN_LOGIN_VIEW
Defines the abstract admin login view. |
static java.lang.String |
ADMIN_MENU_VIEW
Defines the abstract admin menu view. |
static java.lang.String |
ADMIN_PREFERENCES_VIEW
Defines the abstract admin preferences view. |
static java.lang.String |
ADMIN_SETTINGS_VIEW
Defines the abstract admin settings view. |
static java.lang.String |
ADMIN_STATUS_VIEW
Defines the abstract admin status view. |
static java.lang.String |
COMPOSE_VIEW
Defines the abstract compose view. |
static java.lang.String |
CONTACT_EDIT_VIEW
Defines the abstract contact edit view. |
static java.lang.String |
CONTACT_VIEW
Defines the abstract contact view. |
static java.lang.String |
CONTACTGROUP_EDIT_VIEW
Defines the abstract contact group edit view. |
static java.lang.String |
CONTACTGROUP_VIEW
Defines the abstract contact group view. |
static java.lang.String |
CONTACTS_VIEW
Defines the abstract contacts view. |
static int |
DATA_DIR
Defines the data directory. |
static java.lang.String |
ERROR_VIEW
Defines the abstract error view. |
static int |
ETC_DIR
Defines the root directory. |
static java.lang.String |
FIRSTTIME_VIEW
Defines the abstract error firsttime view. |
static java.lang.String |
FOLDER_VIEW
Defines the abstract folder view. |
static int |
LOG_DIR
Defines the root directory. |
static java.lang.String |
LOGIN_VIEW
Defines the abstract login view. |
static java.lang.String |
LOGOUT_VIEW
Defines the abstract loggedout view. |
static java.lang.String |
MAILBOX_VIEW
Defines the abstract mailbox view. |
static java.lang.String |
MESSAGE_VIEW
Defines the abstract message view. |
static java.lang.String |
PREFERENCES_VIEW
Defines the abstract preferences view. |
static int |
ROOT_DIR
Defines the root directory. |
static java.lang.String |
SUBSCRIBED_VIEW
Defines the abstract subscribe view. |
static java.lang.String |
UNSUBSCRIBED_VIEW
Defines the abstract unsubscribe view. |
Method Summary | |
java.lang.String |
getAdminControllerUrl()
Returns the admin controller URL setting of the local jwma installation. |
JwmaConfiguration |
getConfiguration()
Returns the active JwmaConfiguration instance. |
ContactManagementPlugin |
getContactManagementPlugin()
Returns the active and activated ContactManagementPlugin instance that provides contact management related functionality. |
java.lang.String |
getContactsControllerUrl()
Returns the contacts controller URL setting of the local jwma installation. |
java.lang.String |
getDirectoryPath(int DIRECTORY)
Returns the path of the given directory. |
java.lang.String |
getErrorMessage(java.lang.String key)
Returns the error message for the given key in the set system locale. |
int |
getKernelStatus()
Returns the kernel status as int. |
java.lang.String |
getLogMessage(java.lang.String key)
Returns the log message for the given key in the set system locale. |
java.lang.String |
getMainControllerUrl()
Returns the controller URL setting of the local jwma installation. |
net.wimpi.text.Processor |
getMessageProcessor(java.lang.String name)
Returns the message processor indicated by the given name. |
PreferencesPersistencePlugin |
getPrefsPersistencePlugin()
Returns the active and activated PreferencesPersistencePlugin instance that provides the persistency related functionality. |
RandomAppendPlugin |
getRandomAppendPlugin()
Returns the active and activated RandomAppendPlugin instance that provides random appending functionality. |
static JwmaKernel |
getReference()
Returns the reference of the JwmaKernel singleton instance. |
java.lang.ClassLoader |
getResourceClassLoader()
Returns the class loader for i18n resource bundles. |
java.lang.String |
getSendMailControllerUrl()
Returns the sendmail controller URL setting of the local jwma installation. |
java.lang.String |
getViewUrl(java.lang.String view)
Returns the site's configured view URL for the given view as String. |
boolean |
isJwmaStatusEnabled()
Tests if status is enabled. |
java.lang.String[] |
listDirectories()
Lists the directories jwma needs to access. |
java.lang.String[] |
listFiles()
Lists the files jwma needs to access. |
java.lang.String[] |
listMessageProcessors()
|
void |
setJwmaStatusEnabled(boolean enabled)
Sets the flag that controls if the system's status is enabled. |
void |
setup(java.lang.String path)
Prepares the kernel for service. |
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 LOGIN_VIEW
public static final java.lang.String ERROR_VIEW
public static final java.lang.String LOGOUT_VIEW
public static final java.lang.String SUBSCRIBED_VIEW
public static final java.lang.String UNSUBSCRIBED_VIEW
public static final java.lang.String FOLDER_VIEW
public static final java.lang.String MAILBOX_VIEW
public static final java.lang.String MESSAGE_VIEW
public static final java.lang.String COMPOSE_VIEW
public static final java.lang.String PREFERENCES_VIEW
public static final java.lang.String FIRSTTIME_VIEW
public static final java.lang.String CONTACTS_VIEW
public static final java.lang.String CONTACT_VIEW
public static final java.lang.String CONTACT_EDIT_VIEW
public static final java.lang.String CONTACTGROUP_VIEW
public static final java.lang.String CONTACTGROUP_EDIT_VIEW
public static final java.lang.String ADMIN_STATUS_VIEW
public static final java.lang.String ADMIN_PREFERENCES_VIEW
public static final java.lang.String ADMIN_SETTINGS_VIEW
public static final java.lang.String ADMIN_LOGIN_VIEW
public static final java.lang.String ADMIN_MENU_VIEW
public static final java.lang.String ADMIN_ERROR_VIEW
public static final java.lang.String ACCOUNT_CREATION_VIEW
public static final int ROOT_DIR
public static final int ETC_DIR
public static final int LOG_DIR
public static final int DATA_DIR
Method Detail |
public void setup(java.lang.String path) throws java.lang.Exception
path
- representing the root directory where jwma's
files reside, as String.
java.lang.Exception
- when it fails to load the properties or
set up system functionality according to the settings
in the properties.public JwmaConfiguration getConfiguration()
public java.lang.String getMainControllerUrl()
public java.lang.String getSendMailControllerUrl()
public java.lang.String getAdminControllerUrl()
public java.lang.String getContactsControllerUrl()
public java.lang.String getViewUrl(java.lang.String view)
The String parameter passed in has to be one of the defined abstract view constants.
view
- representing one of the constants defining an abstract
view.
LOGIN_VIEW
,
ERROR_VIEW
,
LOGOUT_VIEW
,
FOLDER_VIEW
,
MESSAGE_VIEW
,
PREFERENCES_VIEW
,
COMPOSE_VIEW
,
FIRSTTIME_VIEW
,
CONTACTS_VIEW
,
CONTACT_VIEW
,
CONTACT_EDIT_VIEW
,
CONTACTGROUP_VIEW
,
CONTACTGROUP_EDIT_VIEW
public PreferencesPersistencePlugin getPrefsPersistencePlugin()
PreferencesPersistencePlugin
public RandomAppendPlugin getRandomAppendPlugin()
RandomAppendPlugin
public ContactManagementPlugin getContactManagementPlugin()
ContactManagementPlugin
public java.lang.ClassLoader getResourceClassLoader()
public java.lang.String getErrorMessage(java.lang.String key)
public java.lang.String getLogMessage(java.lang.String key)
public boolean isJwmaStatusEnabled()
public void setJwmaStatusEnabled(boolean enabled)
public int getKernelStatus()
public java.lang.String[] listDirectories()
public java.lang.String getDirectoryPath(int DIRECTORY)
public java.lang.String[] listFiles()
public net.wimpi.text.Processor getMessageProcessor(java.lang.String name)
name
- String that should represent a valid processing
pipe name.
public java.lang.String[] listMessageProcessors()
public static JwmaKernel getReference()
Note:this also implements kind of a factory method pattern. If the singleton instance does not exist yet, it will be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |