Java Doc for JwmaKernel.java in  » Web-Mail » Jwma » dtw » webmail » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Mail » Jwma » dtw.webmail 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   dtw.webmail.JwmaKernel

JwmaKernel
public class JwmaKernel (Code)
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.
author:
   Dieter Wimberger
version:
   0.9.7 07/02/2003


Field Summary
final public static  StringACCOUNT_CREATION_VIEW
     Defines the abstract account creation view.
final public static  StringADMIN_ERROR_VIEW
     Defines the abstract admin error view.
final public static  StringADMIN_LOGIN_VIEW
     Defines the abstract admin login view.
final public static  StringADMIN_MENU_VIEW
     Defines the abstract admin menu view.
final public static  StringADMIN_PREFERENCES_VIEW
     Defines the abstract admin preferences view.
final public static  StringADMIN_SETTINGS_VIEW
     Defines the abstract admin settings view.
final public static  StringADMIN_STATUS_VIEW
     Defines the abstract admin status view.
final public static  StringCOMPOSE_VIEW
     Defines the abstract compose view.
final public static  StringCONTACTGROUP_EDIT_VIEW
     Defines the abstract contact group edit view.
final public static  StringCONTACTGROUP_VIEW
     Defines the abstract contact group view.
final public static  StringCONTACTS_VIEW
     Defines the abstract contacts view.
final public static  StringCONTACT_EDIT_VIEW
     Defines the abstract contact edit view.
final public static  StringCONTACT_VIEW
     Defines the abstract contact view.
final public static  intDATA_DIR
     Defines the data directory.
final public static  StringERROR_VIEW
     Defines the abstract error view.
final public static  intETC_DIR
     Defines the root directory.
final public static  StringFIRSTTIME_VIEW
     Defines the abstract error firsttime view.
final public static  StringFOLDER_VIEW
     Defines the abstract folder view.
final public static  StringLOGIN_VIEW
     Defines the abstract login view.
final public static  StringLOGOUT_VIEW
     Defines the abstract loggedout view.
final public static  intLOG_DIR
     Defines the root directory.
final public static  StringMAILBOX_VIEW
     Defines the abstract mailbox view.
final public static  StringMESSAGE_VIEW
     Defines the abstract message view.
final public static  StringPREFERENCES_VIEW
     Defines the abstract preferences view.
final public static  intROOT_DIR
     Defines the root directory.
final public static  StringSUBSCRIBED_VIEW
     Defines the abstract subscribe view.
final public static  StringUNSUBSCRIBED_VIEW
     Defines the abstract unsubscribe view.


Method Summary
public  StringgetAdminControllerUrl()
     Returns the admin controller URL setting of the local jwma installation.
public  JwmaConfigurationgetConfiguration()
     Returns the active JwmaConfiguration instance.
public  ContactManagementPlugingetContactManagementPlugin()
     Returns the active and activated ContactManagementPlugin instance that provides contact management related functionality.
public  StringgetContactsControllerUrl()
     Returns the contacts controller URL setting of the local jwma installation.
public  StringgetDirectoryPath(int DIRECTORY)
     Returns the path of the given directory.
public  StringgetErrorMessage(String key)
     Returns the error message for the given key in the set system locale.
public  intgetKernelStatus()
     Returns the kernel status as int.
public  StringgetLogMessage(String key)
     Returns the log message for the given key in the set system locale.
public  StringgetMainControllerUrl()
     Returns the controller URL setting of the local jwma installation.
public  ProcessorgetMessageProcessor(String name)
     Returns the message processor indicated by the given name.
public  PreferencesPersistencePlugingetPrefsPersistencePlugin()
     Returns the active and activated PreferencesPersistencePlugin instance that provides the persistency related functionality.
public  RandomAppendPlugingetRandomAppendPlugin()
     Returns the active and activated RandomAppendPlugin instance that provides random appending functionality.
public static  JwmaKernelgetReference()
     Returns the reference of the JwmaKernel singleton instance.
public  ClassLoadergetResourceClassLoader()
     Returns the class loader for i18n resource bundles.
public  StringgetSendMailControllerUrl()
     Returns the sendmail controller URL setting of the local jwma installation.
public  StringgetViewUrl(String view)
     Returns the site's configured view URL for the given view as String.

The String parameter passed in has to be one of the defined abstract view constants.
Parameters:
  view - representing one of the constants defining an abstractview.

