Jwma

dtw.webmail.util.config
Class JwmaConfiguration

java.lang.Object
  |
  +--dtw.webmail.util.config.JwmaConfiguration
All Implemented Interfaces:
java.io.Serializable

public class JwmaConfiguration
extends java.lang.Object
implements java.io.Serializable

Class implementing a wrapper for jwma's settings.

Version:
0.9.7 07/02/2003
Author:
Dieter Wimberger
See Also:
Serialized Form

Field Summary
static java.lang.String CONFIG_FILENAME
           
static java.lang.String DATA_DIR
           
static java.lang.String ETC_DIR
           
static java.lang.String I18N_DIR
           
static java.lang.String JTEXTPROC_CONFIG
           
static java.lang.String LOG_DIR
          Defines a name of the static jwma direcory architecture.
static java.lang.String LOG4J_CONFIG
           
static java.lang.String TEMPLATE_FILENAME
           
 
Constructor Summary
JwmaConfiguration()
          Constructs a new JwmaConfiguration instance.
 
Method Summary
 void addPostOffice(PostOffice po)
           
 boolean existsPostOfficeByName(java.lang.String name)
           
 Administration getAdministration()
          Admin related
 java.lang.String getContactManagementPlugin()
           
 java.lang.String getDefaultMessageProcessor()
          Returns a String representing the name of the default message processor.
 PostOffice getDefaultPostOffice()
           
 Internationalization getI18N()
          i18n related
 MailTransportAgent getMTA()
          Mail transport related
 boolean getPostOfficeAllowOverride()
          Tests if overriding the system's set postoffice is allowed.
 PostOffice getPostOfficeByName(java.lang.String name)
           
 java.util.Collection getPostOfficeCollection()
           
 java.util.Iterator getPostOffices()
          Postoffice related
 java.lang.String getPreferencePersistencePlugin()
          END i18n related
 java.lang.String getRandomAppendPlugin()
           
 Security getSecurity()
           
 boolean isAccountCreationEnabled()
          Tests if creation of accounts is enabled.
 boolean isSSLSetupRequired()
          END Mail transport related
 void removePostOffice(PostOffice po)
           
 void setAccountCreationEnabled(boolean b)
          Sets the flag that controls if the automatic creation of jwma accounts is enabled.
 void setAdministration(Administration administration)
           
 void setContactManagementPlugin(java.lang.String classname)
           
 void setDefaultMessageProcessor(java.lang.String name)
          Returns a String representing the name of the default message processor.
 void setDefaultPostOffice(PostOffice ndpo)
           
 void setI18N(Internationalization i18N)
           
 void setMTA(MailTransportAgent mta)
           
 void setPostOfficeAllowOverride(boolean b)
          Sets the flag that controls if overriding the system's set postoffice is allowed or not.
 void setPostOfficeCollection(java.util.Collection collection)
           
 void setPreferencePersistencePlugin(java.lang.String classname)
           
 void setRandomAppendPlugin(java.lang.String classname)
           
 void setSecurity(Security security)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_DIR

public static final java.lang.String LOG_DIR
Defines a name of the static jwma direcory architecture.

See Also:
Constant Field Values

ETC_DIR

public static final java.lang.String ETC_DIR
See Also:
Constant Field Values

DATA_DIR

public static final java.lang.String DATA_DIR
See Also:
Constant Field Values

I18N_DIR

public static final java.lang.String I18N_DIR
See Also:
Constant Field Values

CONFIG_FILENAME

public static final java.lang.String CONFIG_FILENAME
See Also:
Constant Field Values

LOG4J_CONFIG

public static final java.lang.String LOG4J_CONFIG
See Also:
Constant Field Values

JTEXTPROC_CONFIG

public static final java.lang.String JTEXTPROC_CONFIG
See Also:
Constant Field Values

TEMPLATE_FILENAME

public static final java.lang.String TEMPLATE_FILENAME
See Also:
Constant Field Values
Constructor Detail

JwmaConfiguration

public JwmaConfiguration()
Constructs a new JwmaConfiguration instance.

Method Detail

getSecurity

public Security getSecurity()

setSecurity

public void setSecurity(Security security)

getPostOffices

public java.util.Iterator getPostOffices()
Postoffice related


getPostOfficeCollection

public java.util.Collection getPostOfficeCollection()

setPostOfficeCollection

public void setPostOfficeCollection(java.util.Collection collection)

addPostOffice

public void addPostOffice(PostOffice po)

removePostOffice

public void removePostOffice(PostOffice po)

existsPostOfficeByName

public boolean existsPostOfficeByName(java.lang.String name)

getPostOfficeByName

public PostOffice getPostOfficeByName(java.lang.String name)

getPostOfficeAllowOverride

public boolean getPostOfficeAllowOverride()
Tests if overriding the system's set postoffice is allowed.

Returns:
true if overriding is allowed, false otherwise.

setPostOfficeAllowOverride

public void setPostOfficeAllowOverride(boolean b)
Sets the flag that controls if overriding the system's set postoffice is allowed or not.

Parameters:
b - true if the overriding is to be allowed, false otherwise.

getDefaultPostOffice

public PostOffice getDefaultPostOffice()

setDefaultPostOffice

public void setDefaultPostOffice(PostOffice ndpo)

getMTA

public MailTransportAgent getMTA()
Mail transport related


setMTA

public void setMTA(MailTransportAgent mta)

isSSLSetupRequired

public boolean isSSLSetupRequired()
END Mail transport related


getAdministration

public Administration getAdministration()
Admin related


setAdministration

public void setAdministration(Administration administration)

isAccountCreationEnabled

public boolean isAccountCreationEnabled()
Tests if creation of accounts is enabled.

Returns:
true if account creation is enabled, false otherwise.

setAccountCreationEnabled

public void setAccountCreationEnabled(boolean b)
Sets the flag that controls if the automatic creation of jwma accounts is enabled. This will cause jwma to create user specific data, if the user can be authenticated against the IMAP server.

Parameters:
b - true if account creation is enabled, false otherwise.

getDefaultMessageProcessor

public java.lang.String getDefaultMessageProcessor()
Returns a String representing the name of the default message processor.

Returns:
the name of the default message processor as String.

setDefaultMessageProcessor

public void setDefaultMessageProcessor(java.lang.String name)
Returns a String representing the name of the default message processor.

Returns:
the name of the default message processor as String.

getI18N

public Internationalization getI18N()
i18n related


setI18N

public void setI18N(Internationalization i18N)

getPreferencePersistencePlugin

public java.lang.String getPreferencePersistencePlugin()
END i18n related


setPreferencePersistencePlugin

public void setPreferencePersistencePlugin(java.lang.String classname)

getContactManagementPlugin

public java.lang.String getContactManagementPlugin()

setContactManagementPlugin

public void setContactManagementPlugin(java.lang.String classname)

getRandomAppendPlugin

public java.lang.String getRandomAppendPlugin()

setRandomAppendPlugin

public void setRandomAppendPlugin(java.lang.String classname)

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)