mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
First-cut form-based XML editing in DM (WCM-303)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -86,6 +86,7 @@ public class Application
|
||||
private static String scriptsFolderName;
|
||||
private static String guestHomeFolderName;
|
||||
private static String websitesFolderName;
|
||||
private static String webContentFormsFolderName;
|
||||
private static String contentFormsFolderName;
|
||||
|
||||
private static Boolean isDynamicConfig = null;
|
||||
@@ -523,13 +524,29 @@ public class Application
|
||||
/**
|
||||
* @return the WCM Content Forms folder name
|
||||
*/
|
||||
public static String getWebContentFormsFolderName(ServletContext context)
|
||||
{
|
||||
return getWebContentFormsFolderName(WebApplicationContextUtils.getRequiredWebApplicationContext(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the WCM Content Forms folder name
|
||||
*/
|
||||
public static String getWebContentFormsFolderName(FacesContext context)
|
||||
{
|
||||
return getWebContentFormsFolderName(FacesContextUtils.getRequiredWebApplicationContext(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the Content Forms folder name
|
||||
*/
|
||||
public static String getContentFormsFolderName(ServletContext context)
|
||||
{
|
||||
return getContentFormsFolderName(WebApplicationContextUtils.getRequiredWebApplicationContext(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the WCM Content Forms folder name
|
||||
* @return the Content Forms folder name
|
||||
*/
|
||||
public static String getContentFormsFolderName(FacesContext context)
|
||||
{
|
||||
@@ -939,6 +956,24 @@ public class Application
|
||||
* @param context The Spring context
|
||||
* @return The WCM Content Forms folder name
|
||||
*/
|
||||
private static String getWebContentFormsFolderName(WebApplicationContext context)
|
||||
{
|
||||
if (webContentFormsFolderName == null)
|
||||
{
|
||||
ImporterBootstrap bootstrap = (ImporterBootstrap)context.getBean(BEAN_IMPORTER_BOOTSTRAP);
|
||||
Properties configuration = bootstrap.getConfiguration();
|
||||
webContentFormsFolderName = configuration.getProperty("spaces.wcm_content_forms.childname");
|
||||
}
|
||||
|
||||
return webContentFormsFolderName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Content Forms folder name
|
||||
*
|
||||
* @param context The Spring context
|
||||
* @return The WCM Content Forms folder name
|
||||
*/
|
||||
private static String getContentFormsFolderName(WebApplicationContext context)
|
||||
{
|
||||
if (contentFormsFolderName == null)
|
||||
|
Reference in New Issue
Block a user