com.jp.protection.priv.pro.integration
Class LicensingFacadeConfig

java.lang.Object
  extended by com.jp.protection.priv.pro.integration.LicensingFacadeConfig
All Implemented Interfaces:
java.lang.Cloneable

public class LicensingFacadeConfig
extends java.lang.Object
implements java.lang.Cloneable

This class provides necessary properties required to properly configure the LicensingFacade instances


Field Summary
protected  com.jp.util.IndexedPropertiesSupport fIndexedPropertiesSupport
           
protected  java.util.Properties fProperties
           
protected  int fType
           
static java.lang.String PROPERTY_ACTIVATE_LICENSE_ENABLED
           
static java.lang.String PROPERTY_COMMERCIAL_ENABLED
           
static java.lang.String PROPERTY_DB_DRIVER
           
static java.lang.String PROPERTY_DB_ENABLED
           
static java.lang.String PROPERTY_DB_PASSWORD
           
static java.lang.String PROPERTY_DB_URL
           
static java.lang.String PROPERTY_DB_USER
           
static java.lang.String PROPERTY_DEACTIVATE_LICENSE_ENABLED
           
static java.lang.String PROPERTY_DEFAULT_DELIVERY_TYPE
           
static java.lang.String PROPERTY_EMAIL_BCC
           
static java.lang.String PROPERTY_EMAIL_CC
           
static java.lang.String PROPERTY_EMAIL_FROM
           
static java.lang.String PROPERTY_EMAIL_REPLY_TO
           
static java.lang.String PROPERTY_EMAIL_SUBJECT
           
static java.lang.String PROPERTY_EMAIL_TEXT
           
static java.lang.String PROPERTY_EVALUATION_ENABLED
           
static java.lang.String PROPERTY_EXT_EVALUATION_ENABLED
           
static java.lang.String PROPERTY_GET_BY_DESCR
           
static java.lang.String PROPERTY_GET_BY_SERIAL_NUMBER_ENABLED
           
static java.lang.String PROPERTY_GET_ENABLED
           
static java.lang.String PROPERTY_LIBRARY
           
static java.lang.String PROPERTY_LIBRARY_NAME
           
static java.lang.String PROPERTY_LICENSE_LOCATION
           
static java.lang.String PROPERTY_LOG_LEVEL
           
static java.lang.String PROPERTY_LOGIN
           
static java.lang.String PROPERTY_PASSWORD
           
static java.lang.String PROPERTY_PLUGIN_ENABLED
           
static java.lang.String PROPERTY_PLUGIN_FACTORY_CLASS_NAME
           
static java.lang.String PROPERTY_PRODUCTS_STORAGE_NAME
           
static java.lang.String PROPERTY_RP
           
static java.lang.String PROPERTY_SMTP_ENABLED
           
static java.lang.String PROPERTY_SMTP_HOST
           
static java.lang.String PROPERTY_SMTP_PASSWORD
           
static java.lang.String PROPERTY_SMTP_PORT
           
static java.lang.String PROPERTY_SMTP_USE_AUTHENTICATION
           
static java.lang.String PROPERTY_SMTP_USER
           
static java.lang.String PROPERTY_TYPE
           
static java.lang.String PROPERTY_VERSION
           
static int TYPE_AXIS
           
static int TYPE_JAXWS
           
 
Constructor Summary
LicensingFacadeConfig()
          Creates a new instance of the LicensingFacadeConfig
LicensingFacadeConfig(java.util.Properties aProperties)
          Creates a new instance of the LicensingFacadeConfig
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getDBDriver()
          Returns class name of JDBC driver
 java.lang.String getDBPassword()
          Returns the password to login to database
 java.lang.String getDBURL()
          Returns URL of database to open
 java.lang.String getDBUser()
          Return the user to login to database
 int getDefaultDeliveryType()
          Returns default delivery name
 java.lang.String getEmailBCC()
          Returns BCC e-mail address to send messages to
 java.lang.String getEmailCC()
          Returns CC e-mail address to send messages to
 java.lang.String getEmailFrom()
          Returns e-mail address to send messages from
 java.lang.String getEmailReplyTo()
          Returns e-mail address to reply to sent messages
 java.lang.String getEmailSubject()
          Returns the subject for messages to send
 java.lang.String getEmailText()
          Returns the text for messages to send
