. Email template support added to Run Action, Create New Rule email action pages

. MailActionExecuter now uses the TemplateService to process the template selected in the UI

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2522 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-03-07 18:50:27 +00:00
parent f9b3b74dea
commit f5d9aed0af
5 changed files with 152 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ public class Application
private static String glossaryFolderName;
private static String spaceTemplatesFolderName;
private static String contentTemplatesFolderName;
private static String emailTemplatesFolderName;
private static String savedSearchesFolderName;
/**
@@ -323,6 +324,22 @@ public class Application
return getContentTemplatesFolderName(FacesContextUtils.getRequiredWebApplicationContext(context));
}
/**
* @return Returns the Email templates folder name
*/
public static String getEmailTemplatesFolderName(ServletContext context)
{
return getEmailTemplatesFolderName(WebApplicationContextUtils.getRequiredWebApplicationContext(context));
}
/**
* @return Returns the Email templates folder name
*/
public static String getEmailTemplatesFolderName(FacesContext context)
{
return getEmailTemplatesFolderName(FacesContextUtils.getRequiredWebApplicationContext(context));
}
/**
* @return Return the Saved Searches folder name
*/
@@ -634,6 +651,24 @@ public class Application
return contentTemplatesFolderName;
}
/**
* Returns the Email Templates folder name
*
* @param context The spring context
* @return The email folder name
*/
private static String getEmailTemplatesFolderName(WebApplicationContext context)
{
if (emailTemplatesFolderName == null)
{
ImporterBootstrap bootstrap = (ImporterBootstrap)context.getBean(BEAN_IMPORTER_BOOTSTRAP);
Properties configuration = bootstrap.getConfiguration();
emailTemplatesFolderName = configuration.getProperty("spaces.templates.email.childname");
}
return emailTemplatesFolderName;
}
/**
* Returns the Saved Searches folder name
*