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


java.lang.Object
   net.wastl.webmail.server.Storage

All known Subclasses:   net.wastl.webmail.storage.FileStorage,
Storage
abstract public class Storage (Code)
This provides a generic interface for getting and setting stored data in WebMail.
See Also:   net.wastl.webmail.storage.simple.SimpleStorage
author:
   Sebastian Schaffert
version:
   $Revision: 1.1.1.1 $


Field Summary
final public static  intLOG_CRIT
    
final public static  intLOG_DEBUG
    
final public static  intLOG_ERR
    
final public static  intLOG_INFO
    
final public static  intLOG_WARN
    
protected  ConfigSchemecs
    
protected static  booleandebug
    
protected  XMLGenericModelgeneric_model
    
protected  WebMailServerparent
    
protected  XMLSystemDatasysdata
    

Constructor Summary
public  Storage(WebMailServer parent)
    

Method Summary
abstract public  XMLUserDatacreateUserData(String user, String domain, String password)
    
public  WebMailVirtualDomaincreateVirtualDomain(String name)
    
public  XMLAdminModelcreateXMLAdminModel()
    
public  XMLGenericModelcreateXMLGenericModel()
     Return a generic XML model that only contains some state and system information.
public  XMLUserModelcreateXMLUserModel(XMLUserData data)
    
abstract public  voiddeleteUserData(String user, String domain)
    
public  voiddeleteUserData(String user)
    
public  voiddeleteVirtualDomain(String name)
    
abstract public  AuthenticatorgetAuthenticator()
     Return this Storage's Authenticator.
public  StringgetBasePath(Locale locale, String theme)
    
abstract public  byte[]getBinaryFile(String name, Locale locale, String theme)
     Get a binary file (most likely an image) for the specified locale and theme.
public  StringgetConfig(String key)
     Fetch the configuration associated with the specified key.
public  EnumerationgetConfigKeys()
     Fetch all keys of the current configuration.
public  booleangetDebug()
    
public  StringgetMimeType(String name)
    
abstract public  StringgetStringResource(String key, Locale locale)
     Get the String for key and the specified locale.
abstract public  TemplatesgetStylesheet(String name, Locale locale, String theme)
     Get a xsl stylesheet for the specified locale and theme.
public  XMLSystemDatagetSystemData()
    
public  XMLUserDatagetUserData(String user, String domain, String passwd)
     Get the userdata for the specified user.
abstract public  XMLUserDatagetUserData(String user, String domain, String password, boolean authenticate)
     get the userdata for the specified user.
abstract public  EnumerationgetUsers(String domain)
     Return userlist for a given domain.
public  EnumerationgetUsers()
    
public  WebMailVirtualDomaingetVirtualDomain(String name)
    
public  EnumerationgetVirtualDomains()
    
public  voidinitConfigKeys()
    
abstract protected  voidloadXMLSysData()
    
abstract public  voidlog(int level, String message)
     Send a message to the logging facility.
abstract public  voidlog(int level, Exception ex)
     Send an exception to the logging facility.
public  voidsave()
    
abstract public  voidsaveUserData(String user, String domain)
     Save the userdata for the given user.
abstract protected  voidsaveXMLSysData()
    
public  voidsetConfig(String key, String value)
     Set a configuration "key" to the specified value.
public  voidsetDebug(boolean b)
    
public  voidsetUserData(String user, UserData userdata)
     Set the userdata for the specified user.
public  voidsetVirtualDomain(String name, WebMailVirtualDomain v)
    
abstract public  voidshutdown()
    

Field Detail
LOG_CRIT
final public static int LOG_CRIT(Code)



LOG_DEBUG
final public static int LOG_DEBUG(Code)



LOG_ERR
final public static int LOG_ERR(Code)



LOG_INFO
final public static int LOG_INFO(Code)



LOG_WARN
final public static int LOG_WARN(Code)



cs
protected ConfigScheme cs(Code)



debug
protected static boolean debug(Code)



generic_model
protected XMLGenericModel generic_model(Code)



parent
protected WebMailServer parent(Code)



sysdata
protected XMLSystemData sysdata(Code)




Constructor Detail
Storage
public Storage(WebMailServer parent)(Code)




Method Detail
createUserData
abstract public XMLUserData createUserData(String user, String domain, String password) throws CreateUserDataException(Code)
Create a userdata for the specified user



createVirtualDomain
public WebMailVirtualDomain createVirtualDomain(String name) throws Exception(Code)



createXMLAdminModel
public XMLAdminModel createXMLAdminModel() throws WebMailException(Code)
Return a XML model that contains state and system information for administrator use