static LicensingFacadeConfig getInstance(java.io.File aFile)
          Creates a new instance of the LicensingFacadeConfig and loads it from the specified file
static LicensingFacadeConfig getInstance(java.io.InputStream anInputStream)
          Creates a new instance of the LicensingFacadeConfig and loads it from the specified stream
 java.lang.String[] getLibraries()
          Returns the names of the libraries required for proper functioning of the plug-in.
 java.lang.String getLicenseLocation()
          Returns location of the license file to be bundled with the application
 java.lang.String getLogin()
          Returns login name
 int getLogLevel()
          Returns level of messages are logged
 java.lang.String getPassword()
          Returns password
 java.lang.String getPluginFactoryClassName()
          Return plug-in factory class name
 java.lang.String getProductsStorageName()
          Returns name of products storage resource e.g.
 java.util.Properties getProperties()
          Returns properties that holds all of the configuration data
 java.lang.String getReadProtectionPassword()
           
 java.lang.String getSMTPHost()
          Returns address of SMTP server host
 java.lang.String getSMTPPassword()
          Returns password of the user to login to the SMTP server
 int getSMTPPort()
          Returns SMTP server port
 java.lang.String getSMTPUser()
          Returns name of the user to login to the SMTP server
 int getType()
           
 java.lang.String getVersion()
          Returns version information
 boolean isActivateLicenseEnabled()
          Returns whether licenses activation is enabled
 boolean isCommercialEnabled()
          Returns whether ability of obtaining commercial licenses is enabled
 boolean isDBEnabled()
          Returns whether database support is enabled
 boolean isDeactivateLicenseEnabled()
          Returns whether licenses deactivation is enabled
 boolean isEvaluationEnabled()
          Returns whether ability of obtaining evaluation licenses is enabled
 boolean isExtEvaluationEnabled()
          Returns whether ability of obtaining extended evaluation licenses is enabled
 boolean isGetByDescrEnabled()
          Returns whether ability of obtaining licenses by LicenseDescr is enabled
 boolean isGetBySerialNumberEnabled()
          Returns whether ability of obtaining commercial licenses by the Serial Number is enabled
 boolean isGetEnabled()
          Returns whether ability of obtaining licenses by LicenseInfo is enabled
 boolean isPluginEnabled()
          Returns whether plug-in is enabled
 boolean isSMTPEnabled()
          Returns whether SMTP is enabled
 boolean isSMTPUseAuthentication()
          Returns whether SMTP authentication is enabled
 void load(java.io.InputStream anInputStream)
          Loads configuration from the specified stream
 void save(java.io.OutputStream anOutputStream)
          Saves configuration to the specified stream
 void setActivateLicenseEnabled(boolean aValue)
          Specifies that licenses activation should be enabled
 void setCommercialEnabled(boolean aValue)
          Specifies ability of obtaining commercial licenses should be enabled
 void setDBDriver(java.lang.String aValue)
          Specifies class name of JDBC driver
 void setDBEnabled(boolean aValue)
          Specifies that database support should be enabled
 void setDBPassword(java.lang.String aValue)
          Specifies the password to login to database
 void setDBURL(java.lang.String aValue)
          Specifies URL of database to open
 void setDBUser(java.lang.String aValue)
          Specifies the user to login to database
 void setDeactivateLicenseEnabled(boolean aValue)
          Specifies that licenses deactivation should be enabled
 void setDefaultDeliveryType(int aValue)
          Specifies default delivery name
 void setEmailBCC(java.lang.String aValue)
          Specifies BCC e-mail address to send messages to
 void setEmailCC(java.lang.String aValue)
          Specifies CC e-mail address to send messages to
 void setEmailFrom(java.lang.String aValue)
          Specifies e-mail address to send messages from
 void setEmailReplyTo(java.lang.String aValue)
          Specifies e-mail address to reply to sent messages
 void setEmailSubject(java.lang.String aValue)
          Specifies the subject for messages to send
 void setEmailText(java.lang.String aValue)
          Specifies the text for messages to send
 void setEvaluationEnabled(boolean aValue)
          Specifies whether ability of obtaining evaluation licenses should be enabled
 void setExtEvaluationEnabled(boolean aValue)
          Specifies whether ability of obtaining extended evaluation licenses should be enabled
 void setGetByDescrEnabled(boolean aValue)
          Specifies whether ability of obtaining licenses by LicenseInfo should be enabled
 void setGetBySerialNumberEnabled(boolean aValue)
          Specifies whether ability of obtaining licenses by the Serial Number should be enabled
 void setGetEnabled(boolean aValue)
          Specifies whether ability of obtaining licenses by LicenseDescr should be enabled
 void setLibraries(java.lang.String[] aLibraries)
          Specifies the names of the libraries required for proper functioning of the plug-in.
 void setLicenseLocation(java.lang.String aValue)
          Specifies location of the license file to be bundled with the application
 void setLogin(java.lang.String aValue)
          Specifies login name
 void setLogLevel(int aLevel)
          Specifies level of messages should be logged as one of ProtectionLogger.LEVEL_ constants
 void setPassword(java.lang.String aValue)
          Specifies password
 void setPluginEnabled(boolean aValue)
          Specifies whether plug-in should be enabled
 void setPluginFactoryClassName(java.lang.String aValue)
          Specifies plug-in factory class name
 void setProductsStorageName(java.lang.String aValue)
          Specifies name of products storage resource
