mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. 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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user