|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPropertiesLoader
Description: This class is responsible for reading properties files
$LastChangedBy: r.reiz $
| Method Summary | |
|---|---|
String |
getDirectory()
Gets the path to the properties file. |
Properties |
getProperties(String client,
String propName)
This method looks for a properties file with the given name "propName". It looks for a properties file in the following directories in this order: client directory mail directory class-root |
Properties |
getPropertiesOnlyClient(String client,
String propertyFilename)
This method looks for a properties file with the given name "propertyFilename". It looks for the file only in the client-directory. |
Properties |
getPropertiesOnlyDirectory(String propertyFilename)
This method looks for a properties file with the given name "propertyFilename". It looks for the file only in the mail-directory. |
Properties |
getPropertiesOnlyRoot(String propertyFilename)
This method looks for a properties file with the given name "propertyFilename". It looks for the file only in the root-directory (class-root). |
String |
getPropFile()
Gets the name of the properties file. |
String |
getValue(String key)
Returns a message with the key "key" from the property file "propFile". |
String |
getValue(String client,
String key)
Returns a message with the key "key" from the property file. |
void |
replaceVariables(String client,
MailConfig mailConfig)
This method replaces all variables with keys like "${variable}" in the email-addresses of the receivers (to, cc, bcc) with values found in the mail.properties having the key "variable". |
void |
replaceVariables(TemplateConfig templateConfig)
This method replaces all variables with keys like "${variable}" in the map of the templateConfig with values found in the mail.properties having the key "variable". |
void |
setDirectory(String directory)
Sets the path to the properties file. |
void |
setPropFile(String propFile)
Sets the name of the properties file. |
| Method Detail |
|---|
String getValue(String key)
throws MailFactoryException
key - :the key to search
MailFactoryException
String getValue(String client,
String key)
throws MailFactoryException
client - :the client for the mailkey - :the key to search
MailFactoryException
void replaceVariables(TemplateConfig templateConfig)
throws MailFactoryException
templateConfig - containing client, locale, template-name and map.
MailFactoryException
void replaceVariables(String client,
MailConfig mailConfig)
throws MailFactoryException
mailConfig - containing receiver-Emailadresses (to, cc, bcc)
MailFactoryException
Properties getProperties(String client,
String propName)
throws MailFactoryException
client - - the client of the mailpropName - - the name of the properties file
MailFactoryException
Properties getPropertiesOnlyClient(String client,
String propertyFilename)
throws MailFactoryException
client - - the client of the mailpropertyFilename - - the file name of the properties file.
MailFactoryException
Properties getPropertiesOnlyDirectory(String propertyFilename)
throws MailFactoryException
propertyFilename - - the client of the mail
MailFactoryException
Properties getPropertiesOnlyRoot(String propertyFilename)
throws MailFactoryException
propertyFilename - - the client of the mail
MailFactoryExceptionString getDirectory()
void setDirectory(String directory)
directory - - path to the directory there the mail-templates are placed.String getPropFile()
void setPropFile(String propFile)
propFile - - the name of the properties files.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||