. Checkpoint of WCM ui work (nothing to see here, move along please, move along)

- "Websites" folder created under root of Company Home during bootstrap
 - Bootstrap properties and getter helper added to import-export-context & web-client
 - Beginnings of the Create Website wizard
 - Action definition added for Create Website action
 - Beginings of the model for avm webfolders and associated sub-structures

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3763 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-09-11 16:57:01 +00:00
parent 55ab249512
commit 063430129e
13 changed files with 131 additions and 53 deletions

View File

@@ -75,6 +75,7 @@ public class Application
private static String savedSearchesFolderName;
private static String scriptsFolderName;
private static String guestHomeFolderName;
private static String websitesFolderName;
/**
* Private constructor to prevent instantiation of this class
@@ -441,6 +442,22 @@ public class Application
return getGuestHomeFolderName(FacesContextUtils.getRequiredWebApplicationContext(context));
}
/**
* @return the Websites folder name
*/
public static String getWebsitesFolderName(ServletContext context)
{
return getWebsitesFolderName(WebApplicationContextUtils.getRequiredWebApplicationContext(context));
}
/**
* @return the Websites folder name
*/
public static String getWebsitesFolderName(FacesContext context)
{
return getWebsitesFolderName(FacesContextUtils.getRequiredWebApplicationContext(context));
}
/**
* Set the language locale for the current user context
*
@@ -827,7 +844,7 @@ public class Application
}
/**
* Returns the Guest Home folder name name
* Returns the Guest Home folder name
*
* @param context The spring context
* @return The Guest Home folder name
@@ -844,10 +861,28 @@ public class Application
return guestHomeFolderName;
}
/**
* Returns the Websites folder name
*
* @param context The Spring context
* @return The Websites folder name
*/
private static String getWebsitesFolderName(WebApplicationContext context)
{
if (websitesFolderName == null)
{
ImporterBootstrap bootstrap = (ImporterBootstrap)context.getBean(BEAN_IMPORTER_BOOTSTRAP);
Properties configuration = bootstrap.getConfiguration();
websitesFolderName = configuration.getProperty("spaces.wcm.childname");
}
return websitesFolderName;
}
/**
* Retrieves the configured error page for the application
*
* @param context The Spring contexr
* @param context The Spring context
* @return The configured error page or null if the configuration is missing
*/
private static String getErrorPage(WebApplicationContext context)