createXMLGenericModel
public XMLGenericModel createXMLGenericModel() throws WebMailException(Code)
Return a generic XML model that only contains some state and system information. This cannot be changed by a single session.



createXMLUserModel
public XMLUserModel createXMLUserModel(XMLUserData data) throws WebMailException(Code)



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



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



deleteVirtualDomain
public void deleteVirtualDomain(String name)(Code)
Delete a WebMail virtual domain



getAuthenticator
abstract public Authenticator getAuthenticator()(Code)
Return this Storage's Authenticator. This is necessary for changing passwords or re-checking authentication.



getBasePath
public String getBasePath(Locale locale, String theme)(Code)
Calculate the document base path for a given locale and theme



getBinaryFile
abstract public byte[] getBinaryFile(String name, Locale locale, String theme) throws BinaryNotFoundException(Code)
Get a binary file (most likely an image) for the specified locale and theme.
Parameters:
  key - Identifier for the String
Parameters:
  locale - locale of the String to fetch
Parameters:
  theme - theme where to look for the file



getConfig
public String getConfig(String key)(Code)
Fetch the configuration associated with the specified key.
Parameters:
  key - Identifier for the configuration



getConfigKeys
public Enumeration getConfigKeys()(Code)
Fetch all keys of the current configuration.



getDebug
public boolean getDebug()(Code)



getMimeType
public String getMimeType(String name)(Code)



getStringResource
abstract public String getStringResource(String key, Locale locale)(Code)
Get the String for key and the specified locale.
Parameters:
  key - Identifier for the String
Parameters:
  locale - locale of the String to fetch



getStylesheet
abstract public Templates getStylesheet(String name, Locale locale, String theme) throws WebMailException(Code)
Get a xsl stylesheet for the specified locale and theme.
Parameters:
  key - Identifier for the String
Parameters:
  locale - locale of the String to fetch
Parameters:
  theme - theme where to look for the file



getSystemData
public XMLSystemData getSystemData()(Code)



getUserData
public XMLUserData getUserData(String user, String domain, String passwd) throws UserDataException, InvalidPasswordException(Code)
Get the userdata for the specified user.
Parameters:
  user - Name of the user
Parameters:
  domain - Virtual Domain name of the user
Parameters:
  passwd - Password that the user provideddevink 7/15/2000 - deprecated, but left in for backwards compat.devink 9/24/2000 - not deprecated any moreXXX should passwd be a parameter?



getUserData
abstract public XMLUserData getUserData(String user, String domain, String password, boolean authenticate) throws UserDataException, InvalidPasswordException(Code)
get the userdata for the specified user. Should do some sort of authentication if authentication is set. See Authenticator class for example. devink 7/15/2000 - depreciated, and is no longer abstract, so there is no requirement to implement it. devink 9/24/2000 - not depreciated, and is now abstract



getUsers
abstract public Enumeration getUsers(String domain)(Code)
Return userlist for a given domain.



getUsers
public Enumeration getUsers()(Code)



getVirtualDomain
public WebMailVirtualDomain getVirtualDomain(String name)(Code)
Get a WebMail virtual domain



getVirtualDomains
public Enumeration getVirtualDomains()(Code)
Return a list of virtual domains



initConfigKeys
public void initConfigKeys()(Code)



loadXMLSysData
abstract protected void loadXMLSysData()(Code)



log
abstract public void log(int level, String message)(Code)
Send a message to the logging facility.
Parameters:
  level - severity level of the message
Parameters:
  message - the message



log
abstract public void log(int level, Exception ex)(Code)
Send an exception to the logging facility.
Parameters:
  level - severity level of the message
Parameters:
  message - the message



save
public void save()(Code)



saveUserData
abstract public void saveUserData(String user, String domain)(Code)
Save the userdata for the given user.
Parameters:
  user - Username of this user
Parameters:
  domain - Domain of this user



saveXMLSysData
abstract protected void saveXMLSysData()(Code)



setConfig
public void setConfig(String key, String value) throws IllegalArgumentException(Code)
Set a configuration "key" to the specified value.
Parameters:
  key - Identifier for the configuration
Parameters:
  value - value to set



setDebug
public void setDebug(boolean b)(Code)



setUserData
public void setUserData(String user, UserData userdata)(Code)
Set the userdata for the specified user.
Parameters:
  user - Name of the user
Parameters:
  userdata - Data to store



setVirtualDomain
public void setVirtualDomain(String name, WebMailVirtualDomain v)(Code)
Set/add a WebMail virtual domain



shutdown
abstract public void shutdown()(Code)



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.