public  booleanisJwmaStatusEnabled()
     Tests if status is enabled.
public  String[]listDirectories()
     Lists the directories jwma needs to access.
public  String[]listFiles()
     Lists the files jwma needs to access.
public  String[]listMessageProcessors()
    
public  voidsetJwmaStatusEnabled(boolean enabled)
     Sets the flag that controls if the system's status is enabled.
public  voidsetup(String path)
     Prepares the kernel for service.

Field Detail
ACCOUNT_CREATION_VIEW
final public static String ACCOUNT_CREATION_VIEW(Code)
Defines the abstract account creation view.



ADMIN_ERROR_VIEW
final public static String ADMIN_ERROR_VIEW(Code)
Defines the abstract admin error view.



ADMIN_LOGIN_VIEW
final public static String ADMIN_LOGIN_VIEW(Code)
Defines the abstract admin login view.



ADMIN_MENU_VIEW
final public static String ADMIN_MENU_VIEW(Code)
Defines the abstract admin menu view.



ADMIN_PREFERENCES_VIEW
final public static String ADMIN_PREFERENCES_VIEW(Code)
Defines the abstract admin preferences view.



ADMIN_SETTINGS_VIEW
final public static String ADMIN_SETTINGS_VIEW(Code)
Defines the abstract admin settings view.



ADMIN_STATUS_VIEW
final public static String ADMIN_STATUS_VIEW(Code)
Defines the abstract admin status view.



COMPOSE_VIEW
final public static String COMPOSE_VIEW(Code)
Defines the abstract compose view.



CONTACTGROUP_EDIT_VIEW
final public static String CONTACTGROUP_EDIT_VIEW(Code)
Defines the abstract contact group edit view.



CONTACTGROUP_VIEW
final public static String CONTACTGROUP_VIEW(Code)
Defines the abstract contact group view.



CONTACTS_VIEW
final public static String CONTACTS_VIEW(Code)
Defines the abstract contacts view.



CONTACT_EDIT_VIEW
final public static String CONTACT_EDIT_VIEW(Code)
Defines the abstract contact edit view.



CONTACT_VIEW
final public static String CONTACT_VIEW(Code)
Defines the abstract contact view.



DATA_DIR
final public static int DATA_DIR(Code)
Defines the data directory.



ERROR_VIEW
final public static String ERROR_VIEW(Code)
Defines the abstract error view.



ETC_DIR
final public static int ETC_DIR(Code)
Defines the root directory.



FIRSTTIME_VIEW
final public static String FIRSTTIME_VIEW(Code)
Defines the abstract error firsttime view.



FOLDER_VIEW
final public static String FOLDER_VIEW(Code)
Defines the abstract folder view.



LOGIN_VIEW
final public static String LOGIN_VIEW(Code)
Defines the abstract login view.



LOGOUT_VIEW
final public static String LOGOUT_VIEW(Code)
Defines the abstract loggedout view.



LOG_DIR
final public static int LOG_DIR(Code)
Defines the root directory.



MAILBOX_VIEW
final public static String MAILBOX_VIEW(Code)
Defines the abstract mailbox view.



MESSAGE_VIEW
final public static String MESSAGE_VIEW(Code)
Defines the abstract message view.



PREFERENCES_VIEW
final public static String PREFERENCES_VIEW(Code)
Defines the abstract preferences view.



ROOT_DIR
final public static int ROOT_DIR(Code)
Defines the root directory.



SUBSCRIBED_VIEW
final public static String SUBSCRIBED_VIEW(Code)
Defines the abstract subscribe view.



UNSUBSCRIBED_VIEW
final public static String UNSUBSCRIBED_VIEW(Code)
Defines the abstract unsubscribe view.





Method Detail
getAdminControllerUrl
public String getAdminControllerUrl()(Code)
Returns the admin controller URL setting of the local jwma installation. local admin controller's URL as String.



getConfiguration
public JwmaConfiguration getConfiguration()(Code)
Returns the active JwmaConfiguration instance. a JwmaConfiguration instance.



getContactManagementPlugin
public ContactManagementPlugin getContactManagementPlugin()(Code)
Returns the active and activated ContactManagementPlugin instance that provides contact management related functionality.
See Also:   dtw.webmail.plugin.ContactManagementPlugin



getContactsControllerUrl
public String getContactsControllerUrl()(Code)
Returns the contacts controller URL setting of the local jwma installation. local contacts controller's URL as String.



