Java Doc for SimpleStorage.java in  » Web-Mail » jwebmail-0.7 » net » wastl » webmail » storage » simple » 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 » jwebmail 0.7 » net.wastl.webmail.storage.simple 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.wastl.webmail.server.Storage
      net.wastl.webmail.storage.FileStorage
         net.wastl.webmail.storage.simple.SimpleStorage

SimpleStorage
public class SimpleStorage extends FileStorage (Code)
This is the SimpleStorage class for the non-enterprise edition of WebMail. It provides means of getting and storing data in ZIPFiles and ResourceBundles.
See Also:   net.wastl.webmail.server.Storage
author:
   Sebastian Schaffert


Field Summary
protected  Hashtableresources
    
protected  ExpireableCacheuser_cache
    
protected  intuser_cache_size
    
final public static  Stringuser_domain_separator
    
protected  Hashtablevdoms
    

Constructor Summary
public  SimpleStorage(WebMailServer parent)
     Initialize SimpleStorage.

Method Summary
public  XMLUserDatacreateUserData(String user, String domain, String password)
    
public  voiddeleteUserData(String user, String domain)
    
public  XMLUserDatagetUserData(String user, String domain, String password, boolean authenticate)
    
public  EnumerationgetUsers(String domain)
    
protected  voidinitCache()
    
protected  voidinitConfig()
    
protected  voidloadXMLSysData()
    
public  voidsaveUserData(String user, String domain)
    
protected  voidsaveXMLSysData()
    
public  StringtoString()
    

Field Detail
resources
protected Hashtable resources(Code)



user_cache
protected ExpireableCache user_cache(Code)



user_cache_size
protected int user_cache_size(Code)



user_domain_separator
final public static String user_domain_separator(Code)



vdoms
protected Hashtable vdoms(Code)




Constructor Detail
SimpleStorage
public SimpleStorage(WebMailServer parent)(Code)
Initialize SimpleStorage. Fetch Configuration Information etc.




Method Detail
createUserData
public XMLUserData createUserData(String user, String domain, String password) throws CreateUserDataException(Code)



deleteUserData
public void deleteUserData(String user, String domain)(Code)
Delete a WebMail user
Parameters:
  user - Name of the user to delete



getUserData
public XMLUserData getUserData(String user, String domain, String password, boolean authenticate) throws UserDataException, InvalidPasswordException(Code)

See Also:    net.wastl.webmail.server.Storage.getUserData()
See Also:   devink 7/15/2000 - Added TwoPassAuthenticationException
See Also:   - changed to doAuth*UserData()
See Also:   - Added challenged arg.
See Also:   9/24/2000 - reverted to old getUserData for new cr auth



getUsers
public Enumeration getUsers(String domain)(Code)



initCache
protected void initCache()(Code)



initConfig
protected void initConfig()(Code)



loadXMLSysData
protected void loadXMLSysData()(Code)



saveUserData
public void saveUserData(String user, String domain)(Code)



saveXMLSysData
protected void saveXMLSysData()(Code)



toString
public String toString()(Code)



Fields inherited from net.wastl.webmail.storage.FileStorage
protected Authenticator auth(Code)(Java Doc)
protected Hashtable binary_cache(Code)(Java Doc)
protected static DateFormat df(Code)(Java Doc)
protected int file_cache_size(Code)(Java Doc)
protected Hashtable file_resources(Code)(Java Doc)
protected Logger logger(Code)(Java Doc)
protected static Hashtable mime_types(Code)(Java Doc)
protected Hashtable resources(Code)(Java Doc)
protected Hashtable stylesheet_cache(Code)(Java Doc)