protected  void setProperty(java.lang.String aName, java.lang.String aValue)
           
 void setReadProtectionPassword(java.lang.String aReadProtectionPassword)
           
 void setSMTPEnabled(boolean aValue)
          Specifies that SMTP should be enabled
 void setSMTPHost(java.lang.String aValue)
          Specifies address of SMTP server host
 void setSMTPPassword(java.lang.String aValue)
          Specifies password of the user to login to the SMTP server
 void setSMTPPort(int aValue)
          Specifies SMTP server port
 void setSMTPUseAuthentication(boolean aValue)
          Specifies that SMTP authentication should be enabled
 void setSMTPUser(java.lang.String aValue)
          Specifies name of the user to login to the SMTP server
 void setType(int type)
           
 void setVersion(java.lang.String aValue)
          Specifies version information
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fProperties

protected java.util.Properties fProperties

fIndexedPropertiesSupport

protected com.jp.util.IndexedPropertiesSupport fIndexedPropertiesSupport

PROPERTY_VERSION

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

PROPERTY_LIBRARY_NAME

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

PROPERTY_LIBRARY

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

PROPERTY_PLUGIN_ENABLED

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

PROPERTY_PLUGIN_FACTORY_CLASS_NAME

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

PROPERTY_LOGIN

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

PROPERTY_PASSWORD

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

PROPERTY_DEFAULT_DELIVERY_TYPE

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

PROPERTY_GET_ENABLED

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

PROPERTY_GET_BY_DESCR

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

PROPERTY_GET_BY_SERIAL_NUMBER_ENABLED

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

PROPERTY_ACTIVATE_LICENSE_ENABLED

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

PROPERTY_DEACTIVATE_LICENSE_ENABLED

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

PROPERTY_COMMERCIAL_ENABLED

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

PROPERTY_EVALUATION_ENABLED

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

PROPERTY_EXT_EVALUATION_ENABLED

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

PROPERTY_PRODUCTS_STORAGE_NAME

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

PROPERTY_SMTP_ENABLED

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

PROPERTY_SMTP_HOST

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

PROPERTY_SMTP_PORT

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

PROPERTY_SMTP_USE_AUTHENTICATION

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

PROPERTY_SMTP_USER

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

PROPERTY_SMTP_PASSWORD

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

PROPERTY_EMAIL_FROM

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

PROPERTY_EMAIL_REPLY_TO

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

PROPERTY_EMAIL_CC

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

PROPERTY_EMAIL_BCC

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

PROPERTY_EMAIL_SUBJECT

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

PROPERTY_EMAIL_TEXT

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

PROPERTY_DB_ENABLED

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

PROPERTY_DB_DRIVER

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

PROPERTY_DB_URL

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

PROPERTY_DB_USER

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

PROPERTY_DB_PASSWORD

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