getDirectoryPath
public String getDirectoryPath(int DIRECTORY)(Code)
Returns the path of the given directory.



getErrorMessage
public String getErrorMessage(String key)(Code)
Returns the error message for the given key in the set system locale.

the error message as localized String.




getKernelStatus
public int getKernelStatus()(Code)
Returns the kernel status as int.
  1. Directories set
  2. Settings loaded
  3. Logs prepared
  4. Loaded error messages
  5. prepared preferences persistency
  6. prepared text processing
  7. prepared mail services
  8. prepared view urls
kernel status as int.



getLogMessage
public String getLogMessage(String key)(Code)
Returns the log message for the given key in the set system locale.

the log message as localized String.




getMainControllerUrl
public String getMainControllerUrl()(Code)
Returns the controller URL setting of the local jwma installation. local controller's URL as String.



getMessageProcessor
public Processor getMessageProcessor(String name)(Code)
Returns the message processor indicated by the given name. If the name does not refer to any processing pipe, then the default processing pipe will be returned.
Parameters:
  name - String that should represent a valid processingpipe name. Processor to be used for message processing.



getPrefsPersistencePlugin
public PreferencesPersistencePlugin getPrefsPersistencePlugin()(Code)
Returns the active and activated PreferencesPersistencePlugin instance that provides the persistency related functionality.
See Also:   dtw.webmail.plugin.PreferencesPersistencePlugin



getRandomAppendPlugin
public RandomAppendPlugin getRandomAppendPlugin()(Code)
Returns the active and activated RandomAppendPlugin instance that provides random appending functionality. This method returns null if no such plugin is registered.
See Also:   dtw.webmail.plugin.RandomAppendPlugin



getReference
public static JwmaKernel getReference()(Code)
Returns the reference of the JwmaKernel singleton instance.

Note:this also implements kind of a factory method pattern. If the singleton instance does not exist yet, it will be created. reference of the JwmaKernel singletoninstance.




getResourceClassLoader
public ClassLoader getResourceClassLoader()(Code)
Returns the class loader for i18n resource bundles.

the ClassLoader used for loading i18n ResourceBundles.




getSendMailControllerUrl
public String getSendMailControllerUrl()(Code)
Returns the sendmail controller URL setting of the local jwma installation. local sendmail controller's URL as String.



getViewUrl
public String getViewUrl(String view)(Code)
Returns the site's configured view URL for the given view as String.

The String parameter passed in has to be one of the defined abstract view constants.
Parameters:
  view - representing one of the constants defining an abstractview. local configured view URL of a given abstract viewas String.
See Also:   JwmaKernel.LOGIN_VIEW
See Also:   JwmaKernel.ERROR_VIEW
See Also:   JwmaKernel.LOGOUT_VIEW
See Also:   JwmaKernel.FOLDER_VIEW
See Also:   JwmaKernel.MESSAGE_VIEW
See Also:   JwmaKernel.PREFERENCES_VIEW
See Also:   JwmaKernel.COMPOSE_VIEW
See Also:   JwmaKernel.FIRSTTIME_VIEW
See Also:   JwmaKernel.CONTACTS_VIEW
See Also:   JwmaKernel.CONTACT_VIEW
See Also:   JwmaKernel.CONTACT_EDIT_VIEW
See Also:   JwmaKernel.CONTACTGROUP_VIEW
See Also:   JwmaKernel.CONTACTGROUP_EDIT_VIEW




isJwmaStatusEnabled
public boolean isJwmaStatusEnabled()(Code)
Tests if status is enabled. true if status is enabled, false otherwise.



listDirectories
public String[] listDirectories()(Code)
Lists the directories jwma needs to access. array of strings representing the directories.



listFiles
public String[] listFiles()(Code)
Lists the files jwma needs to access. array of strings representing the files.



listMessageProcessors
public String[] listMessageProcessors()(Code)



setJwmaStatusEnabled
public void setJwmaStatusEnabled(boolean enabled)(Code)
Sets the flag that controls if the system's status is enabled. true if status is enabled, false otherwise.



setup
public void setup(String path) throws Exception(Code)
Prepares the kernel for service.
Parameters:
  path - representing the root directory where jwma'sfiles reside, as String.
throws:
  Exception - when it fails to load the properties orset up system functionality according to the settingsin the properties.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.