Methods inherited from net.wastl.webmail.storage.FileStorage
protected String formatDate(long date)(Code)(Java Doc)
public Authenticator getAuthenticator()(Code)(Java Doc)
public synchronized byte[] getBinaryFile(String name, Locale locale, String theme) throws BinaryNotFoundException(Code)(Java Doc)
public String getMimeType(String name)(Code)(Java Doc)
public String getStringResource(String key, Locale locale)(Code)(Java Doc)
public Templates getStylesheet(String name, Locale locale, String theme) throws WebMailException(Code)(Java Doc)
protected void initAuth()(Code)(Java Doc)
protected void initCache()(Code)(Java Doc)
abstract protected void initConfig()(Code)(Java Doc)
protected void initLanguages()(Code)(Java Doc)
protected void initLog()(Code)(Java Doc)
protected void initMIME()(Code)(Java Doc)
public synchronized void log(int level, String message)(Code)(Java Doc)
public synchronized void log(int level, Exception ex)(Code)(Java Doc)
public void notifyConfigurationChange(String key)(Code)(Java Doc)
public void shutdown()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from net.wastl.webmail.server.Storage
final public static int LOG_CRIT(Code)(Java Doc)
final public static int LOG_DEBUG(Code)(Java Doc)
final public static int LOG_ERR(Code)(Java Doc)
final public static int LOG_INFO(Code)(Java Doc)
final public static int LOG_WARN(Code)(Java Doc)
protected ConfigScheme cs(Code)(Java Doc)
protected static boolean debug(Code)(Java Doc)
protected XMLGenericModel generic_model(Code)(Java Doc)
protected WebMailServer parent(Code)(Java Doc)
protected XMLSystemData sysdata(Code)(Java Doc)

Methods inherited from net.wastl.webmail.server.Storage
abstract public XMLUserData createUserData(String user, String domain, String password) throws CreateUserDataException(Code)(Java Doc)
public WebMailVirtualDomain createVirtualDomain(String name) throws Exception(Code)(Java Doc)
public XMLAdminModel createXMLAdminModel() throws WebMailException(Code)(Java Doc)
public XMLGenericModel createXMLGenericModel() throws WebMailException(Code)(Java Doc)
public XMLUserModel createXMLUserModel(XMLUserData data) throws WebMailException(Code)(Java Doc)
abstract public void deleteUserData(String user, String domain)(Code)(Java Doc)
public void deleteUserData(String user)(Code)(Java Doc)
public void deleteVirtualDomain(String name)(Code)(Java Doc)
abstract public Authenticator getAuthenticator()(Code)(Java Doc)
public String getBasePath(Locale locale, String theme)(Code)(Java Doc)
abstract public byte[] getBinaryFile(String name, Locale locale, String theme) throws BinaryNotFoundException(Code)(Java Doc)
public String getConfig(String key)(Code)(Java Doc)
public Enumeration getConfigKeys()(Code)(Java Doc)
public boolean getDebug()(Code)(Java Doc)
public String getMimeType(String name)(Code)(Java Doc)
abstract public String getStringResource(String key, Locale locale)(Code)(Java Doc)
abstract public Templates getStylesheet(String name, Locale locale, String theme) throws WebMailException(Code)(Java Doc)
public XMLSystemData getSystemData()(Code)(Java Doc)
public XMLUserData getUserData(String user, String domain, String passwd) throws UserDataException, InvalidPasswordException(Code)(Java Doc)
abstract public XMLUserData getUserData(String user, String domain, String password, boolean authenticate) throws UserDataException, InvalidPasswordException(Code)(Java Doc)
abstract public Enumeration getUsers(String domain)(Code)(Java Doc)
public Enumeration getUsers()(Code)(Java Doc)
public WebMailVirtualDomain getVirtualDomain(String name)(Code)(Java Doc)
public Enumeration getVirtualDomains()(Code)(Java Doc)
public void initConfigKeys()(Code)(Java Doc)
abstract protected void loadXMLSysData()(Code)(Java Doc)
abstract public void log(int level, String message)(Code)(Java Doc)
abstract public void log(int level, Exception ex)(Code)(Java Doc)
public void save()(Code)(Java Doc)
abstract public void saveUserData(String user, String domain)(Code)(Java Doc)
abstract protected void saveXMLSysData()(Code)(Java Doc)
public void setConfig(String key, String value) throws IllegalArgumentException(Code)(Java Doc)
public void setDebug(boolean b)(Code)(Java Doc)
public void setUserData(String user, UserData userdata)(Code)(Java Doc)
public void setVirtualDomain(String name, WebMailVirtualDomain v)(Code)(Java Doc)
abstract public void shutdown()(Code)(Java Doc)

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.