PROPERTY_LICENSE_LOCATION

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

PROPERTY_LOG_LEVEL

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

PROPERTY_RP

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

PROPERTY_TYPE

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

TYPE_AXIS

public static final int TYPE_AXIS
See Also:
Constant Field Values

TYPE_JAXWS

public static final int TYPE_JAXWS
See Also:
Constant Field Values

fType

protected int fType
Constructor Detail

LicensingFacadeConfig

public LicensingFacadeConfig()
Creates a new instance of the LicensingFacadeConfig


LicensingFacadeConfig

public LicensingFacadeConfig(java.util.Properties aProperties)
Creates a new instance of the LicensingFacadeConfig

Parameters:
aProperties - properties to create configuration from
Method Detail

getInstance

public static LicensingFacadeConfig getInstance(java.io.File aFile)
Creates a new instance of the LicensingFacadeConfig and loads it from the specified file

Parameters:
aFile - file to load configuration from
Returns:
a new instance of the LicensingFacadeConfig

getInstance

public static LicensingFacadeConfig getInstance(java.io.InputStream anInputStream)
Creates a new instance of the LicensingFacadeConfig and loads it from the specified stream

Parameters:
anInputStream - stream to load configuration from
Returns:
a new instance of the LicensingFacadeConfig

getProperties

public java.util.Properties getProperties()
Returns properties that holds all of the configuration data

Returns:
properties that holds all of the configuration data

load

public void load(java.io.InputStream anInputStream)
          throws java.io.IOException
Loads configuration from the specified stream

Parameters:
anInputStream - stream to load configuration from
Throws:
java.io.IOException - in case of any error during loading

save

public void save(java.io.OutputStream anOutputStream)
          throws java.io.IOException
Saves configuration to the specified stream

Parameters:
anOutputStream - stream to save configuration to
Throws:
java.io.IOException - in case of any error during saving

getLibraries

public java.lang.String[] getLibraries()
Returns the names of the libraries required for proper functioning of the plug-in.

Returns:
array of library names

setLibraries

public void setLibraries(java.lang.String[] aLibraries)
Specifies the names of the libraries required for proper functioning of the plug-in.

Parameters:
aLibraries - array of library names

getProductsStorageName

public java.lang.String getProductsStorageName()
Returns name of products storage resource e.g. /com/acme/products.dat

Returns:
name of products storage resource

setProductsStorageName

public void setProductsStorageName(java.lang.String aValue)
Specifies name of products storage resource

Parameters:
aValue - name of products storage resource

isPluginEnabled

public boolean isPluginEnabled()
Returns whether plug-in is enabled

Returns:
whether plug-in is enabled

setPluginEnabled

public void setPluginEnabled(boolean aValue)
Specifies whether plug-in should be enabled

Parameters:
aValue - enabled value

getPluginFactoryClassName

public java.lang.String getPluginFactoryClassName()
Return plug-in factory class name

Returns:
plug-in factory class name

setPluginFactoryClassName

public void setPluginFactoryClassName(java.lang.String aValue)
Specifies plug-in factory class name

Parameters:
aValue - plug-in factory class name

getPassword

public java.lang.String getPassword()
Returns password

Returns:
password

setPassword

public void setPassword(java.lang.String aValue)
Specifies password

Parameters:
aValue - password

getDefaultDeliveryType

public int getDefaultDeliveryType()
Returns default delivery name

Returns:
default delivery name

setDefaultDeliveryType

public void setDefaultDeliveryType(int aValue)
Specifies default delivery name

Parameters:
aValue - default delivery name

isGetEnabled

public boolean isGetEnabled()
Returns whether ability of obtaining licenses by LicenseInfo is enabled

Returns:
true if ability of obtaining by LicenseInfo is enabled; false otherwise

setGetEnabled

public void setGetEnabled(boolean aValue)
Specifies whether ability of obtaining licenses by LicenseDescr should be enabled

Parameters:
aValue - enabled value

isGetByDescrEnabled

public boolean isGetByDescrEnabled()
Returns whether ability of obtaining licenses by LicenseDescr is enabled

Returns:
true if ability of obtaining by LicenseInfo is enabled; false otherwise

setGetByDescrEnabled

public void setGetByDescrEnabled(boolean aValue)
Specifies whether ability of obtaining licenses by LicenseInfo should be enabled

Parameters:
aValue - enabled value

isGetBySerialNumberEnabled

public boolean isGetBySerialNumberEnabled()
Returns whether ability of obtaining commercial licenses by the Serial Number is enabled

Returns:
true if ability of obtaining commercial licenses by the Serial Number is enabled; false otherwise

setGetBySerialNumberEnabled

public void setGetBySerialNumberEnabled(boolean aValue)
Specifies whether ability of obtaining licenses by the Serial Number should be enabled

Parameters:
aValue - enabled value

isCommercialEnabled

public boolean isCommercialEnabled()
Returns whether ability of obtaining commercial licenses is enabled

Returns:
true if ability of obtaining commercial licenses is enabled; false otherwise

setCommercialEnabled

public void setCommercialEnabled(boolean aValue)
Specifies ability of obtaining commercial licenses should be enabled

Parameters:
aValue - enabled value

isEvaluationEnabled

public boolean isEvaluationEnabled()
Returns whether ability of obtaining evaluation licenses is enabled

Returns:
true if ability of obtaining evaluation licenses is enabled; false otherwise

setEvaluationEnabled

public void setEvaluationEnabled(boolean aValue)
Specifies whether ability of obtaining evaluation licenses should be enabled

Parameters:
aValue - enabled value

isExtEvaluationEnabled

public boolean isExtEvaluationEnabled()
Returns whether ability of obtaining extended evaluation licenses is enabled

Returns:
true if ability of obtaining extended evaluation licenses is enabled; false otherwise

setExtEvaluationEnabled

public void setExtEvaluationEnabled(boolean aValue)
Specifies whether ability of obtaining extended evaluation licenses should be enabled

Parameters:
aValue - enabled value

isActivateLicenseEnabled

public boolean isActivateLicenseEnabled()
Returns whether licenses activation is enabled

Returns:
true licenses activation is enabled; false otherwise

setActivateLicenseEnabled

public void setActivateLicenseEnabled(boolean aValue)
Specifies that licenses activation should be enabled

Parameters:
aValue - enabled value

isDeactivateLicenseEnabled

public boolean isDeactivateLicenseEnabled()
Returns whether licenses deactivation is enabled

Returns:
true licenses deactivation is enabled; false otherwise

setDeactivateLicenseEnabled

public void setDeactivateLicenseEnabled(boolean aValue)
Specifies that licenses deactivation should be enabled

Parameters:
aValue - enabled value

getLogin

public java.lang.String getLogin()
Returns login name

Returns:
login name

setLogin

public void setLogin(java.lang.String aValue)
Specifies login name

Parameters:
aValue - login name

isSMTPEnabled

public boolean isSMTPEnabled()
Returns whether SMTP is enabled

Returns:
true if SMTP is enabled; false otherwise

setSMTPEnabled

public void setSMTPEnabled(boolean aValue)
Specifies that SMTP should be enabled

Parameters:
aValue - enabled value

getSMTPHost

public java.lang.String getSMTPHost()
Returns address of SMTP server host

Returns:
server host

setSMTPHost

public void setSMTPHost(java.lang.String aValue)
Specifies address of SMTP server host

Parameters:
aValue - server host

getSMTPPort

public int getSMTPPort()
Returns SMTP server port

Returns:
server port

setSMTPPort

public void setSMTPPort(int aValue)
Specifies SMTP server port

Parameters:
aValue - server port

getSMTPUser

public java.lang.String getSMTPUser()
Returns name of the user to login to the SMTP server

Returns:
name of the user

setSMTPUser

public void setSMTPUser(java.lang.String aValue)
Specifies name of the user to login to the SMTP server

Parameters:
aValue - name of the user

getSMTPPassword

public java.lang.String getSMTPPassword()
Returns password of the user to login to the SMTP server

Returns:
password value

setSMTPPassword

public void setSMTPPassword(java.lang.String aValue)
Specifies password of the user to login to the SMTP server

Parameters:
aValue - password value

isSMTPUseAuthentication

public boolean isSMTPUseAuthentication()
Returns whether SMTP authentication is enabled

Returns:
true if SMTP authentication is enabled; false otherwise

setSMTPUseAuthentication

public void setSMTPUseAuthentication(boolean aValue)
Specifies that SMTP authentication should be enabled

Parameters:
aValue - enabled value

getEmailCC

public java.lang.String getEmailCC()
Returns CC e-mail address to send messages to

Returns:
e-mail address

setEmailCC

public void setEmailCC(java.lang.String aValue)
Specifies CC e-mail address to send messages to

Parameters:
aValue - e-mail address

getEmailBCC

public java.lang.String getEmailBCC()
Returns BCC e-mail address to send messages to

Returns:
e-mail address

setEmailBCC

public void setEmailBCC(java.lang.String aValue)
Specifies BCC e-mail address to send messages to

Parameters:
aValue - e-mail address

getEmailSubject

public java.lang.String getEmailSubject()
Returns the subject for messages to send

Returns:
subject value

setEmailSubject

public void setEmailSubject(java.lang.String aValue)
Specifies the subject for messages to send

Parameters:
aValue - subject value

getEmailText

public java.lang.String getEmailText()
Returns the text for messages to send

Returns:
text value

setEmailText

public void setEmailText(java.lang.String aValue)
Specifies the text for messages to send

Parameters:
aValue - text value

getEmailFrom

public java.lang.String getEmailFrom()
Returns e-mail address to send messages from

Returns:
e-mail address

setEmailFrom

public void setEmailFrom(java.lang.String aValue)
Specifies e-mail address to send messages from

Parameters:
aValue - e-mail address

getEmailReplyTo

public java.lang.String getEmailReplyTo()
Returns e-mail address to reply to sent messages

Returns:
e-mail address

setEmailReplyTo

public void setEmailReplyTo(java.lang.String aValue)
Specifies e-mail address to reply to sent messages

Parameters:
aValue - e-mail address

getDBDriver

public java.lang.String getDBDriver()
Returns class name of JDBC driver

Returns:
class name

setDBDriver

public void setDBDriver(java.lang.String aValue)
Specifies class name of JDBC driver

Parameters:
aValue - class name

getDBURL

public java.lang.String getDBURL()
Returns URL of database to open

Returns:
URL of database

setDBURL

public void setDBURL(java.lang.String aValue)
Specifies URL of database to open

Parameters:
aValue - URL of database

getDBUser

public java.lang.String getDBUser()
Return the user to login to database

Returns:
user name

setDBUser

public void setDBUser(java.lang.String aValue)
Specifies the user to login to database

Parameters:
aValue - user name

getDBPassword

public java.lang.String getDBPassword()
Returns the password to login to database

Returns:
password value

setDBPassword

public void setDBPassword(java.lang.String aValue)
Specifies the password to login to database

Parameters:
aValue - password value

isDBEnabled

public boolean isDBEnabled()
Returns whether database support is enabled

Returns:
true if database support is enabled; false otherwise

setDBEnabled

public void setDBEnabled(boolean aValue)
Specifies that database support should be enabled

Parameters:
aValue - enabled value

getVersion

public java.lang.String getVersion()
Returns version information

Returns:
version information

setVersion

public void setVersion(java.lang.String aValue)
Specifies version information

Parameters:
aValue - version information

getLicenseLocation

public java.lang.String getLicenseLocation()
Returns location of the license file to be bundled with the application

Returns:
location of the license file

setLicenseLocation

public void setLicenseLocation(java.lang.String aValue)
Specifies location of the license file to be bundled with the application

Parameters:
aValue - location of the license file

getLogLevel

public int getLogLevel()
Returns level of messages are logged

Returns:
log level

setLogLevel

public void setLogLevel(int aLevel)
Specifies level of messages should be logged as one of ProtectionLogger.LEVEL_ constants

Parameters:
aLevel - lgo level

setProperty

protected void setProperty(java.lang.String aName,
                           java.lang.String aValue)

getReadProtectionPassword

public java.lang.String getReadProtectionPassword()

setReadProtectionPassword

public void setReadProtectionPassword(java.lang.String aReadProtectionPassword)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getType

public int getType()

setType

public void setType(int type)